{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"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":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"candle_onnx::eval::simple_eval_ (cyclomatic 345): candle_onnx::eval::simple_eval_ has cyclomatic complexity 345 (threshold 15). Of this number, 344 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8458e88527dd3a1f7b2c13bf311f63dda5bfe78dbdff0633cdcd2af99655e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Tensor::backward (cyclomatic 88): Tensor::backward has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bee5721c1a1ae5a77f08f48dc42f88ceaef348e65164bbe90f62fac3097d54"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalStorage::reduce_op (cyclomatic 72): MetalStorage::reduce_op has cyclomatic complexity 72 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: MetalStorage::unary_impl (cyclomatic 111) 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a4e24d886bf3f0d1947e5df2f550333b17abf42665167a5a72183566b6b684"}},{"ruleId":"D1","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cyclomatic 58): FlashAttnVarLen::cuda_fwd_t has cyclomatic complexity 58 (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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"2604950d0c512d51919221202cea64de0a786790ad6679030bfa95f6c7c08ff7"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu (cyclomatic 54): candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu has cyclomatic complexity 54 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 7 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":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9af56f7c8e024d1642fc537cbf8163957dfdf8aa05abe67af7b74b1a2cd76a"}},{"ruleId":"D1","level":"warning","message":{"text":"Stack::read (cyclomatic 44): Stack::read has cyclomatic complexity 44 (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":"candle-core/src/pickle.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba50ec9269e7f0c37c6096244da470bf4ee09016383b1ae552c0ec4ea557b09"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv (cyclomatic 41): candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv 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":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2136e3af729379157bc698e6ab57498a50dabfef9021f238fa14e354036aaa42"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_core::quantized::utils::make_qx_quants (cyclomatic 36): candle_core::quantized::utils::make_qx_quants 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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51f2df94d6857a9c53d22343e2ec6e42abe2c25bc5d2111a78c31d532c978de"}},{"ruleId":"D1","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cyclomatic 31): FlashAttnVarLen::cuda_fwd_t 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d3cba2b1216e59440314df5d3923e2eb2629a5b6b76bd8637bdc53d42cc08"}},{"ruleId":"D1","level":"warning","message":{"text":"Header::parse (cyclomatic 30): Header::parse has cyclomatic complexity 30 (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":"candle-core/src/npy.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da3602c12bd27cbc5c9731a92db802259cce8b17b7e809fe861f7f83e2bbe2"}},{"ruleId":"D1","level":"warning","message":{"text":"CpuStorage::concat (cyclomatic 28): CpuStorage::concat 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. This is NOT this file\u0027s highest cyclomatic complexity: CpuStorage::to_dtype (cyclomatic 102) 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4fb31c90eba2ff679f8ca743d7a527742ef15ad675c2802033b0873175f3b4"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm (cyclomatic 28): candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda3b9ee24daf69586ae5524796e7c8462e7c36ca483974b5993587d21b4afb1"}},{"ruleId":"D1","level":"warning","message":{"text":"Sdpa::metal_fwd (cyclomatic 28): Sdpa::metal_fwd 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":"candle-nn/src/ops.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0e162c9081a0609d151732e5491f157eaf2ab3e2f2d7b8b663da1c1c277e87"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_core::cuda_backend::gemm_config (cyclomatic 27): candle_core::cuda_backend::gemm_config has cyclomatic complexity 27 (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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0900d8577e6f60770105c711fdb2aff7089f8ebc9498a42178e1c50d07c283"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::select_tile_config (cyclomatic 27): candle_metal_kernels::kernels::mlx_gemm::select_tile_config 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":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3ccae69c249838da50e273ad10d458ef5c575d3537f8a8abe4775d1e2cdfb6"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralForConditionalGeneration::generate (cyclomatic 26): VoxtralForConditionalGeneration::generate 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":"candle-transformers/src/models/voxtral/model.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6eb0ec46e195783f5ef01870385ea5d39e289ad9428bf670b1e9ffe819d941"}},{"ruleId":"D1","level":"warning","message":{"text":"FlashAttn::cuda_fwd_t (cyclomatic 25): FlashAttn::cuda_fwd_t 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf9f9eb46b6f9119b54d6bd41d387e9c13aa9d4c340752d10ea6998d7c65a55"}},{"ruleId":"D1","level":"warning","message":{"text":"tensor_tools::run_print (cyclomatic 25): tensor_tools::run_print has cyclomatic complexity 25 (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":"tensor-tools/src/main.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"972329978c46d12482945f44ba5fa2204fc69ecad2927cdb568d78306166356c"}},{"ruleId":"D1","level":"warning","message":{"text":"TensorFormatter::fmt_tensor (cyclomatic 24): TensorFormatter::fmt_tensor 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":"candle-core/src/display.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d45190cd689dcc393f9e2da98aef54351993ca2f9d1faa246f480aecdfcb1a7"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3VLModel::forward (cyclomatic 24): Qwen3VLModel::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":"candle-transformers/src/models/qwen3_vl/mod.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4f44057586316ff57e1eca5db19653315f52e1dfd99c0d0e3e5d7787bf090d"}},{"ruleId":"D1","level":"warning","message":{"text":"CudaStorage::copy_strided_src (cyclomatic 22): CudaStorage::copy_strided_src 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c035476de6fa5cf1b9ea5d760956da2b0ed3d547e7c1d267b4a9f123437c6595"}},{"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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b07601050acee33fc1ff9e4c4f3336496f6feeca5426c81477d3c907ea30fa"}},{"ruleId":"D1","level":"warning","message":{"text":"QMetalStorage::indexed_moe_forward (cyclomatic 21): QMetalStorage::indexed_moe_forward 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":"candle-core/src/quantized/metal/moe.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c907cff598ce6e0ded3956ab7bc7a9cf83b2287bff99a786a42752cf1df2dac"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_core::quantized::utils::make_qkx3_quants (cyclomatic 21): candle_core::quantized::utils::make_qkx3_quants 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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7c2d3517790c78bca518f863c5f078285783a6e61a0adfc60268f1b28ac1b1"}},{"ruleId":"D1","level":"warning","message":{"text":"PyTensor::__getitem__ (cyclomatic 21): PyTensor::__getitem__ has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 2 function items inside it that branch (extract_indexer, to_absolute_index). 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":"candle-pyo3/src/lib.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d9a65f1d817428febb776ef7331372b9345c685d5352d74ff4d86d713530a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Tensor::write_bytes (cyclomatic 20): Tensor::write_bytes 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":"candle-core/src/convert.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eb191676f3e75ce81ad6405ab4f947a6a4c0be5110260a75aedc9823dbeafb"}},{"ruleId":"D1","level":"warning","message":{"text":"Tensor::fmt (cyclomatic 20): Tensor::fmt 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":"candle-core/src/display.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"466e99da26c1cb52bf9864ee84b2af141868ab6044976d095ff46beb36c5d90d"}},{"ruleId":"D1","level":"warning","message":{"text":"Tokenizer::from_gguf (cyclomatic 20): Tokenizer::from_gguf 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":"candle-core/src/quantized/tokenizer.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c15f7a48a0a45526f0644dade09cdbef7dc2d2d03fdf19475ae3913af5e0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"MatMul::f (cyclomatic 19): MatMul::f 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. This is NOT this file\u0027s highest cyclomatic complexity: CpuStorage::to_dtype (cyclomatic 102) 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"6695376ea5177b121e951154e8734a36e7d593f9709d66e9ce3e28829e50ea99"}},{"ruleId":"D1","level":"warning","message":{"text":"Value::read (cyclomatic 19): Value::read 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":"candle-core/src/quantized/gguf_file.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae392002d403836166ccb1438d563bc09ba73e4d4a426a3674ee5f2f9734492"}},{"ruleId":"D1","level":"warning","message":{"text":"PackedKind::select (cyclomatic 19): PackedKind::select 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":"candle-core/src/quantized/repack.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3deed22a21a65ab0ce9e3792ff505fcf8b9c2aaa19f432bf3f63dbe27f2555b"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_core::cpu_backend::conv2d::conv2d_tiled (cyclomatic 19): candle_core::cpu_backend::conv2d::conv2d_tiled has cyclomatic complexity 19 (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":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ee3b5aab2fb93651d4f2fa14cc357e2fdf86d46a7dbabbd96163a6a45160c8"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_multi (cyclomatic 19): candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_multi 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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cc8c430e67225b774545675a3323c9592ed07af0a6af31f17d3dad42bd2e58"}},{"ruleId":"D1","level":"warning","message":{"text":"tensor_tools::run_ls (cyclomatic 19): tensor_tools::run_ls 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":"tensor-tools/src/main.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd0678535f13d1d13a4bd094e58a08805fe523b1f54203adf95a76b51dc7980"}},{"ruleId":"D1","level":"warning","message":{"text":"MatMul::f (cyclomatic 18): MatMul::f 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. This is NOT this file\u0027s highest cyclomatic complexity: CpuStorage::to_dtype (cyclomatic 102) 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b410a678950b201df557e64bb687a3b76691929fc5eae0c7c541df6efd5b2e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"WDiffNeXt::forward (cyclomatic 18): WDiffNeXt::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":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8a65a42bd872e5f70f106894f495a3ffdb8c9d0ba03b12b7d7418fddd3aa3a"}},{"ruleId":"D1","level":"warning","message":{"text":"stub.pyi_file (cyclomatic 18): stub.pyi_file 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":"candle-pyo3/stub.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"de865d72d9d482107b3b76a595832e5f3cff9c78a176a0c02dc24ea24781da59"}},{"ruleId":"D1","level":"warning","message":{"text":"UpsampleBilinear2D::f (cyclomatic 17): UpsampleBilinear2D::f 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: CpuStorage::to_dtype (cyclomatic 102) 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91eb4fee0110c7e4cf7e4bd78e639688772fe867a8b7ad958bc59df0f792cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockQ3K::from_float (cyclomatic 17): BlockQ3K::from_float 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"415a05e1dd908cd778daad91b7f969807dbbbd4a63a4258168c372be61dbd503"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_core::quantized::repack::try_indexed_gemv (cyclomatic 17): candle_core::quantized::repack::try_indexed_gemv 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":"candle-core/src/quantized/repack.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdadc07fa00e945ad3688476397f750e4be440e21144e465d4f6b7f451250c22"}},{"ruleId":"D1","level":"warning","message":{"text":"PyTensor::to (cyclomatic 17): PyTensor::to has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1d507937cfc4260b869c37abd72b39e1e8745a911d298e0b79df644052c83d"}},{"ruleId":"D1","level":"warning","message":{"text":"WDiffNeXt::new (cyclomatic 17): WDiffNeXt::new 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":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a6429e2ce11d5d8903cb2204e1f723f49808eef94956a1b339d6e3d7a14801"}},{"ruleId":"D1","level":"warning","message":{"text":"Value::write (cyclomatic 16): Value::write 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":"candle-core/src/quantized/gguf_file.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81702bc8f076df176cfbb7ca7f82d6f32702bc82a03aba04054ff3d06c9bae2"}},{"ruleId":"D1","level":"warning","message":{"text":"RotaryEmb::cpu_fwd (cyclomatic 16): RotaryEmb::cpu_fwd has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (inner). 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"316be59e717e9e9818fe78bca05df54209665baaa4e2f921c0cab827b707c91b"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_nn::moe::moe_gemm_gguf::cuda_fwd (cyclomatic 16): candle_nn::moe::moe_gemm_gguf::cuda_fwd has cyclomatic complexity 16 (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":"candle-nn/src/moe.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b848027ecb3b582d199f06f685f29ebb56fd995220c4962e1d73f95c4f78481"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaVA::prepare_inputs_labels_for_multimodal (cyclomatic 16): LLaVA::prepare_inputs_labels_for_multimodal 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":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3472f7dd485e516e9f5ccdc9ab796cdcfd79c998235f55a84b21e3e01be4f742"}},{"ruleId":"D1","level":"warning","message":{"text":"Quantile::add (cyclomatic 16): Quantile::add 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":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9305c9335d90ad59e63beb6d566d0534966364049d23a3e5d3778dd0b3d3951"}},{"ruleId":"D1","level":"warning","message":{"text":"candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_video (cyclomatic 16): candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_video 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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9c639a0f9bedf45af2b8b3319c2252536f9642e966d4f0e4557a8c864a22a1"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_onnx::eval::simple_eval_ (cognitive 754): candle_onnx::eval::simple_eval_ has cognitive complexity 754 (threshold 15). Drivers by points: if/else 198 (513 pts), match/switch 54 (144 pts), loops 27 (83 pts), boolean chains 14 (nesting depth added 461). Of this number, 751 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7684e0d982485a08a443a5ba998aed498487ec0870e234041850a34f396e7bb8"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::backward (cognitive 108): Tensor::backward has cognitive complexity 108 (threshold 15). Drivers by points: if/else 26 (81 pts), loops 5 (17 pts), match/switch 2 (7 pts), boolean chains 3 (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e079dae89afd2fae54f198e1881bf86b726f929a1b842f0628c42d73616e33"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cognitive 83): FlashAttnVarLen::cuda_fwd_t has cognitive complexity 83 (threshold 15). Drivers by points: if/else 47 (59 pts), match/switch 9 (14 pts), boolean chains 10 (nesting depth added 17). 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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd688ac333d3566f48196d1b04ea87e1f6245541ec27fc64c1b6e40feb6a628"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu (cognitive 83): candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu has cognitive complexity 83 (threshold 15). Drivers by points: if/else 31 (46 pts), loops 10 (20 pts), match/switch 8 (11 pts), boolean chains 6 (nesting depth added 28). Of this number, 76 points are the body\u0027s own statements and 7 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":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e6263996bcffc17fa2a3505ca3dc0a9ca9e7dae780c0db8aa1c6be315bfbe4"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::utils::make_qx_quants (cognitive 70): candle_core::quantized::utils::make_qx_quants has cognitive complexity 70 (threshold 15). Drivers by points: if/else 24 (47 pts), loops 12 (20 pts), boolean chains 3 (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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"72de5465918b1a58a9f9b737f5c1e3c361dfd16eefcada21656408b747d05204"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv (cognitive 68): candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv has cognitive complexity 68 (threshold 15). Drivers by points: if/else 45 (54 pts), boolean chains 13, match/switch 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfeb95e9330a3615e7644f6b308e25abe85990fb49b898338502463d5bba2af"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration::generate (cognitive 68): VoxtralForConditionalGeneration::generate has cognitive complexity 68 (threshold 15). Drivers by points: if/else 23 (40 pts), match/switch 6 (22 pts), loops 2 (5 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":"candle-transformers/src/models/voxtral/model.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5c4768dbf9b2470019699f1edf845224c5a540afbac0c6bee6eb9a042758a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::select_tile_config (cognitive 62): candle_metal_kernels::kernels::mlx_gemm::select_tile_config has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (52 pts), boolean chains 7, match/switch 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"38de532779ba9a77ac1a781b903c1f43a5f3e97914a1feb84a406dd7254037a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TensorFormatter::fmt_tensor (cognitive 56): TensorFormatter::fmt_tensor has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 6 (18 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 33). 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":"candle-core/src/display.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3c72caf5cbf127d9124b1b0da21e63f0e80c3825479bc492d7d7f9a71130d1"}},{"ruleId":"D2","level":"warning","message":{"text":"tensor_tools::run_print (cognitive 46): tensor_tools::run_print has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 8 (19 pts), if/else 12 (17 pts), loops 5 (10 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":"tensor-tools/src/main.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6f734a7fee850dd296bac89ff138d4cd49fadb93ab02ac75f5e7254551e03e"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ3K::from_float (cognitive 45): BlockQ3K::from_float has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 9 (21 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aca1fca36ddacd6350942750b6c74102a0833fc128b282cf0fe1fe260c8fab1"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_multi (cognitive 45): candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_multi has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 4 (9 pts), boolean chains 3 (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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4945dca1a37fe326283e5a717401b4de31e4c48fad92c1dcaa5de6cdaee46e"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::cpu_backend::conv2d::conv2d_tiled (cognitive 44): candle_core::cpu_backend::conv2d::conv2d_tiled has cognitive complexity 44 (threshold 15). Drivers by points: loops 14 (33 pts), if/else 2 (9 pts), boolean chains 2 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"999622b99661246ea83452ab45f7862759fd649f258d749849ecd0453894b05c"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLModel::forward (cognitive 44): Qwen3VLModel::forward has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 7 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3_vl/mod.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2ffd86c36db7f569be982be626674a326ff9074db05a38bbd738f40b6c425c"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ3K::vec_dot_unopt (cognitive 42): BlockQ3K::vec_dot_unopt has cognitive complexity 42 (threshold 15). Drivers by points: loops 9 (26 pts), if/else 8 (16 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b18da23c0a3f4ed5203c5d56c72ae209349c783a958245c5d09f6557852333b"}},{"ruleId":"D2","level":"warning","message":{"text":"WDiffNeXt::new (cognitive 41): WDiffNeXt::new has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (32 pts), loops 6 (8 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":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1ea85a7abb3cedac2e824d1c66cffd94acf0c0f795193430c4e0cdc7652dab"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvTranspose2D::f (cognitive 39): ConvTranspose2D::f has cognitive complexity 39 (threshold 15). Drivers by points: loops 9 (25 pts), if/else 2 (12 pts), boolean chains 2 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0df47f6b00c1b620611cbfb57a239a115212001f390eb5d8fa2282ce3d54f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Im2Col::f (cognitive 38): Im2Col::f has cognitive complexity 38 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 2 (13 pts), boolean chains 4 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6aa69bd23a76205aa6c7bcd8fb71e395f4b9e282c080d4e1b0cac217c69642"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ3K::from_float_imatrix (cognitive 38): BlockQ3K::from_float_imatrix has cognitive complexity 38 (threshold 15). Drivers by points: loops 9 (21 pts), if/else 7 (17 pts) (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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d097562ff520a90cb1407fa6d1bf38713898d2e78f0bbb8b13f77b3296f25b0"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::cpu_backend::conv2d::conv2d_direct (cognitive 38): candle_core::cpu_backend::conv2d::conv2d_direct has cognitive complexity 38 (threshold 15). Drivers by points: loops 9 (25 pts), if/else 2 (11 pts), boolean chains 2 (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":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd40ab4bf9a320c5b61e4833261bd289a1548bf6918e7707d5b23e144ea02a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ScatteredCacheBuilder::indices_and_mask (cognitive 38): ScatteredCacheBuilder::indices_and_mask has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 5 (15 pts) (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":"candle-nn/src/kv_cache.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bee0e5ff06426d40d3e607d39669e42640a0a95dad580a8720e7350527680ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Sdpa::metal_fwd (cognitive 38): Sdpa::metal_fwd has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (24 pts), match/switch 3 (7 pts), boolean chains 6, 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":"candle-nn/src/ops.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af50a3b93ad3d60ab8557bde3554b1c79918be9a8b1aa02e81eab07e3e1bca0"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_video (cognitive 38): candle_transformers::models::paddleocr_vl::text::compute_mrope_position_ids_video has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 4 (10 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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9c402abf52e54e5e23158552dfcb82babfb8d7ca6846058a61b91fda7a5e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReduceIndex::fold_impl (cognitive 37): ReduceIndex::fold_impl has cognitive complexity 37 (threshold 15). Drivers by points: loops 6 (19 pts), if/else 5 (17 pts), match/switch 1 (nesting depth added 25). 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e098bd235f215240e87d0082a9419b54aaa4cb173140793da684acaadb0a6881"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaVA::prepare_inputs_labels_for_multimodal (cognitive 37): LLaVA::prepare_inputs_labels_for_multimodal has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (32 pts), loops 4 (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":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dacdadd6421fa204ee5266f78f8bec3792ce245ff7e944fee06bf508f8ba2c"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ5K::vec_dot_unopt (cognitive 36): BlockQ5K::vec_dot_unopt has cognitive complexity 36 (threshold 15). Drivers by points: loops 10 (26 pts), if/else 4 (10 pts) (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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eae420c22ceb61fd3d3380b58317554971419d710154b1ee7bedfd05dd7bf1f"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ5K::from_float (cognitive 36): BlockQ5K::from_float has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 7 (15 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7106b355bf8f5f041d3f594491c55f7008a41388bd2558e3f33d5b7baf13fdf"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::utils::make_qkx3_quants (cognitive 36): candle_core::quantized::utils::make_qkx3_quants has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 5 (8 pts), match/switch 5 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/utils.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee11f41801a490a25e7c8be8ce7f2580bbe6f8373b97e6a16654c909a0e090c"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cognitive 36): FlashAttnVarLen::cuda_fwd_t has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22 (24 pts), match/switch 6 (7 pts), boolean chains 5 (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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c26b4b4da0326c7e801470a537eb3620950acbe0ef2d48c50579f4637f9c30"}},{"ruleId":"D2","level":"warning","message":{"text":"UpsampleBilinear2D::f (cognitive 34): UpsampleBilinear2D::f has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 6 (12 pts), boolean chains 1 (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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2a94c59744026974f997971401a69098279c73742537db67ee7b6c173691dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ5K::from_float_imatrix (cognitive 34): BlockQ5K::from_float_imatrix has cognitive complexity 34 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 5 (15 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"d459736b065c638ee48fc8be479277c963aea4f8e7787c1d749dc7784354e798"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack_x86::pack_q4k_amx (cognitive 34): candle_core::quantized::repack_x86::pack_q4k_amx has cognitive complexity 34 (threshold 15). Drivers by points: loops 9 (34 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":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da4a88f16e833a6c81f75a043c4386ffcfb1bafee9cf72a75c3f12b77b268a8"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::utils::make_q3_quants (cognitive 34): candle_core::quantized::utils::make_q3_quants has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 20). 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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73f9e5268e66330696d90dc1cc3c9a14b2b1a2f72e55921622a2544f06455a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer::from_gguf (cognitive 33): Tokenizer::from_gguf has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 2 (3 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":"candle-core/src/quantized/tokenizer.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9a361b4b1820aa22d3048cf0d75736d7709986f685f5728ad9491c279d41e8"}},{"ruleId":"D2","level":"warning","message":{"text":"WDiffNeXt::forward (cognitive 33): WDiffNeXt::forward has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 4 (8 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e8af62a2bffd5f2350f08808c2596be7a108e4f1256d82e25a524d7d339b26"}},{"ruleId":"D2","level":"warning","message":{"text":"CudaStorage::copy_strided_src (cognitive 32): CudaStorage::copy_strided_src has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (31 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"076ffefd5312a5afdde51b601506bfc8edb1ae3b3dd6a329027b018ce311def5"}},{"ruleId":"D2","level":"warning","message":{"text":"NdIter::new (cognitive 32): NdIter::new has cognitive complexity 32 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 8 (15 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/nditer.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c581d66e29e9f7ab1533eaf7dbe61496f7be45a31fe4b012012aa45cfa208e"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::pickle::read_pth_tensor_info (cognitive 32): candle_core::pickle::read_pth_tensor_info has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 4 (13 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/pickle.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"f485a1bca9196897310e45ceb4e6b832d4eb2789bacc6b769de08b8716320b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x4 (cognitive 32): candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x4 has cognitive complexity 32 (threshold 15). Drivers by points: loops 8 (22 pts), if/else 4 (10 pts) (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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21dc49b9edce5b533374ea75889a84596790b0c79f5bc6adf28b4b5944d6822"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm (cognitive 32): candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 13, 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":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"a067ecd560f968e3053ff9badd80e33c275d427e72ff6f448d91a8f9302944cc"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ2K::from_float (cognitive 31): BlockQ2K::from_float has cognitive complexity 31 (threshold 15). Drivers by points: loops 9 (22 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a86a0e51803b86d1569f396e21f281a93d70dc1ff1d41b236f3fafdf955add1"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::store_q5kx8_4x8_i8mm (cognitive 31): candle_core::quantized::neon::store_q5kx8_4x8_i8mm has cognitive complexity 31 (threshold 15). Drivers by points: loops 13 (31 pts) (nesting depth added 18). 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"63aba6c960c9cf4f5e9d1eb2fcc51436c4c23899ba715da2064d35c5ad53a083"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack_x86::amx::q4k_m32 (cognitive 31): candle_core::quantized::repack_x86::amx::q4k_m32 has cognitive complexity 31 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 5 (15 pts) (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":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfec2f18084a5c81b859622796d2ca24ea108087392bb56ccb0f422b9ba2c61"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashAttn::cuda_fwd_t (cognitive 30): FlashAttn::cuda_fwd_t has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (22 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b837463a57b1361b8f1a2dc89191c5682578cda07645cc4279d7279d5a2b30"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::causal_prefill_f32 (cognitive 30): candle_nn::attention::cpu_flash::causal::causal_prefill_f32 has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 3 (6 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45683ab3edd63d52e7abe7ccf4e6a2a0c1ae39d3300dcfc614e524c443e5230"}},{"ruleId":"D2","level":"warning","message":{"text":"tensor_tools::run_ls (cognitive 30): tensor_tools::run_ls has cognitive complexity 30 (threshold 15). Drivers by points: loops 7 (15 pts), match/switch 5 (10 pts), if/else 2 (5 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":"tensor-tools/src/main.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"480e1b51c6ce0728e0364f0210b8789e4dfe6e41096280c25a3225a5ef9708f4"}},{"ruleId":"D2","level":"warning","message":{"text":"CpuStorage::concat (cognitive 29): CpuStorage::concat has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 15 (29 pts) (nesting depth added 14). 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c68f23cc977d7259bba0925ac61f48ee0f23614366c56a4af9fc037b922805"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexAdd::f (cognitive 29): IndexAdd::f has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (14 pts), match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"5236392121f54888869be888722389fe73b3126534547b546ae94ade450dc54e"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ4K::from_float (cognitive 29): BlockQ4K::from_float has cognitive complexity 29 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 7 (13 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9663aa52c62c68321532790ee78f6171e4e6af39da8b3da9a37b38035e21a9"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::store_q4kx8_4x8_i8mm (cognitive 29): candle_core::quantized::neon::store_q4kx8_4x8_i8mm has cognitive complexity 29 (threshold 15). Drivers by points: loops 12 (29 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e7ab135f462662b060caf4ab8907ca5484ebb9916481914abfaa6f69a7a8d1"}},{"ruleId":"D2","level":"warning","message":{"text":"stub.pyi_file (cognitive 29): stub.pyi_file has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (10 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":"candle-pyo3/stub.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fa484cfc0e4ac2a14af663818dbfee15506c601056c348f16c9b17fa011b05"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxPool2D::f (cognitive 28): MaxPool2D::f has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 1 (7 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39429d4306e7f49e1a205d60d982dd8c1670b4cf5690bf19222310f855f7465"}},{"ruleId":"D2","level":"warning","message":{"text":"Header::parse (cognitive 28): Header::parse has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 7 (12 pts), if/else 5 (9 pts), boolean chains 5, loops 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":"candle-core/src/npy.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f6728be78da0a72bbf149373a9c068bca3f531960ede3bfbf1fc206bb6facf"}},{"ruleId":"D2","level":"warning","message":{"text":"Stack::read (cognitive 28): Stack::read has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (7 pts), match/switch 2 (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":"candle-core/src/pickle.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"224462b89bcfdb756953c0409e523c8803c59f10d275a579421a0962beff89ec"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack_x86::pack_q4k (cognitive 28): candle_core::quantized::repack_x86::pack_q4k has cognitive complexity 28 (threshold 15). Drivers by points: loops 8 (28 pts) (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. This shape REPEATS in the file: one other method here (candle_core::quantized::repack_x86::pack_q6k) 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":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0680f985e7080d5bc3e36d2cd84dfe7f4eb740f39944d0be8e49686705943202"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack_x86::pack_q6k (cognitive 28): candle_core::quantized::repack_x86::pack_q6k has cognitive complexity 28 (threshold 15). Drivers by points: loops 8 (28 pts) (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. This shape REPEATS in the file: one other method here (candle_core::quantized::repack_x86::pack_q4k) 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":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7fae014dbd291675cf4549ba550a84cc1a8ad2d692de8c1a84344aa91fbe41"}},{"ruleId":"D2","level":"warning","message":{"text":"AttentionWeights::forward (cognitive 28): AttentionWeights::forward has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 7 (11 pts), boolean chains 2 (nesting depth added 14). 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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a328e436f0323f404f6c23ed44943d68845b0bc9f4cf8005b2640a37f6d9dff"}},{"ruleId":"D2","level":"warning","message":{"text":"BarrierPool::new (cognitive 27): BarrierPool::new has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 5 (10 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":"candle-core/src/utils.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a5e8cd04cc4f55f1cf3481b4b483fddfc4fccf47e78082a3c96fd56430fe74"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::cpu_backend::utils::unary_map (cognitive 27): candle_core::cpu_backend::utils::unary_map has cognitive complexity 27 (threshold 15). Drivers by points: loops 6 (20 pts), if/else 4 (6 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/utils.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ebe350e68266782c0b56cc0b6e40ab656705be37a8c9c38ac9f8a2b90224ba"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::store_q6kx8_4x8 (cognitive 27): candle_core::quantized::neon::store_q6kx8_4x8 has cognitive complexity 27 (threshold 15). Drivers by points: loops 8 (22 pts), if/else 1 (5 pts) (nesting depth added 18). 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39290ae2429dbbe355d0ec7ca6bac7ef37443211d318bb9bcc314fb8dd9d810"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x8 (cognitive 27): candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x8 has cognitive complexity 27 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 4 (10 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"390c8a47d4f31dc8fbb95d69c86cecb3ff49c3321921be3c7700a3fb04318327"}},{"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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b6bf6eb07c56ee25054de435364405243bad7898acb0a197431275107e4360"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatFormatter::new (cognitive 26): FloatFormatter::new has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (4 pts), boolean chains 2, match/switch 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":"candle-core/src/display.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dea2971fa741c4582e358398d75e137a1ee2b7de4b34442650c9cad5ef89d73"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ4K::vec_dot_unopt (cognitive 26): BlockQ4K::vec_dot_unopt has cognitive complexity 26 (threshold 15). Drivers by points: loops 10 (26 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9c7a1b60f1fa1880e883fecafd179ffd4c5ea8f6ff2e1ebf3ecd2e6dce6b42"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ4K::from_float_imatrix (cognitive 26): BlockQ4K::from_float_imatrix has cognitive complexity 26 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 3 (7 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52d7531b8c0b1b471028fc3cff1f17993aa6e2c2b50f507da52788895571ee"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack::try_indexed_gemv (cognitive 26): candle_core::quantized::repack::try_indexed_gemv has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (10 pts), boolean chains 4, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f94c0829fac5d5901f772b1b78fd8851c01080fefc83dffc7b6c25448f1435"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::utils::make_qp_quants (cognitive 26): candle_core::quantized::utils::make_qp_quants has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (6 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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7a114cbdcfe1bc9d2a41dd583346c41ef50e4943d38c0a91f34b1b76b9bef1"}},{"ruleId":"D2","level":"warning","message":{"text":"RotaryEmb::cpu_fwd::inner (cognitive 26): RotaryEmb::cpu_fwd::inner has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (10 pts), match/switch 3, 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba15a964eab8c3ea179faa0bc68d1c51aeca8f7df1d5c07fb9888c10635f63eb"}},{"ruleId":"D2","level":"warning","message":{"text":"PyTensor::__getitem__ (cognitive 26): PyTensor::__getitem__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (18 pts), loops 3 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 2 function items inside it that branch (extract_indexer, to_absolute_index). 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":"candle-pyo3/src/lib.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b0f23f761e8a6b9437694941a1144cd781e202b011c5a0d5009acbda16d08e"}},{"ruleId":"D2","level":"warning","message":{"text":"QuantizedAttention::forward (cognitive 25): QuantizedAttention::forward has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 8 (11 pts), boolean chains 2 (nesting depth added 9). 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":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d21655a1417e54faac94f3c22dde1bdfcbdde553f8d7a4a2a8b3e817badc6c"}},{"ruleId":"D2","level":"warning","message":{"text":"Quantile::add (cognitive 25): Quantile::add has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 4 (5 pts), boolean chains 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":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ecbfa06a3e1c5d69eb530d517936fef5e4f92c0ef5d00e53442735e14f9f49"}},{"ruleId":"D2","level":"warning","message":{"text":"Module._load_from_state_dict (cognitive 25): Module._load_from_state_dict has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 1 (3 pts), loops 2 (3 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":"candle-pyo3/py_src/candle/nn/module.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dacaac097407c4f61326e01360c686c191474e07200ffed8920bcc428405870"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::quantize_q8k_x4_interleaved (cognitive 24): candle_core::quantized::neon::quantize_q8k_x4_interleaved has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (8 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f705c81d2a57583314576a7191b12b4b70a392e06044c0dd0514c9abfa82ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::standard::flash_attn_decode (cognitive 24): candle_nn::attention::cpu_flash::standard::flash_attn_decode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 4 (8 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. This shape REPEATS in the file: one other method here (candle_nn::attention::cpu_flash::standard::flash_attn_prefill) 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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a64de05c7e7cedb6fecffbeef692ae8233370a58c34661a3da535b2ba5c656"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::standard::flash_attn_prefill (cognitive 24): candle_nn::attention::cpu_flash::standard::flash_attn_prefill has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 4 (8 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. This shape REPEATS in the file: one other method here (candle_nn::attention::cpu_flash::standard::flash_attn_decode) 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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5ea6a5c2ffc9929ebc032c5bc845da2aa6628e4c1576ea36d3444c7dbfc5c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::generate (cognitive 24): Model::generate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/parler_tts.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"788068a4f562888365f3537196b15e69baae06efe91815e0c24254b0c1d5786f"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_transformers::models::whisper::audio::log_mel_spectrogram_w (cognitive 24): candle_transformers::models::whisper::audio::log_mel_spectrogram_w has cognitive complexity 24 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 4 (6 pts) (nesting depth added 12). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"518b1299aaecd0c806ce48cf5dca9d685d91f42072468260fb677dc792b04517"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::store_q6kx8_4x8_i8mm (cognitive 23): candle_core::quantized::neon::store_q6kx8_4x8_i8mm has cognitive complexity 23 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 1 (5 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c92a67353b166b625de0d4d36eec0d00e5b9c02955adb279ce58930a7de227"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::causal_decode_f32 (cognitive 23): candle_nn::attention::cpu_flash::causal::causal_decode_f32 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"efabf94623644f573d22224942c50f9a7631216e1b38db53c07e2a0af6480447"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ3K::to_float (cognitive 22): BlockQ3K::to_float has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 2 (7 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9dff4430212f5b7dfea57f798832246242a298c64e7490070b98f2f74c1607"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ6K::vec_dot_unopt (cognitive 22): BlockQ6K::vec_dot_unopt has cognitive complexity 22 (threshold 15). Drivers by points: loops 9 (22 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29df2b388faf011a0e0d01abe3903cbed8d21736b6283d8c60ec7370bbe00d3"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::store_q5kx8_4x8 (cognitive 22): candle_core::quantized::neon::store_q5kx8_4x8 has cognitive complexity 22 (threshold 15). Drivers by points: loops 10 (22 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"35219f4dbb455fa033ee44784842e48517600b4046762ae5aa33128dd08b9174"}},{"ruleId":"D2","level":"warning","message":{"text":"RotaryEmbI::cpu_fwd::inner (cognitive 22): RotaryEmbI::cpu_fwd::inner has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (7 pts), match/switch 3, 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bcc15f0124ce308e77784a19cdbe57809693e6a7cacdc6d6f6749e5a09adcf"}},{"ruleId":"D2","level":"warning","message":{"text":"T5Attention::forward (cognitive 22): T5Attention::forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 5 (8 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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab03adacbcfadff90c55aeb7691b6539fd4d4d09169afb3bdb0915a280560b93"}},{"ruleId":"D2","level":"warning","message":{"text":"T5Attention::forward (cognitive 22): T5Attention::forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 5 (8 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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b21139b6904c99d0f145ff6e62e76165e156b75a3bc488db00a3bf6034c210f"}},{"ruleId":"D2","level":"warning","message":{"text":"AvgPool2D::f (cognitive 21): AvgPool2D::f 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2ff188f93e03e8b7e3d2c28175441eba1f1ade8e22edf1d70d591c111d2fff"}},{"ruleId":"D2","level":"warning","message":{"text":"MatMul::f (cognitive 21): MatMul::f has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 6, loops 3 (6 pts), match/switch 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2347ce00b9567ae86926d57a8519f977f4d3bb97f1f6dfe826bcffe889f07f5"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ2K::from_float_imatrix (cognitive 21): BlockQ2K::from_float_imatrix has cognitive complexity 21 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 1 (3 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3cd5c89de18d92bf0c0ca879dc8f677045b8732a6c3fadcc52b1d11a076da8"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ6K::from_float (cognitive 21): BlockQ6K::from_float has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 2 (6 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (BlockQ6K::from_float_imatrix) 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeb6858b73a0e5a29b12d979bfddff0784e4675f7ae13467d181a2fba6a3c44"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ6K::from_float_imatrix (cognitive 21): BlockQ6K::from_float_imatrix has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 2 (6 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (BlockQ6K::from_float) 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381412d7a9828e686de14985f96bb0e24c9172e2e070bafe7b286b9aa797d70"}},{"ruleId":"D2","level":"warning","message":{"text":"QMetalStorage::indexed_moe_forward (cognitive 21): QMetalStorage::indexed_moe_forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, boolean chains 7, match/switch 1 (2 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":"candle-core/src/quantized/metal/moe.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f331e3636a20eefb9cee7d0ddb07515ab725f115dab87873ee81be95fd09812b"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::causal_decode_f32_interleaved_gqa2 (cognitive 21): candle_nn::attention::cpu_flash::causal::causal_decode_f32_interleaved_gqa2 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57565d605ac326260d0ea1c13b5824f3a00c15d1c7d33072054c6ef4aedd2f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConformerAttention::forward (cognitive 21): ConformerAttention::forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18 (21 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":"candle-transformers/src/models/gemma4/audio.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70158b7626289673cc6c0fbed6cf63ce3c3d33eca5e7dc9353f67747b83b9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"Projector::forward (cognitive 21): Projector::forward 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 (Projector::forward_multi) 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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2c2de5b84d462baca04980fbae2ae935b2eb862cd9116251365057fe114461"}},{"ruleId":"D2","level":"warning","message":{"text":"Projector::forward_multi (cognitive 21): Projector::forward_multi 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 (Projector::forward) 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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8c0fa5796599bba7da2a11952c54bd07c680e161f97a31120cb3762f91c63f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvTranspose1D::f (cognitive 20): ConvTranspose1D::f has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 2 (8 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95b21b7d64c5a1954cea0485dadb2cc4f16d18547bd1890dfde2865c21043f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::cat_contiguous (cognitive 20): Tensor::cat_contiguous has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor_cat.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee898c6d6cac1cff21e3e86c68e5af4d9c13ef487af95a43c3bae2b2852b89a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::cuda_backend::gemm_config (cognitive 20): candle_core::cuda_backend::gemm_config has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 6, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b1980d2db965d379f3faa043e50e0eb221262d12cc61dfdfd98e5826e5bb77"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::k_quants::matmul (cognitive 20): candle_core::quantized::k_quants::matmul has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 5 (9 pts), boolean chains 1 (nesting depth added 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e85c06d581a3e28f2d4753fb79172e06e7f333b45c2bd7a567869cb483c87e"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::neon::vec_dot_8_q5kx8_q8k_8x4 (cognitive 20): candle_core::quantized::neon::vec_dot_8_q5kx8_q8k_8x4 has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (15 pts), match/switch 1 (5 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8151652af988a49ebfd9c23eaa30c0300cd08930b3c6461c7e27eb0963b58b"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::varlen::flash_attn_varlen_unfused (cognitive 20): candle_nn::attention::varlen::flash_attn_varlen_unfused has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 2 (nesting depth added 6). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/varlen.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18c29fece604fec4a6a07685f5535e90931beb80251779968c31b0b7a51f2d3"}},{"ruleId":"D2","level":"warning","message":{"text":"PyTensor::to (cognitive 20): PyTensor::to has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 1, match/switch 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"21321d22439fa88a19c0c7e2b8906e044b6b22faf4ccce91a568192c7a2e8337"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralEncoder::forward_with_training (cognitive 20): VoxtralEncoder::forward_with_training has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 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":"candle-transformers/src/models/voxtral/model.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"2771b092e4f9792b8f263484956b10bff381e4694f4771ca9620152a510716ed"}},{"ruleId":"D2","level":"warning","message":{"text":"MatMul::f (cognitive 19): MatMul::f has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 6, loops 2 (4 pts), match/switch 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdee1b4d20874fcf69520c502a944b6b139d38954761700d2dfcae6091a35be"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalStorage::reduce_op (cognitive 19): MetalStorage::reduce_op has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, match/switch 2 (3 pts), 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d33911f23653f1b85f81afe668bed52dbc6d771ef2a812373b5a9039e3f2c16"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ5K::to_float (cognitive 19): BlockQ5K::to_float has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a17638b5c4cef0052af225099652996a409baa007ecd59ef687e3c3fcff63dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ8K::from_float (cognitive 19): BlockQ8K::from_float has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 3 (6 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"435e7c1c60c868834e9d887b285e5f0e0d9c94847c7ed2f028fed62c795debb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::write_bytes (cognitive 19): Tensor::write_bytes has cognitive complexity 19 (threshold 15). Drivers by points: loops 9 (18 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":"candle-core/src/convert.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d3dc5f03734f8d92add6d697972c4bbcab65b0a762c9668a25da2450b8b178"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::cpu_backend::utils::unary_map_vec (cognitive 19): candle_core::cpu_backend::utils::unary_map_vec has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 4 (6 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/utils.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"61435dc62432b0dd78ec55f6c2bc9d461a3eff94c7e46cbb12e520bfffc3d109"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::avx::vec_dot_q3k_q8k (cognitive 19): candle_core::quantized::avx::vec_dot_q3k_q8k has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecca4ad244f3685300f2b1c7603622b5efe04b11fc12cb1da4da1fe63451ee3"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack::pack_to_q6kx8 (cognitive 19): candle_core::quantized::repack::pack_to_q6kx8 has cognitive complexity 19 (threshold 15). Drivers by points: loops 7 (19 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc10dd7462eb4f6dbd9641e894d20ce939d48c6a2a21e4d2bcf24e075d28965"}},{"ruleId":"D2","level":"warning","message":{"text":"PaddleOCRVLModel::forward_multi_image_separate (cognitive 19): PaddleOCRVLModel::forward_multi_image_separate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 5 (8 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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fd90eef21eb27d026b53c571c787d1366c2de0b9058f7366ec4ddf79f3cd99"}},{"ruleId":"D2","level":"warning","message":{"text":"Gather::f (cognitive 18): Gather::f has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts), match/switch 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"749640dccbb62613d4e14343e1ecdc5738f3adae78a5fdd23089e22648ae7641"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::fmt_dt (cognitive 18): Tensor::fmt_dt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), match/switch 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/display.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ea3ff8248b8d9d18c7c437eacf406abd0ec5b4487dc730fc783aa51217507a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack::pack_to_q4_0x4 (cognitive 18): candle_core::quantized::repack::pack_to_q4_0x4 has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (18 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a7e90ce5d898d2781481d9179d61cad9c2a49a9864c3cac43198d0c5be6331"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::run_causal_attn_cpu (cognitive 18): candle_nn::attention::cpu_flash::causal::run_causal_attn_cpu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 6 (9 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cba35e4d14d7e59ff2867e9f51e51c52dbcfb88999b707bb1c05a19e18f700a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::moe::moe_gemm_gguf::cuda_fwd (cognitive 18): candle_nn::moe::moe_gemm_gguf::cuda_fwd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 6 (9 pts) (nesting depth added 5). 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":"candle-nn/src/moe.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"359bc17f878fb45d9f3505c3a6842109230cf86b9e9e9e01f994fd72eda7210a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::moe::cutile::routed_grouped_matmul_inner (cognitive 18): candle_nn::moe::cutile::routed_grouped_matmul_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 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, 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":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18a62a28d72aac0f0ed9180812cea86dd100e74e6fd8f4afaf998f13d08e1ae"}},{"ruleId":"D2","level":"warning","message":{"text":"PaddleOCRVLModel::forward_multi_image (cognitive 18): PaddleOCRVLModel::forward_multi_image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (7 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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"88285eece0f22f58da50d6bec7a45c047de17bf719b36397ee7310d63b836cfe"}},{"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":"candle-transformers/src/models/qwen3_vl/vision.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b3d9ca66a5143232c6833be0b0aa0dca3932a507f8fa053121be38511af9d2"}},{"ruleId":"D2","level":"warning","message":{"text":"UNet2DConditionModel::forward_with_additional_residuals (cognitive 18): UNet2DConditionModel::forward_with_additional_residuals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (6 pts), match/switch 4 (6 pts), loops 3 (4 pts), boolean chains 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":"candle-transformers/src/models/stable_diffusion/unet_2d.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d941c48f7aef190f1cfdd6e24656e6d2f981360279c9b9187e1b586c9cb28d"}},{"ruleId":"D2","level":"warning","message":{"text":"Module.to (cognitive 18): Module.to has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/module.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c1756b59b1496398dce912e8d90df9ddddda1b31e11154ef425fb3997c2ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"Scatter::f (cognitive 17): Scatter::f has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), match/switch 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"319d437215160225ffb783f80b64c4dfc56d9c464f8a28d5e627cada54b6edcb"}},{"ruleId":"D2","level":"warning","message":{"text":"Conv1D::f (cognitive 17): Conv1D::f has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 1 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edbcb62832b56e74b60d5c2c9f57f3f4d5abd3a21b29ae3bd873e501d864df7"}},{"ruleId":"D2","level":"warning","message":{"text":"Im2Col1D::f (cognitive 17): Im2Col1D::f has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 1 (5 pts), boolean chains 2 (nesting depth added 10). 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"f287e4d4b9781777bdccf930a82bc75e9cb8f134158da1dd7a4efed4fefcec66"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalStorage::copy_strided_src (cognitive 17): MetalStorage::copy_strided_src has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 8). 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a26739d0b84c7a2efaff334cf033b9c2dd30749ae2c737b5cf627cfb91f5eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::cat0 (cognitive 17): Tensor::cat0 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 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":"candle-core/src/tensor_cat.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"528266277381d0343e4555169a94eb40198baf30cf06b22331a3ce7b435cd37a"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::repack_x86::matmul_unit_256 (cognitive 17): candle_core::quantized::repack_x86::matmul_unit_256 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b204c3509a1be4782f4f28b252a50fc96c82ae63450986ebde8944459d3f0cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::standard::run_flash_attn_cpu (cognitive 17): candle_nn::attention::cpu_flash::standard::run_flash_attn_cpu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), 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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b7c8a4383f0bd1b7895a065beca390d49f5f24e10ae60b1a7e6d980f0d5fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"DebertaV2Embeddings::forward (cognitive 17): DebertaV2Embeddings::forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84207eae747b06082bf6409e0a4d500cd6461ff450bf7e71e19f1f68cb933f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PaddleOCRVLModel::forward_video (cognitive 17): PaddleOCRVLModel::forward_video has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2fef74a0285321ce015f82c3ebb26701b46901e05919c15739e0fd766d8f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::new (cognitive 17): Model::new has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v7.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"3966c954878092fa4f1da8349ec53e5825f96586fc6b5df727193159d87c6d49"}},{"ruleId":"D2","level":"warning","message":{"text":"ReduceSum::fold_impl (cognitive 16): ReduceSum::fold_impl has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 1 (2 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4731b1956c6f793df181e98d320b12ed9ceb61de1eab2066aca9bccd0ef63751"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockQ2K::vec_dot_unopt (cognitive 16): BlockQ2K::vec_dot_unopt has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (16 pts) (nesting depth added 10). 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"311435eb83b7ab0b5557a28f64a830bfa6113265fed0fa50d9f23e2ebedade80"}},{"ruleId":"D2","level":"warning","message":{"text":"QTensor::indexed_gemv (cognitive 16): QTensor::indexed_gemv has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"26957878db79321900d6dadf519ca2f61cc464e80f25aab44808c42c350f3ed9"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::sorted_nodes::walk (cognitive 16): Tensor::sorted_nodes::walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), 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":"candle-core/src/backprop.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6141b4c2bac7e43b701393e369e97dbdfe68e6060b093f5e90802a348ba188ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::fmt (cognitive 16): Tensor::fmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 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":"candle-core/src/display.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c33432b9cdff111bd3fa88430b7761d2c8486f721bb851184f0b6b19772511"}},{"ruleId":"D2","level":"warning","message":{"text":"Tensor::cat (cognitive 16): Tensor::cat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (4 pts), boolean chains 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":"candle-core/src/tensor_cat.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9445144861f69585e28f9cc7d0ce83b55942dd584f5cca13e6bc730024e064c0"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_core::quantized::simd128::vec_dot_q2k_q8k (cognitive 16): candle_core::quantized::simd128::vec_dot_q2k_q8k has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (16 pts) (nesting depth added 10). 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":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6604cd5ffb7f7760f9ecd6ed5b04a705c7440dfc4d72c9fd7c7b152336259345"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_datasets::vision::cifar::load_parquet (cognitive 16): candle_datasets::vision::cifar::load_parquet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/cifar.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"54891b58772e65bcd678bd86bfd875306ea4fe9cd09480bb7de336f9474fa940"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_datasets::vision::mnist::load_parquet (cognitive 16): candle_datasets::vision::mnist::load_parquet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/mnist.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a827bd482000636cbe88b83389768956b608560614bb042f82f79cd51979b14"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::causal_decode_f32_lean (cognitive 16): candle_nn::attention::cpu_flash::causal::causal_decode_f32_lean has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 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. This shape REPEATS in the file: one other method here (candle_nn::attention::cpu_flash::causal::causal_prefill_f32_lean) 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c056858fd9f7984ef6d06e045f9d02a8a804dbac971bbaf2128012f163250024"}},{"ruleId":"D2","level":"warning","message":{"text":"candle_nn::attention::cpu_flash::causal::causal_prefill_f32_lean (cognitive 16): candle_nn::attention::cpu_flash::causal::causal_prefill_f32_lean has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 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. This shape REPEATS in the file: one other method here (candle_nn::attention::cpu_flash::causal::causal_decode_f32_lean) 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"f858ecd34073000cfa7895f93d70e11bb7549361488805f0fcbec877a86369fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MMProjector::load (cognitive 16): MMProjector::load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (6 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"148ecba9e637316efe1289ca0896507a0053aab2409323218f2ca1303767b7ca"}},{"ruleId":"D2","level":"warning","message":{"text":"BPE::from_json (cognitive 16): BPE::from_json has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 1 (2 pts), loops 2 (nesting depth added 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":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e47b9b19f1539cb4fe1e3d3c1880a07255e03f3eb3b20fcc9857bdddeed43f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortConvLayer::forward (cognitive 16): ShortConvLayer::forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a26ba3959b903dacd5ec9b7f8bdc012777cddd5d253d073822fbf0658648a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_onnx::eval::simple_eval_: FunctionTooLong \u2014 candle_onnx::eval::simple_eval_ runs 1588 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1488 over it, 15.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":"candle-onnx/src/eval.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"61efb25b0a4e50aabf3365c15b304146442f539d16e5cb35f8bbe2b3a5a4778c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Tensor: TooManyMethods \u2014 212 methods, declared across 12 files: src/tensor.rs (164), src/custom_op.rs (13), src/conv.rs (9), src/npy.rs (7), \u002B8 more file(s). The bar is 30 methods; this is 182 over it, 7.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca8464c0e71e37fca84e924f967a18f8c4abfee9f7b3e7633c9d2f5b0850e31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/neon.rs: FileTooLong \u2014 3184 significant 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 59 free functions. The bar is 500 significant lines; this is 2684 over it, 6.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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58826a7dde8d443a1d19bc99c1b43e2a2169cb0b6424395a579fc82a35c1e20d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpu_backend/mod.rs: FileTooLong \u2014 2467 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1967 over it, 4.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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc08bd1e1c7dee53aafd7052c331793057e773f2dad56dfd44ad88f1ba869c9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Tensor.backward: MethodTooLong \u2014 backward runs 445 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 345 over it, 4.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"512909ed923811742bd59e5a0757f2a5a036a2664323855aa699f7ad5483086a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda_backend/mod.rs: FileTooLong \u2014 2185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1685 over it, 4.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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11eb38aa64ea4edb8e66c6b37adffc57123fd71f236f522db489d12cd76aa95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MetalStorage: ClassTooLong \u2014 1655 significant 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 78-2019. The bar is 400 significant lines; this is 1255 over it, 4.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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"476bf412c728afd0d635e521c3667dca5e550c362f5ec131575b35747156b90a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal_backend/mod.rs: FileTooLong \u2014 1994 significant 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: MetalStorage (3 blocks, 78-2019). The bar is 500 significant lines; this is 1494 over it, 3.99\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34b6f46610d2230170c92ab29d8d770770ec12f7f6b98a47b87acb49a03572c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/k_quants.rs: FileTooLong \u2014 1983 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1483 over it, 3.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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc8243e03c60ee49b977af61360b3d2c823401590405394ef5e488337cb3d0e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Tensor: ClassTooLong \u2014 1540 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 212 methods, 4 blocks, lines 47-3158. The bar is 400 significant lines; this is 1140 over it, 3.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":"candle-core/src/tensor.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf42d74d09ee78e70cf8a1841d225410288704f968455ca965dc2a694efdf7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/eval.rs: FileTooLong \u2014 1786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1286 over it, 3.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93c595b2e43e825bb66e5f2cc7ea55f58518cccf1b911f94815ccaee29dd984"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tensor.rs: FileTooLong \u2014 1714 significant 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: Tensor (4 blocks, 47-3158). The bar is 500 significant lines; this is 1214 over it, 3.43\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":"candle-core/src/tensor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00267bf7395397e7812b7501c723371557c92f8567c0a0ace52fbfff546ff7b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CpuStorage.to_dtype: MethodTooLong \u2014 to_dtype 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"226d7dfb4fb744c96bd963aa282a22c03cdc8a4ca50eb6e5ba2931c6e0710f66"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CpuStorage: ClassTooLong \u2014 1074 significant 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 23-3155. The bar is 400 significant lines; this is 674 over it, 2.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"935b554cf3b6bb2b4e72c7d929eaa0ea66736d98d7493f2ecadf398ed706f8d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::moe::cutile::kernels::routed_grouped_matmul: FunctionTooLong \u2014 candle_nn::moe::cutile::kernels::routed_grouped_matmul 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":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb7fef1ff72faf276d8659ae7515bcab8cc53d73a14c887077faa2e4d20818"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_gguf: MethodTooLong \u2014 from_gguf 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":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1615e306aa8c6ef892d4a3c7ba5730041f909de0c21d3be8d30205de1ae90fa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu: FunctionTooLong \u2014 candle_nn::attention::cpu_flash::varlen::flash_attn_varlen_cpu runs 232 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 132 over it, 2.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":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c585dc130d496bf244ebede69ea2ccdc5485242fc34cf08dc22aeee2a13f89f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CudaStorage: ClassTooLong \u2014 915 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 3 blocks, lines 1251-2539. The bar is 400 significant lines; this is 515 over it, 2.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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"115abe18a8b914657beceaa60b827e0cf06b050a39aa80eb9d8aab67525f687f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttnVarLen.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t 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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e62900bbf04a4cef92fb0c54eec8d508589375bf1ad17cff406f6794292a051"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PyTensor: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.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":"candle-pyo3/src/lib.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a519343f8392d20095f7617cb71b25f3cb5e9edb5df67da8179dfe5200780de8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1054 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 554 over it, 2.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":"candle-pyo3/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fbc772f73704f7d90839324f5c1be5a25f053aa64755100ca4cb9b61a43066"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/debertav2.rs: FileTooLong \u2014 1028 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 528 over it, 2.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":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e8ade5426dc1eef54090dd22e12ffb2aa6fdd38cc44708532715aa00cd18b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ops.rs: FileTooLong \u2014 978 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 478 over it, 1.96\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04582b7b2c76e54581f2ea816f958bcd29bca85d7bdd3a329a176eff51338cfd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/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). The bar is 500 significant lines; this is 458 over it, 1.92\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af07e664d3dbf499abbb7d2cc04566af7411a32618853569173e87d8da267200"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Sdpa.metal_fwd: MethodTooLong \u2014 metal_fwd 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":"candle-nn/src/ops.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b5e776327e76b310bdccfb71cb2a7f365ef10a61b677d8b90e6669449abcf5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/op.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":"candle-core/src/op.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a47c63e24229225c4896f10d1a2a236d7a0d0cf279fe3a3424fb4e906db4290"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::sdpa::call_sdpa_full: FunctionTooLong \u2014 candle_metal_kernels::kernels::sdpa::call_sdpa_full 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":"candle-metal-kernels/src/kernels/sdpa.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"961fac2941f63cca907f4f361a8601c01bb1912501b9f274067a9a832d2e0b3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLModel.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/qwen3_vl/mod.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce42a19f667869876f51305ba9886a0546209fadac9e32aaa89ca7b45ab8717"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WDiffNeXt.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":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fb40800fc08ce33b51539acbed9ad40c747394a60d2bdfd35ea56a6974406d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/repack.rs: FileTooLong \u2014 824 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 324 over it, 1.65\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"673d869e899d8d5488cdc1ee9090f179378031b1b126450deecd9cee74c0887d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UNet2DConditionModel.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":"candle-transformers/src/models/stable_diffusion/unet_2d.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce8ad9fa79a80f9804791fe7e3b99c3d44cb58f9ea8c9f1d8377512586a049"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm: FunctionTooLong \u2014 candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemm runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6dab3a720a9f08d03b97dccf934a31fca161820c08f38e4291f9eea5df9fdb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/deepseek2.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). The bar is 500 significant lines; this is 288 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":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa91dd12c3e63a667a798e596fd185c0aa01130287c262fc645c0b20de51c37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/cuda.rs: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 273 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1bdabd12ee93bc0a3c3c7eddb605a1714e5f00264941e00e69ea2bdb8cddf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quantized/repack_x86.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":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc74cf5d0985603c1b2c172a8524e2d5aec09d2db6b6d00abf5b385dc4144185"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalStorage.unary_impl: MethodTooLong \u2014 unary_impl 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8f79ff24e1a5d37a3eeeb92e82ecdce5666de8fb360ac74fb7a35026a7c6d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Storage: 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), 36 methods, 2 blocks, lines 12-855. 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":"candle-core/src/storage.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6876e5bceb87286a63fd2a90fd65dee2dd3b6ba99cd2e6129a216719ff3beb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::store_q5kx8_4x8: FunctionTooLong \u2014 candle_core::quantized::neon::store_q5kx8_4x8 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f6dc497a7230cc29b3dbc6c65aaab1eb8894972ac526df4c9d4d496f355821"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/metavoice.rs: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 241 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed834a9edab0b9b44c59a4644538aa72aac334849f553b9b40e3610ede2a261"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaddleOCRVLModel: ClassTooLong \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), 17 methods, 2 blocks, lines 47-1104. The bar is 400 significant lines; this is 192 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"047e28cb880aea955686a3741744fd5a63e3a7e6c020c8caa21c8dcfe7106b99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paddleocr_vl/text.rs: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 228 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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32e766183469d1b3eb09165827ffcf96ee15416d9764b9e3b37f6a46aef1fcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttnVarLen.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"6258a67b19b1f0712311a006e5cfe8fb9c8e8d0bc77c1e5301434d03f393cc7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv: FunctionTooLong \u2014 candle_metal_kernels::kernels::mlx_gemm::call_mlx_gemv 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":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"505cefc15e15be84841ab3e1c32f8330acfdee80e2b04ada6e3eb3bfd557e4ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaStorage.copy_strided_src: MethodTooLong \u2014 copy_strided_src 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d061ef9bdfe422ba4990bffed7a79c9cc174aa0ccd7906b1c4e5469184dd01fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paddleocr_vl/vision.rs: FileTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 206 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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1ef26ac95443152d8b6c9b85353571ee4dc6696e923f6431c594132d7dfeea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpu_flash/causal.rs: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c165bf9d29e5ac5b913eca6dc58c9f88a2013f1beb3e271ca87942e2c311e757"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rotary_emb.rs: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 187 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"852104a04c1860a62d8632c347c28fb4d066f5f6dd15c8c04d079ca4f609f60e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: z_image/transformer.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":"candle-transformers/src/models/z_image/transformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b7093dd555745f9dff99358ad541c0cfab0781c257ef7ca3e2ebed8817aab1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/audio.rs: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/audio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf02a88674ac3d7e61ab79e6c8cd73f294ff39699bfecb55fbf756836cf6373a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_gguf: MethodTooLong \u2014 from_gguf 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":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc1c7eb4b5676902fff58aece1a2637b4e1b04e20b28101ab434d2d4703432"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stable_diffusion/unet_2d_blocks.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":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"234a153c9f81edcfc6276a57c95f0be59e414d4a736c80b139f958a69cb036c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/t5.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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ffc9a26df804fc6ec7ee4469d0f69f90db67ab89ac149149985a5d57a360e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9dcbdab3f46c4201038bfb0cecc282cbaae937e91b5990390a6a96c957b13c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Stack.read: MethodTooLong \u2014 read 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":"candle-core/src/pickle.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0449d04f7d2413ae106e27cb38c583ed11601390f87ae2a8fc1951f8342e516a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::moe::moe_gemm_gguf: FunctionTooLong \u2014 candle_nn::moe::moe_gemm_gguf 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":"candle-nn/src/moe.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"329a46c577dcdf63e1cb623257b6004c5db8ef80ffe9bc711b5add2d73c7c4dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_gguf: MethodTooLong \u2014 from_gguf 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":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9313de89839ce29288391a09e2322cea32e179bf9a02a665c0b6199112bb79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stable_diffusion/uni_pc.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":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52301bb77b3f910f044020b5c1fec40b7ff75a4e9dfedd8208f82ed093d46707"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::store_q6kx8_4x8: FunctionTooLong \u2014 candle_core::quantized::neon::store_q6kx8_4x8 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"a587860a8e59fbb2a604ac8b2bd467ae23171762d478d50a2d112437c02dbf78"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::utils::make_qx_quants: FunctionTooLong \u2014 candle_core::quantized::utils::make_qx_quants 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":"candle-core/src/quantized/utils.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"16948c95d7eea039dd554bd5759e01e5eb1826014be796e94122d88b298e12ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuantizedAttention.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9875c17379f91fad96b7b51c4142ae144206895d3e4d43cf72964a9564b521"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: voxtral/model.rs: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 161 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":"candle-transformers/src/models/voxtral/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8701753e85ffdec76c2b6bf0cf1064c0f87ac8f049f45afc3aece861ae1f76c9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLaVA.prepare_inputs_labels_for_multimodal: MethodTooLong \u2014 prepare_inputs_labels_for_multimodal 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":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac95a5b77be2c9d83b302b3786d4ecf844da4c8398df83f31eec1bbf65e0a21"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CpuStorage.concat: MethodTooLong \u2014 concat 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"e380e5f720f6f931fe85ab2818a36433ecefa42b594c52ad482c99b48bcc0edc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PyTensor: ClassTooLong \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), 65 methods, 2 blocks, lines 36-1129. The bar is 400 significant lines; this is 118 over it, 1.30\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":"candle-pyo3/src/lib.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ca4029993c00ec60ce74531f04838249c6d0b1e1f6b04e7dce653829ae988e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::sdpa::call_sdpa_vector_2pass: FunctionTooLong \u2014 candle_metal_kernels::kernels::sdpa::call_sdpa_vector_2pass 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":"candle-metal-kernels/src/kernels/sdpa.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b92199e18bb23d193d6c11c86cac9d5a4dd5cb60946f964c5aee7ee8e2b6ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/rwkv_v7.rs: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 141 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v7.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"139cdf4e91a5ed1cd960a9b11afe0e12b652866754187e802346a559bc2f9e9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CudaDevice: ClassTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 6 blocks, lines 59-815. The bar is 400 significant lines; this is 109 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f3d701876bbf9795ce7453129150930230f964a1b58febe58cf8f6ddac7de4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/snac.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":"candle-transformers/src/models/snac.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da744cd0499f2cd1ff6dd85fddca9f786ef13a68b16a97286a1a780a19745fd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::store_q5kx8_4x8_i8mm: FunctionTooLong \u2014 candle_core::quantized::neon::store_q5kx8_4x8_i8mm 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c75290808976089380b8cf9fb02d649d483dd7d973d066fd500b6582d324ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::vec_dot_8_q4k_q8k: FunctionTooLong \u2014 candle_core::quantized::neon::vec_dot_8_q4k_q8k 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":4099}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a32a9d2e84c95cf2d28cfe6d45ddffb4e86ee91b3362841ff64057723ef3b7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::moe::cutile::routed_grouped_matmul_inner: FunctionTooLong \u2014 candle_nn::moe::cutile::routed_grouped_matmul_inner 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":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4925669c536362b0295e41c9ff8279f22a58b6b1aff774b1d1d0a19a859848"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalStorage.reduce_op: MethodTooLong \u2014 reduce_op 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"498a2781e4ee519635b52f8f7372c372b5bf8ac10a03e0aaf93a3247536a3064"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::sort::multi_block_sort: FunctionTooLong \u2014 candle_metal_kernels::kernels::sort::multi_block_sort 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":"candle-metal-kernels/src/kernels/sort.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1824e901b0b835cb6a4a4f1bacd9e6e12d528fdbce793628ef545a3a3c358b8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: moe/cutile.rs: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 121 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":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d806df1d8229479e2460a45045e9d58e42cd354cbf49723f8bdacb70b805715b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: candle_core::mkl: TooManyFunctions \u2014 37 free functions. The bar is 30 free functions; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/mkl.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"850c4524be331d72da7c0a4dabda0ad5fcb18f09365ea90be07145f1f40282bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/storage.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), about 98% of them inside a single declaration: Storage (2 blocks, 12-855). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af20d6447456ba206ff637056caced4c5a8fd3a9a8de8b9b610771517d74bc95"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::fast_mmvq::try_fwd: FunctionTooLong \u2014 candle_core::quantized::fast_mmvq::try_fwd 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":"candle-core/src/quantized/fast_mmvq.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b21007bc4631f2408cea71da4c89b024957203ab002f19fe1884d12865305e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::quantized::call_quantized_matmul_mv_t: FunctionTooLong \u2014 candle_metal_kernels::kernels::quantized::call_quantized_matmul_mv_t 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":"candle-metal-kernels/src/kernels/quantized.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b95088f13e04d08a2a97ad230f4181e9ab1f9c6da45c33e1de0f243a81f281"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DebertaV2DisentangledSelfAttention.disentangled_attention_bias: MethodTooLong \u2014 disentangled_attention_bias 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":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b9ff04c9516c067bd4a0125d857c6b6716938b1cb91ec0695542b73b22a0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QMetalStorage.indexed_moe_forward: MethodTooLong \u2014 indexed_moe_forward 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":"candle-core/src/quantized/metal/moe.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"45649bccb3c97ff9ab456c3dfa1a7c02a97a43749ad12fa43de49194f8e9eee3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttn.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5a6220d7b0d84c7a43dc12711d240e55c4b357dfe499199f12169194ecc419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/backprop.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), about 91% of them inside a single declaration: Tensor (30-731). The bar is 500 significant lines; this is 106 over it, 1.21\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":"candle-core/src/backprop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c554fef16097629b08cdde8665718732a2391937c0122341033d588ce40f954"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paddleocr_vl/mod.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), about 98% of them inside a single declaration: PaddleOCRVLModel (2 blocks, 47-1104). The bar is 500 significant lines; this is 105 over it, 1.21\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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7f32a53153db63b403c4f0fb89f7e885b9fca2136177213322729cb8725e5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFQWenMoE.from_gguf: MethodTooLong \u2014 from_gguf 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":"candle-transformers/src/models/quantized_qwen3_moe.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee928c5349038a895efdb65f176e0ebfd1fe3c1a87295a2a790d270594dc48b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/encodec.rs: FileTooLong \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). The bar is 500 significant lines; this is 103 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":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73b08d184c279d0c24bea123ad7c1d0c4ce6c1e810570475d3c4a49f4fbadae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: candle_core::accelerate: TooManyFunctions \u2014 36 free functions. The bar is 30 free functions; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4fe1cdf9fb0a50604bdcb5f441da204591780461040f603934f5563d42d7db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Storage: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e084c6a017a6835a2d0295d140e0ab5f9f21089c0f182c3753b8dfc332eda774"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaStorage.to_dtype: MethodTooLong \u2014 to_dtype 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f59314f52f9bdcfd17235eb340c7292a5a118d522ca7e034adfd04d48b00294"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/quantized_t5.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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34432069700cd7ccdad3ef7873a0df737be14902b5931cf8330c94ade64cc1ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/mobilenetv4.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":"candle-transformers/src/models/mobilenetv4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdcba4aebe3ade909f746b36b9386f831729a6ab69d1edae02494be82fb157c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QTensor: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 20 methods, 6 blocks, lines 65-1308. The bar is 400 significant lines; this is 70 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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6ce9a2f68d1f8e632ecaf46328e8f97470dad082956e3e13d83de9a666609e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::vec_dot_4_q6k_q8k: FunctionTooLong \u2014 candle_core::quantized::neon::vec_dot_4_q6k_q8k 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5a5cd59a28887b15a3c23077c0fe0c5e1c11273fff7e052b314876ceba2c07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pickle.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). The bar is 500 significant lines; this is 84 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":"candle-core/src/pickle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcf09e1e9c23c92c19bb93d158e08144a0ebc539bbcaadda09a3b6f1ddbf7e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mimi/transformer.rs: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 82 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45f55ed81ff2dbda1d7e41594ef6aa7a064b82a88b93ed0914807fc55e9b6ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::store_q4kx8_4x8_i8mm: FunctionTooLong \u2014 candle_core::quantized::neon::store_q4kx8_4x8_i8mm 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3d50ccab6742becd7a4d005761d9cdc33e4b85ed878478cefced5c2c19e8f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda_backend/device.rs: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: CudaDevice (6 blocks, 59-815). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab7e15ff15df9ce4ad36ec4b8073ddb09444111888adf8fb37b2c3489f9ac8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::moe::moe_gemm: FunctionTooLong \u2014 candle_nn::moe::moe_gemm 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":"candle-nn/src/moe.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3222f7f12a41bc1416e897d9ba6a1a0cd5ff1350b227eb5e2f8a0089c240beb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smol/quantized_smollm3.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":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c82a838156adda935abe0cd9415d00e94332e78d85311fe96b1443b1ebce08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/siglip.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":"candle-transformers/src/models/siglip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6414fbdf7bfe68b9f42f170873b81309754314f4f0f141a1df92d9860a68f02b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttn.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t 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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7ec3c63a2fe2a9692280a90638c881730c48e9e35f10cb1842e1232deb2cad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_metal_kernels::kernels::quantized_moe::call_quantized_moe: FunctionTooLong \u2014 candle_metal_kernels::kernels::quantized_moe::call_quantized_moe 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":"candle-metal-kernels/src/kernels/quantized_moe.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ee73d0f2fa4ce9d853c41b4129206878dba4bc237970627413248b889007d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/var_builder.rs: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 50 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":"candle-nn/src/var_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69850e467fb2dc193130ecb2eb2097179ccc03a1aea8abed1a64768523028ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConformerAttention.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/gemma4/audio.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"db97432a22dfe28aaa05bdaf7597a1d7bfcb83b3dddb8fd08476dce977c8ea71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/kv_cache.rs: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 45 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":"candle-nn/src/kv_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f985e3ec870477ca9d1f57f55b88bb115fe2a80e30218fd1b2b4bdd57a985"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::vec_dot_4_q4k_q8k: FunctionTooLong \u2014 candle_core::quantized::neon::vec_dot_4_q4k_q8k 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3644}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a869f580e50510031cb137cfc54b43668c3b43a968b0df10c6e5fdd31be9e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Tensor.sorted_nodes: MethodTooLong \u2014 sorted_nodes 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":"candle-core/src/backprop.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"153f0b98c6857650b7c17b62b193de08614f6e64c5162519adc2daebacd69a85"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::attention::cpu_flash::causal::run_causal_attn_cpu: FunctionTooLong \u2014 candle_nn::attention::cpu_flash::causal::run_causal_attn_cpu 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98199040ede6aa786a9f76d119c2076eb291e5d0ecf0d03d062da764489f095"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Module: 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":"candle-pyo3/py_src/candle/nn/module.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"715a81ee63f54900e31f5420f93dd08e673848251a8e709161247265dfb02ee0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::fast_mmq::try_fwd: FunctionTooLong \u2014 candle_core::quantized::fast_mmq::try_fwd 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":"candle-core/src/quantized/fast_mmq.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"160966443733c093345ab795f0b09aec5956423c717580d6ee4ce361787ec432"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::k_quants::matmul: FunctionTooLong \u2014 candle_core::quantized::k_quants::matmul 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb61ec526694f00965803d3b5cf0c8e35d8073f51cf9a874f7c0757fea1e924b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scratch.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":"candle-transformers/src/models/depth_anything_v2.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f326f25c563cbdd02af4ac127e894aca500cf08606b511507061d343c178f9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Mamba2Block.forward_prefill: MethodTooLong \u2014 forward_prefill 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":"candle-transformers/src/models/mamba2.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2b8266d14db55d98f73a9bdcfdb441c18a02517cea5f996007acbee859ca8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/stella_en_v5.rs: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stella_en_v5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee533d570a164213d5217e0d1cfe4c1aa37cbf93cbfec2de70147252216c741f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 31 stored fields. 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":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9deb05787bd7f235e10558dae8a3a8fb2ac36e15aa84db6213a313918cc71761"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 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). The bar is 500 significant lines; this is 16 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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c219c8a988d3126f29bd5d11f9b28671b59920fed03b02d692d2e0fcb518aea4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x8: FunctionTooLong \u2014 candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x8 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6a2feaf08b052f94b80bcfd6b3053ff0efaeb2073ddae6afb32caecd1dade5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::attention::cpu_flash::standard::run_flash_attn_cpu: FunctionTooLong \u2014 candle_nn::attention::cpu_flash::standard::run_flash_attn_cpu 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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36e60fd40caf32ffb35b6ff89a756e502e0d06d4e30eee325ed94629515f355"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: T5Attention.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"4921524db2137531c0779deab2e867b7ddbcbe2a4d9d29517df1682d25a97b6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/marian.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":"candle-transformers/src/models/marian.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b804e38cfc0a371b88ab9ac6b44a24c5bef091e647a7d267415760e8ddc4b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::store_q6kx8_4x8_i8mm: FunctionTooLong \u2014 candle_core::quantized::neon::store_q6kx8_4x8_i8mm 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b9452a92fde6621c7df6346c5110a3a7da2e6a60192daf796fe606272bb1ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_nn::attention::varlen::flash_attn_varlen_unfused: FunctionTooLong \u2014 candle_nn::attention::varlen::flash_attn_varlen_unfused 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":"candle-nn/src/attention/varlen.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6374e71805029164da143832b35337385853c8d6be0d6dd9fb4b960cd6718d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AttentionWeights.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eb04eda16f64741faedb3862bf8e3631b564c2f649c7bf4fc3ed9f7c0fe9bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: T5Attention.forward: MethodTooLong \u2014 forward 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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3c1daf9110a2292819b5f2d4546f26742d5a951f516843ec880883d04c0d31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/recurrent_gemma.rs: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 9 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":"candle-transformers/src/models/recurrent_gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fef96474da500109189fb229094764f696064ac3085a94934b6a02c01a85ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/quantized_lfm2.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":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa7c296b60f224636cba6c85b9ec3bea1061c250aebcf3e31aa0c3aa227c58a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/text.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":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38a171e20bf5db640c0e90f1c1bdc7702f3912d01ab25c7fa0ce02b3d6f3efb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QTensor.gemv_fused_shared_lhs: MethodTooLong \u2014 gemv_fused_shared_lhs 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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"285b5fd57f07b70adcb2c91ab7a33203a7d6ed23508956acafdcbee59fa0a9f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x4: FunctionTooLong \u2014 candle_core::quantized::neon::vec_dot_8_q6kx8_q8k_8x4 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa2f6f736a421cac2efd568a039214ed807fba83289f41957b81755485cb002"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 14 shared lines): candle-transformers/src/models/based.rs:384-433 | candle-transformers/src/models/csm.rs:192-244 | candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/helium.rs:199-258 | candle-transformers/src/models/mistral.rs:248-307 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/olmo.rs:161-221 | candle-transformers/src/models/olmo2.rs:156-209 | candle-transformers/src/models/phi3.rs:205-261 | candle-transformers/src/models/quantized_mistral.rs:147-198 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/starcoder2.rs:163-210 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 16 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 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":"candle-transformers/src/models/based.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b3420ac3342213dd0807f6736f874b53e20fec5e773bcbc4fd66b7a5a6eb1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 16 shared lines): candle-transformers/src/models/csm.rs:192-244 | candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/gemma2.rs:197-259 | candle-transformers/src/models/helium.rs:199-258 | candle-transformers/src/models/mistral.rs:248-307 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/olmo.rs:161-221 | candle-transformers/src/models/olmo2.rs:156-209 | candle-transformers/src/models/phi3.rs:205-261 | candle-transformers/src/models/quantized_mistral.rs:147-198 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 15 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81fe3c596ba273ac838f647ec0df33b8f616e651b2b807a9d44af22b14c3033"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 17 shared lines): candle-transformers/src/models/csm.rs:192-244 | candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/gemma2.rs:197-259 | candle-transformers/src/models/gemma3.rs:223-282 | candle-transformers/src/models/helium.rs:199-258 | candle-transformers/src/models/mistral.rs:248-307 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/quantized_mistral.rs:147-198 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 13 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 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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"39187d6e1b6e3f667a5b234903881854999a57fe310a14790e01b896e2bd0232"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 16 shared lines): candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/gemma2.rs:197-259 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/olmo.rs:161-221 | candle-transformers/src/models/olmo2.rs:156-209 | candle-transformers/src/models/phi.rs:190-263 | candle-transformers/src/models/phi3.rs:205-261 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/starcoder2.rs:163-210 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 13 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea58a05c9885ea900f70a20e18c06f4fe6dc359d567329ad4252273e44a40d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 15 shared lines): candle-transformers/src/models/csm.rs:192-244 | candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/helium.rs:199-258 | candle-transformers/src/models/mistral.rs:248-307 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/nvembed_v2/embedding.rs:130-171 | candle-transformers/src/models/quantized_mistral.rs:147-198 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/starcoder2.rs:163-210 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 13 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 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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05f26dd2b4c63e27f9f81b0efa27a84aef8e8cf94455329f10cec056c6c302"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 15 shared lines): candle-transformers/src/models/csm.rs:192-244 | candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/gemma2.rs:197-259 | candle-transformers/src/models/helium.rs:199-258 | candle-transformers/src/models/mistral.rs:248-307 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/quantized_mistral.rs:147-198 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/starcoder2.rs:163-210 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 13 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 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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"122c7ff7c36d4900fdf66481197a091bff01163c688cd794bfc60c8a17ba5e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 14 shared lines): candle-transformers/src/models/gemma.rs:202-259 | candle-transformers/src/models/gemma2.rs:197-259 | candle-transformers/src/models/gemma3.rs:223-282 | candle-transformers/src/models/gemma4/text.rs:309-376 | candle-transformers/src/models/mixtral.rs:183-239 | candle-transformers/src/models/olmo.rs:161-221 | candle-transformers/src/models/olmo2.rs:156-209 | candle-transformers/src/models/phi3.rs:205-261 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 | candle-transformers/src/models/stable_lm.rs:240-307 | candle-transformers/src/models/yi.rs:199-248 \u2014 These 13 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 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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2438b1e78880bee8ca29302f5c26a8f67c2abe3a627fcd6d7ce93c616eb7869e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 10 shared lines): candle-transformers/src/models/based.rs:572-587 | candle-transformers/src/models/helium.rs:373-388 | candle-transformers/src/models/mistral.rs:429-444 | candle-transformers/src/models/mixtral.rs:467-482 | candle-transformers/src/models/olmo.rs:331-346 | candle-transformers/src/models/olmo2.rs:326-341 | candle-transformers/src/models/phi3.rs:406-421 | candle-transformers/src/models/quantized_stable_lm.rs:284-300 | candle-transformers/src/models/qwen2_moe.rs:462-477 | candle-transformers/src/models/stable_lm.rs:416-432 | candle-transformers/src/models/starcoder2.rs:329-344 | candle-transformers/src/models/yi.rs:348-363 \u2014 These 12 members are variants of one another: a block of 10 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 12 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6133b721bb23744d6fea110589e44101373e1a31db96a11a8d10a82daa35fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 21 shared lines): candle-core/src/quantized/neon.rs:677-745 | candle-core/src/quantized/neon.rs:853-920 | candle-core/src/quantized/neon.rs:1129-1196 | candle-core/src/quantized/neon.rs:1873-1960 | candle-core/src/quantized/neon.rs:2660-2747 | candle-core/src/quantized/neon.rs:2968-3036 | candle-core/src/quantized/neon.rs:3113-3178 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"72055e83ed4475ef3204787b7dac6154487ec51421b02250f80630446e36400d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 13 shared lines): candle-nn/src/attention/cpu_flash/causal.rs:204-295 | candle-nn/src/attention/cpu_flash/causal.rs:310-381 | candle-nn/src/attention/cpu_flash/causal.rs:397-461 | candle-nn/src/attention/cpu_flash/causal.rs:472-568 | candle-nn/src/attention/cpu_flash/causal.rs:587-700 | candle-nn/src/attention/cpu_flash/causal.rs:716-797 \u2014 These 6 members are variants of one another: a block of 13 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"236b3075896be8ef479b2c04fda2a5977c8f4b97235854a30a9ee2e761f75aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 13 shared lines): candle-transformers/src/models/olmo.rs:161-221 | candle-transformers/src/models/olmo2.rs:156-209 | candle-transformers/src/models/paddleocr_vl/text.rs:837-884 | candle-transformers/src/models/phi3.rs:205-261 | candle-transformers/src/models/qwen2.rs:160-210 | candle-transformers/src/models/qwen2_moe.rs:167-217 \u2014 These 6 members are variants of one another: a block of 13 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":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb80f0dfbcb4bc9de988f1089a4c2f06c1d75e08d40c5c4c7fc9e9689694ec58"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 32 shared lines): candle-nn/src/attention/cpu_flash/causal.rs:204-295 | candle-nn/src/attention/cpu_flash/causal.rs:310-381 | candle-nn/src/attention/cpu_flash/causal.rs:397-461 | candle-nn/src/attention/cpu_flash/causal.rs:587-700 | candle-nn/src/attention/cpu_flash/causal.rs:716-797 \u2014 These 5 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 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1041ee6221409ffef8340fae0244a6f621dcde6977dde58a94781e8bd088441b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 18 shared lines): candle-transformers/src/models/granite.rs:230-309 | candle-transformers/src/models/granitemoehybrid.rs:279-359 | candle-transformers/src/models/lfm2.rs:327-405 | candle-transformers/src/models/llama.rs:276-356 | candle-transformers/src/models/voxtral/voxtral_llama.rs:190-274 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bc87742d95038541b3ee0590944cc139c54059522aaf201d1f94a35aff2153"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 64 shared lines): candle-flash-attn-v3/src/lib.rs:41-240 | candle-flash-attn-v3/src/lib.rs:455-685 | candle-flash-attn/src/lib.rs:32-220 | candle-flash-attn/src/lib.rs:475-821 \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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4206920e8d230d2bf4e142d2152d0ddbda35a411d11b63a963b98d06f34e1615"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): candle-transformers/src/models/quantized_rwkv_v5.rs:104-163 | candle-transformers/src/models/quantized_rwkv_v6.rs:135-210 | candle-transformers/src/models/rwkv_v5.rs:155-214 | candle-transformers/src/models/rwkv_v6.rs:113-188 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"451fdaeb73199d99785584d211440a9975577f8bee1976ee5c56618467ad5cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 32 shared lines): candle-transformers/src/models/paddleocr_vl/mod.rs:518-558 | candle-transformers/src/models/paddleocr_vl/mod.rs:578-619 | candle-transformers/src/models/paddleocr_vl/mod.rs:642-683 | candle-transformers/src/models/paddleocr_vl/mod.rs:819-889 \u2014 These 4 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 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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"1667161049e25d07ad459ee7493ab22fd827a604a12ddcf840e1f5960dcb3e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 shared lines): candle-core/src/quantized/neon.rs:596-668 | candle-core/src/quantized/neon.rs:757-844 | candle-core/src/quantized/neon.rs:2759-2820 | candle-core/src/quantized/neon.rs:3048-3104 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a7c5392e821582e506de7d8933b68a980b6b91b24e432b74ba1701abb512b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 10 shared lines): candle-core/src/cuda_backend/mod.rs:734-766 | candle-core/src/cuda_backend/mod.rs:778-809 | candle-core/src/cuda_backend/mod.rs:849-885 | candle-core/src/cuda_backend/mod.rs:897-934 \u2014 These 4 members are variants of one another: a block of 10 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb2e3fdb9b0c734cf067cb3da1becb447265b2abcd278ef969ea88e69096631"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 10 shared lines): candle-transformers/src/models/helium.rs:67-85 | candle-transformers/src/models/mimi/transformer.rs:58-74 | candle-transformers/src/models/mistral.rs:118-136 | candle-transformers/src/models/quantized_mistral.rs:33-51 \u2014 These 4 members are variants of one another: a block of 10 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":"candle-transformers/src/models/helium.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f8ec58f66fe1c11b154b0fecc2977241d6cae101137f27327f8cc47e0f7a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 9 shared lines): candle-core/src/cuda_backend/mod.rs:521-564 | candle-core/src/cuda_backend/mod.rs:576-618 | candle-core/src/cuda_backend/mod.rs:630-670 | candle-core/src/cuda_backend/mod.rs:682-722 \u2014 These 4 members are variants of one another: a block of 9 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"babbed533f5242d8ab01ed99a228931617d41ab2a77bf03574b24c0b7724b5ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 22 shared lines): candle-transformers/src/models/quantized_lfm2.rs:126-181 | candle-transformers/src/models/quantized_llama.rs:196-266 | candle-transformers/src/models/quantized_qwen2.rs:84-147 \u2014 These 3 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 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":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cbc26b79e22be6bab83e0a2ac2600441c18a7c3ee6623d709f1071c4524b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 15 shared lines): candle-core/src/quantized/k_quants.rs:1619-1683 | candle-core/src/quantized/k_quants.rs:1824-1898 | candle-core/src/quantized/k_quants.rs:1900-1981 \u2014 These 3 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 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3af151b33a7f6c96b3283dbeba70403c5734b02a6013b45fd53c7b79155724"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 4 shared lines): candle-transformers/src/models/gemma.rs:346-369 | candle-transformers/src/models/gemma2.rs:365-390 | candle-transformers/src/models/nvembed_v2/embedding.rs:228-245 \u2014 These 3 members are variants of one another: a block of 4 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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb959da501072c035bb06374e843b8d0785523212bd7d171f9b25fea75a2638f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (115 shared lines): candle-transformers/src/models/quantized_t5.rs:327-447 | candle-transformers/src/models/t5.rs:456-577 \u2014 These two members are variants of one another: 115 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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4162a0fef5160a7cb39092466dd1115e0635b6fe947ccc5ed17ff4c1996a2753"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (78 shared lines): candle-core/src/cpu_backend/mod.rs:1540-1622 | candle-core/src/cpu_backend/mod.rs:1631-1740 \u2014 These two members are variants of one another: 78 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ce59ec4f60712850491cd696a39d82bcc0d9e3a6babb318fb80e0acfdabf49"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): candle-core/src/quantized/neon.rs:2310-2443 | candle-core/src/quantized/neon.rs:2447-2580 \u2014 These two members are variants of one another: 70 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eefc02f55a95d2a677d4a22c9c7fe0fb57b758201d6821bda35ca9cbcaabe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (61 shared lines): candle-core/src/quantized/k_quants.rs:1476-1556 | candle-core/src/quantized/k_quants.rs:1734-1821 \u2014 These two members are variants of one another: 61 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0d6c393b2b1af0e0944deecbe9b57e3c5491d1b102bd457d30e5d46d7b8079"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): candle-core/src/cuda_backend/cudnn.rs:37-124 | candle-core/src/cuda_backend/cudnn.rs:136-225 \u2014 These two members are variants of one another: 59 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":"candle-core/src/cuda_backend/cudnn.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3a06f42e2cb203646b79710bc37ebcf3225520d12228833e2b0ffde0698509"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): candle-core/src/quantized/neon.rs:1578-1691 | candle-core/src/quantized/neon.rs:1695-1794 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"53afa98653058f5ceeade08c221e002b4f201402d5b0bd937dc3dd926e91d3ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): candle-core/src/metal_backend/mod.rs:186-240 | candle-core/src/metal_backend/mod.rs:242-296 \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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f602cc6fb0730ab1ace5aadd3048f6e33703022244d9ed9b40b718c25f023fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): candle-transformers/src/models/mixformer.rs:283-337 | candle-transformers/src/models/quantized_mixformer.rs:203-252 \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":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd8b24d7b36587f59cd5efa979223a4985c831b75edf26e9663d29a1aa20639"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): candle-core/src/quantized/avx.rs:451-533 | candle-core/src/quantized/avx.rs:536-646 \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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"68249f534ccfb43abd5d5f0a9e4ddcc37a9b264f2701e37322aa8f7687f561a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): candle-transformers/src/models/whisper/audio.rs:177-266 | candle-wasm-examples/whisper/src/audio.rs:156-199 \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":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5433ccd7f59a123045b1a2c45ffebad8d728b1b4a1ed965ea492840923ac84"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): candle-core/src/cuda_backend/mod.rs:1888-1950 | candle-core/src/cuda_backend/mod.rs:2074-2136 \u2014 These two members are variants of one another: 33 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb08ebd43083610746d0fd99f3f8a62fd396d78afb514ffc405daaf779db685"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): candle-transformers/src/models/quantized_phi.rs:205-270 | candle-transformers/src/models/quantized_phi3.rs:228-302 \u2014 These two members are variants of one another: 28 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":"candle-transformers/src/models/quantized_phi.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"29161434a1968a9c005a250f7d55c4a968026a1f1c3b427aa1dcd06846f9df67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): candle-nn/src/attention/cpu_flash/causal.rs:814-878 | candle-nn/src/attention/cpu_flash/causal.rs:895-965 \u2014 These two members are variants of one another: 28 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcae5b6279fd3e7d5ca1ea85c9d49fa551692b8eeb5784748583806850352c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): candle-transformers/src/models/paddleocr_vl/vision.rs:478-565 | candle-transformers/src/models/qwen3_vl/vision.rs:127-175 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd0c1819a7f0a86adfd887babcf3329c11b70d21b8b025f46433e7d71ecc4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (25 shared lines): candle-core/src/quantized/neon.rs:1814-1865 | candle-core/src/quantized/neon.rs:2600-2652 \u2014 These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c6c318efc791a17c1e8faebc6416a156613a8737b3ab9ce49273085ea785ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (25 shared lines): candle-core/src/quantized/neon.rs:533-584 | candle-core/src/quantized/neon.rs:2908-2959 \u2014 These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"da512b8bde2bb5dfb8c032441701506e4e80f8d6c118cefa9740eee023f8d6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): candle-transformers/src/models/llama2_c.rs:174-215 | candle-transformers/src/models/quantized_llama2_c.rs:61-102 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d9f10a8222f96145653ade6820567f8f001064937021d06b9a3ce071085cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): candle-transformers/src/models/codegeex4_9b.rs:157-204 | candle-transformers/src/models/glm4.rs:178-225 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"cded08f240f11ba5b9eba33f40d56c1caeca6e691e3683d96a31cecec5b596de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-transformers/src/models/llama2_c_weights.rs:80-110 | candle-wasm-examples/llama2-c/src/worker.rs:161-191 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e73b24587f2b58d6e5eab5a057f4b44b416669c45c7c2b23c94ec784fdc89ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): candle-transformers/src/models/qwen3.rs:192-241 | candle-transformers/src/models/z_image/text_encoder.rs:271-318 \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":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5ac798423f226b3303940cff8f893bdc8e851dda88db5c15abb2c6595227fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): candle-transformers/src/models/quantized_qwen3.rs:238-378 | candle-transformers/src/models/qwen3.rs:192-241 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"00305ab654fc78ba3760aa3fcbf169629e882db4cb71ca657d9fc88e56748764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/dinov2.rs:84-99 | candle-transformers/src/models/dinov2reg4.rs:77-92 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c94c0e4cf520510c4e3c90be5e2e6930a6a3569f53e99b4e54752579b73750e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/flux/model.rs:316-326 | candle-transformers/src/models/flux/quantized_model.rs:155-165 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a349eb6b50fa3a862c72d8eb1324a25ea5f5169babc28226434a9031e90e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/quantized_rwkv_v5.rs:177-198 | candle-transformers/src/models/quantized_rwkv_v6.rs:224-245 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d987162fd0c8e1df4877e23024c7dc7454d18a7e40fbcad8102046ebe536bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-core/src/safetensors.rs:442-460 | candle-core/src/safetensors.rs:469-495 \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":"candle-core/src/safetensors.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"241bc940a3f22e231a8026833c770e7fd5ddb25d6cf4af137a670b8ef4c34b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/qwen2.rs:160-210 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"068f3780305af98fb8926921bc1f2628ac94536906c9304614bfcf55eee7aa4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/qwen2_moe.rs:167-217 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47412b959d12afff353fb66e69d4332d4e73ae8f4bdf24d77f671b225049ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/starcoder2.rs:163-210 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d845e628a524e9f1cb4c16258e86c5f77cdad92fb5f29e29a4dbd6ebe1371e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/yi.rs:199-248 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c86ab33cbe1d13cb8054f3e2a674b343586f5c66216f508d3f0911eba5d8d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/smol/smollm3.rs:242-298 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1acaed7202743dcd5adf27f1d781e1b94a817fc7706334df1cc349325065b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/quantized_stable_lm.rs:117-177 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"571a76a9a2069ff1f0db6927286bba6bb4695804ea4a236edcca07a3e46e4df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/stable_lm.rs:240-307 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25a2f7660e1da3b39940ce8dddfa7202eb986d83ef638287c2dd6f354799ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/cpu/neon.rs:539-558 | candle-core/src/cpu/neon.rs:596-611 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/neon.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9e8171f407fa5c337472cf8007f5b5a01fcf5edcefd6b6085c40842939760d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/rwkv_v5.rs:228-245 | candle-transformers/src/models/rwkv_v6.rs:202-219 \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":"candle-transformers/src/models/rwkv_v5.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0d70a9adf681ad1ba4c6e6e5d37295303c0ed7ef253acd6d59f6847ca24851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/stable_diffusion/attention.rs:173-206 | candle-transformers/src/models/wuerstchen/attention_processor.rs:77-117 \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":"candle-transformers/src/models/stable_diffusion/attention.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"353c3cb7f7f152fe4343d24c93ac2bd2e1e1e2ae9c48f3d4ddbccb575adc11cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/glm4_new.rs:194-230 | candle-transformers/src/models/paddleocr_vl/text.rs:794-826 \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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c312fa5b38a31ca7966f74e282b162d742c78e1e44d6007fa4e43d0b8e3d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/qwen3.rs:192-241 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"388448debfc90c74579c7d81b01acc37d2ce9bb34f254a297f482488bbb06006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/z_image/text_encoder.rs:271-318 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"60154897df683dc227de3751eff9bb6062372b46bd51a40833a307d0a25419c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/qwen3.rs:192-241 | candle-transformers/src/models/smol/smollm3.rs:242-298 \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":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"51397b5a929138015a87747c97eb28dae7db3c974f1beb8fc98b1c918efd9213"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/qwen3.rs:192-241 | candle-transformers/src/models/starcoder2.rs:163-210 \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":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e36a8331b5039a72265e4bb4506b8d2069e615bace789bac2b7529f4cf65eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/qwen3.rs:192-241 | candle-transformers/src/models/yi.rs:199-248 \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":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"56aa51b73706f18d95dfb7acac842a8d42eaf8f65839ada8cbb13355a0512bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/quantized_qwen3.rs:238-378 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d59c284ee0d8f3d1878f12b47b2939ad20ba076425c17368ed7385de44a88c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/qwen3.rs:192-241 | candle-transformers/src/models/stable_lm.rs:240-307 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"63adade187cd87478d1558ddee70f03533ef99064e530653c7626923069e5706"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:794-826 | candle-transformers/src/models/paddleocr_vl/text.rs:893-990 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"65adb9edfdda1e259135643cdbed00ba2b16b5f509a95593b1a8d1f4e2058a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:893-990 | candle-transformers/src/models/qwen3.rs:192-241 \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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d91f3aa1fd076103e04bfaa4ad9c284302b8f945a5910d553a3d7769417a825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/encodec.rs:493-519 | candle-transformers/src/models/mimi/conv.rs:289-312 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"1894bdc3a7f2e7708b6849f0ab5b6bd546a550e9bcfc44fdf7329ecf0f42d810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/segment_anything/sam.rs:49-92 | candle-transformers/src/models/segment_anything/sam.rs:94-123 \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":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"004d94c39760baf0dca9a116c710d544c3f171731e85a66de056b607072d599d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): candle-transformers/src/models/gemma2.rs:298-326 | candle-transformers/src/models/gemma3.rs:325-366 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bdea786c1a82aaa2b9fcd742b137d1dfe98f7d1707498046780c2c3f7cdbe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): candle-transformers/src/models/based.rs:314-331 | candle-transformers/src/models/gemma.rs:83-100 | candle-transformers/src/models/gemma2.rs:76-93 | candle-transformers/src/models/glm4_new.rs:38-63 | candle-transformers/src/models/olmo.rs:44-61 | candle-transformers/src/models/olmo2.rs:36-53 | candle-transformers/src/models/qwen2.rs:47-64 | candle-transformers/src/models/qwen2_moe.rs:55-72 | candle-transformers/src/models/qwen3.rs:42-59 | candle-transformers/src/models/recurrent_gemma.rs:107-128 | candle-transformers/src/models/smol/quantized_smollm3.rs:177-210 | candle-transformers/src/models/smol/smollm3.rs:72-89 | candle-transformers/src/models/stable_lm.rs:92-110 | candle-transformers/src/models/starcoder2.rs:52-70 | candle-transformers/src/models/z_image/text_encoder.rs:114-131 \u2014 These 15 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 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b87e7e2d855d3bd23cd8bd84044a5e543a24cfd5ad1b1531b9916c0bbc4cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): candle-transformers/src/models/based.rs:314-331 | candle-transformers/src/models/gemma.rs:83-100 | candle-transformers/src/models/gemma2.rs:76-93 | candle-transformers/src/models/gemma3.rs:76-98 | candle-transformers/src/models/gemma4/text.rs:68-83 | candle-transformers/src/models/glm4_new.rs:38-63 | candle-transformers/src/models/modernbert.rs:60-77 | candle-transformers/src/models/nvembed_v2/embedding.rs:18-36 | candle-transformers/src/models/olmo.rs:44-61 | candle-transformers/src/models/olmo2.rs:36-53 | candle-transformers/src/models/quantized_glm4.rs:107-129 | candle-transformers/src/models/qwen2.rs:47-64 | candle-transformers/src/models/qwen2_moe.rs:55-72 | candle-transformers/src/models/stella_en_v5.rs:144-189 \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":"candle-transformers/src/models/based.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"de507d5d6a5412586b8c510d798c8d72e654cf1b02976741917fc69e2a91d097"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): candle-nn/src/layer_norm.rs:117-143 | candle-nn/src/ops.rs:661-672 | candle-nn/src/ops.rs:912-930 | candle-transformers/src/models/gemma.rs:60-73 | candle-transformers/src/models/gemma2.rs:53-66 | candle-transformers/src/models/gemma3.rs:48-61 | candle-transformers/src/models/gemma4/audio.rs:27-38 | candle-transformers/src/models/gemma4/text.rs:28-41 | candle-transformers/src/models/gemma4/vision.rs:27-40 | candle-transformers/src/models/recurrent_gemma.rs:77-90 | candle-transformers/src/models/wuerstchen/common.rs:17-34 | candle-transformers/src/models/wuerstchen/common.rs:49-62 | candle-transformers/src/models/z_image/transformer.rs:691-706 \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":"candle-nn/src/layer_norm.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ef0d905c07c36d0f131718c7edbb6a7fbdbde83774480067b28508d9754253"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): candle-transformers/src/models/gemma.rs:319-327 | candle-transformers/src/models/helium.rs:297-305 | candle-transformers/src/models/mistral.rs:346-354 | candle-transformers/src/models/mixtral.rs:389-399 | candle-transformers/src/models/nvembed_v2/embedding.rs:206-216 | candle-transformers/src/models/olmo.rs:256-264 | candle-transformers/src/models/phi3.rs:333-341 | candle-transformers/src/models/quantized_mistral.rs:237-245 | candle-transformers/src/models/quantized_stable_lm.rs:217-226 | candle-transformers/src/models/qwen2.rs:249-257 | candle-transformers/src/models/qwen2_moe.rs:382-390 | candle-transformers/src/models/stable_lm.rs:347-356 | candle-transformers/src/models/starcoder2.rs:249-257 \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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaee983f4412a14e6874312f4e8a0222f40f7bf3085c15eefe6948cbebfae62"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): candle-transformers/src/models/mistral.rs:163-175 | candle-transformers/src/models/nvembed_v2/embedding.rs:63-75 | candle-transformers/src/models/olmo.rs:88-100 | candle-transformers/src/models/olmo2.rs:80-92 | candle-transformers/src/models/quantized_mistral.rs:78-90 | candle-transformers/src/models/quantized_stable_lm.rs:36-49 | candle-transformers/src/models/qwen2.rs:91-103 | candle-transformers/src/models/qwen2_moe.rs:99-110 | candle-transformers/src/models/stable_lm.rs:140-153 | candle-transformers/src/models/yi.rs:130-142 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"411d10df3539885d399488240d0c5c452393ab2201846f8c214f46c9d4b66fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): candle-transformers/src/models/chatglm.rs:549-554 | candle-transformers/src/models/codegeex4_9b.rs:570-575 | candle-transformers/src/models/glm4.rs:591-596 | candle-transformers/src/models/mpt.rs:286-291 | candle-transformers/src/models/phi.rs:136-141 | candle-transformers/src/models/quantized_mixformer.rs:41-46 | candle-transformers/src/models/quantized_t5.rs:43-48 | candle-transformers/src/models/t5.rs:110-115 \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":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"568e5ddf2e832299d61d155a80757f0bfad1d824f498bc4cae944ea965653357"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): candle-transformers/src/models/codegeex4_9b.rs:75-92 | candle-transformers/src/models/flux/model.rs:80-99 | candle-transformers/src/models/gemma3.rs:76-98 | candle-transformers/src/models/gemma4/text.rs:68-83 | candle-transformers/src/models/glm4.rs:97-113 | candle-transformers/src/models/modernbert.rs:60-77 | candle-transformers/src/models/quantized_glm4.rs:107-129 | candle-transformers/src/models/quantized_qwen3.rs:103-133 \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":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e6848cbbc285d9515b4b0d8d1ad750608daac128c3d36abf955ee9b2713a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): candle-metal-kernels/src/kernels/affine.rs:20-35 | candle-metal-kernels/src/kernels/affine.rs:88-103 | candle-metal-kernels/src/kernels/affine.rs:154-169 | candle-metal-kernels/src/kernels/binary.rs:22-39 | candle-metal-kernels/src/kernels/cast.rs:18-33 | candle-metal-kernels/src/kernels/ternary.rs:26-65 | candle-metal-kernels/src/kernels/unary.rs:25-40 \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":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f14a69be7e35ed476e5a7427b81244b4b5ff31aa1051d0a5baaf8a47d2d04c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): candle-nn/src/rotary_emb.rs:583-588 | candle-transformers/src/models/mixtral.rs:74-79 | candle-transformers/src/models/paddleocr_vl/vision.rs:278-283 | candle-transformers/src/models/qwen3_vl/vision.rs:83-88 | candle-transformers/src/models/recurrent_gemma.rs:99-104 | candle-transformers/src/models/starcoder2.rs:44-49 | candle-transformers/src/models/yi.rs:75-80 \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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e342817d14761ff3706257ff6010ec325f9c6edf3222070f835ad04603c34fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): candle-transformers/src/models/glm4_new.rs:194-230 | candle-transformers/src/models/quantized_glm4.rs:211-277 | candle-transformers/src/models/quantized_qwen3.rs:238-378 | candle-transformers/src/models/quantized_qwen3_moe.rs:130-219 | candle-transformers/src/models/qwen3.rs:334-352 | candle-transformers/src/models/smol/smollm3.rs:242-298 | candle-transformers/src/models/z_image/text_encoder.rs:271-318 \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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f815b5d152246e05f213283cb27b32033ce1a1f2de26033ab7789db409d8c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): candle-transformers/src/models/granite.rs:315-338 | candle-transformers/src/models/granitemoehybrid.rs:365-389 | candle-transformers/src/models/llama.rs:362-385 | candle-transformers/src/models/llama2_c.rs:231-248 | candle-transformers/src/models/quantized_llama2_c.rs:118-135 | candle-transformers/src/models/voxtral/voxtral_llama.rs:280-309 | candle-wasm-examples/llama2-c/src/model.rs:145-163 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6d6d2ee30516ce4214623c8681ef1d99aea32df88e4c9c7cd46940eca44589"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): candle-transformers/src/models/mistral.rs:218-241 | candle-transformers/src/models/mixtral.rs:152-176 | candle-transformers/src/models/nvembed_v2/embedding.rs:101-123 | candle-transformers/src/models/quantized_mistral.rs:117-140 | candle-transformers/src/models/qwen2.rs:130-153 | candle-transformers/src/models/qwen2_moe.rs:137-160 | candle-transformers/src/models/yi.rs:169-192 \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":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"393bc25a074405d40413844d7ad0fad90d1dc790a5d95165c8df84691c6cf81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-core/src/cpu/avx.rs:315-332 | candle-core/src/cpu/avx.rs:355-370 | candle-core/src/cpu/neon.rs:520-537 | candle-core/src/cpu/neon.rs:560-575 | candle-core/src/cpu/simd128.rs:205-222 | candle-core/src/cpu/simd128.rs:243-258 \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":"candle-core/src/cpu/avx.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"658a306b99852268ffe6acea35a6dbb4f024974105cdb0cf24bf500c8521eca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-core/src/storage.rs:383-406 | candle-core/src/storage.rs:414-437 | candle-core/src/storage.rs:445-468 | candle-core/src/storage.rs:476-499 | candle-core/src/storage.rs:751-773 | candle-core/src/storage.rs:781-804 \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":"candle-core/src/storage.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f69421350aefbece94c423e08d7a378f1107d6109c75735fc9f333f32f7b4ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-metal-kernels/src/kernels/reduce.rs:137-179 | candle-metal-kernels/src/kernels/reduce.rs:195-238 | candle-metal-kernels/src/kernels/reduce.rs:256-301 | candle-metal-kernels/src/kernels/reduce.rs:319-341 | candle-metal-kernels/src/kernels/reduce.rs:361-385 | candle-metal-kernels/src/kernels/reduce.rs:404-427 \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":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba7cf350064abc52d142cfcaff435eb0ca41eb5475603706a6f464e7454b656"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-nn/src/ops.rs:337-387 | candle-nn/src/ops.rs:548-608 | candle-nn/src/ops.rs:785-853 | candle-nn/src/rotary_emb.rs:114-184 | candle-nn/src/rotary_emb.rs:419-489 | candle-nn/src/rotary_emb.rs:693-763 \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":"candle-nn/src/ops.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa82f99ec364d4582a727ffd3305b967b9d5e42fe98b79d96613d09d3669b323"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-nn/src/ops.rs:394-434 | candle-nn/src/ops.rs:617-658 | candle-nn/src/ops.rs:864-909 | candle-nn/src/rotary_emb.rs:195-246 | candle-nn/src/rotary_emb.rs:500-552 | candle-nn/src/rotary_emb.rs:774-827 \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":"candle-nn/src/ops.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4c535f30830c057227c41e592e4c92abd453cadacc4536aea288e279c42ca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-transformers/src/models/blip_text.rs:482-492 | candle-transformers/src/models/marian.rs:630-641 | candle-transformers/src/models/quantized_blip_text.rs:478-488 | candle-transformers/src/models/trocr.rs:503-512 | candle-transformers/src/models/whisper/model.rs:316-343 | candle-transformers/src/models/whisper/quantized_model.rs:318-347 \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":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"478dbab7a4f230a25713da92670c72a9ff49a11f92239319f5c6b9532e7d1e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): candle-transformers/src/models/granite.rs:172-181 | candle-transformers/src/models/granitemoehybrid.rs:215-224 | candle-transformers/src/models/lfm2.rs:188-197 | candle-transformers/src/models/llama.rs:218-227 | candle-transformers/src/models/llama2_c.rs:123-132 | candle-transformers/src/models/voxtral/voxtral_llama.rs:113-122 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf0e6b9b18ae7bba9d1c1bd8b6a8ee361971d572899c98122e2b31ab57da933"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-core/src/quantized/neon.rs:978-1120 | candle-core/src/quantized/neon.rs:1208-1405 | candle-core/src/quantized/neon.rs:1417-1574 | candle-core/src/quantized/neon.rs:1972-2143 | candle-core/src/quantized/neon.rs:2155-2280 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"0117b1643cd977b9125c011d82408cbfddc38ec066ba7028fa8d6dca856458c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-core/src/quantized/repack.rs:458-489 | candle-core/src/quantized/repack.rs:492-533 | candle-core/src/quantized/repack.rs:536-579 | candle-core/src/quantized/repack.rs:628-659 | candle-core/src/quantized/repack.rs:662-692 \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":"candle-core/src/quantized/repack.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcc7a81edcc3216284b2d8315399662af55c5925e00f687ec954b15b3fea271"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/glm4_new.rs:332-352 | candle-transformers/src/models/quantized_glm4.rs:430-455 | candle-transformers/src/models/quantized_qwen3.rs:538-561 | candle-transformers/src/models/qwen3_moe.rs:302-322 | candle-transformers/src/models/smol/smollm3.rs:396-417 \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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"10688689c75d76261331346b2113de20e58a2121624f7aa559703b84f42eefb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/granite.rs:120-170 | candle-transformers/src/models/granitemoehybrid.rs:163-213 | candle-transformers/src/models/lfm2.rs:165-186 | candle-transformers/src/models/llama.rs:164-216 | candle-transformers/src/models/voxtral/voxtral_llama.rs:89-111 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa520b125cb82720f69aef97d29dcc3b708ab5f064f7df2ad5f43d032ddc498"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/granite.rs:395-403 | candle-transformers/src/models/llama.rs:442-450 | candle-transformers/src/models/llama2_c.rs:313-320 | candle-transformers/src/models/quantized_llama2_c.rs:200-207 | candle-transformers/src/models/voxtral/voxtral_llama.rs:366-374 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9481bee5b08426e065dded2c4fb7de2e6b7ca52aa2314254da3ecf660f9a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/granite.rs:434-444 | candle-transformers/src/models/llama.rs:503-513 | candle-transformers/src/models/llama2_c.rs:347-356 | candle-transformers/src/models/quantized_llama2_c.rs:234-243 | candle-transformers/src/models/voxtral/voxtral_llama.rs:438-448 \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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfe27954cfcb4c053d49516c93972ab8c6f9ef78e307a9abf66f8fdc095ddf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/mixtral.rs:107-116 | candle-transformers/src/models/recurrent_gemma.rs:135-144 | candle-transformers/src/models/stable_lm.rs:117-126 | candle-transformers/src/models/starcoder2.rs:77-86 | candle-transformers/src/models/yi.rs:108-117 \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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7646c12b065400784f037c24443465d931b8c92629fcfc624611e3453b8bd626"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_lfm2.rs:589-598 | candle-transformers/src/models/quantized_llama.rs:547-556 | candle-transformers/src/models/quantized_phi.rs:272-281 | candle-transformers/src/models/quantized_phi3.rs:304-313 | candle-transformers/src/models/quantized_qwen2.rs:296-305 \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":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"c430664778b4645df3670b5e635e99485052ba2ac42cd80477c78e868b0e3bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): candle-transformers/src/models/stable_diffusion/mod.rs:77-139 | candle-transformers/src/models/stable_diffusion/mod.rs:146-209 | candle-transformers/src/models/stable_diffusion/mod.rs:230-292 | candle-transformers/src/models/stable_diffusion/mod.rs:299-364 | candle-transformers/src/models/stable_diffusion/mod.rs:398-459 \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":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacb936262ba0e544f046ca76f243e867603cf6f134db458240a431b8f275ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/cpu/avx.rs:335-352 | candle-core/src/cpu/avx.rs:373-391 | candle-core/src/cpu/simd128.rs:224-241 | candle-core/src/cpu/simd128.rs:260-278 \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":"candle-core/src/cpu/avx.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5839bcc8aa1b9e0e9689e1e70e262c6dadcd8789f6900e1427ea14b9130f2b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/cpu/neon.rs:58-69 | candle-core/src/cpu/neon.rs:123-134 | candle-core/src/cpu/neon.rs:322-333 | candle-core/src/cpu/neon.rs:402-414 \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":"candle-core/src/cpu/neon.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0152985424785d019c8c5edeb98be83ee6e42f7001527d16a5736181d1b67c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/cuda_backend/mod.rs:144-165 | candle-core/src/cuda_backend/mod.rs:175-195 | candle-core/src/cuda_backend/mod.rs:306-326 | candle-nn/src/ops.rs:90-135 \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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e08e3da708707de1c6f5b6dac6b8db3b153290df630a63e9f5b3bee52bc3b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/quantized/k_quants.rs:957-1014 | candle-core/src/quantized/k_quants.rs:1279-1375 | candle-core/src/quantized/k_quants.rs:1619-1683 | candle-core/src/quantized/k_quants.rs:1900-1981 \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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13928fa61c75b83b4b69230ebcb4943ab3a682bbfa3b635353386d1211a2eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/quantized/mod.rs:547-566 | candle-core/src/quantized/mod.rs:572-602 | candle-core/src/quantized/mod.rs:610-646 | candle-core/src/quantized/mod.rs:649-675 \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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23144f57cd6cb91fc10a7bf89eb3ba6ad4cc155d84fd293fcf2738ca7615d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/quantized/neon.rs:365-438 | candle-core/src/quantized/neon.rs:442-513 | candle-core/src/quantized/neon.rs:2824-2852 | candle-core/src/quantized/neon.rs:2856-2888 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61592e04bc6fa94f2c9cca8c1f9f2368eb55c1d59d15e1641e89833cc424037"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-core/src/tensor.rs:664-682 | candle-core/src/tensor.rs:1964-1986 | candle-core/src/tensor.rs:1989-2017 | candle-core/src/tensor.rs:2020-2058 \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":"candle-core/src/tensor.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c549b6da0a4de91f1392ebdf25f1878fe91d602663174840a47feb2bab92d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-nn/src/attention/cpu_flash/causal.rs:65-186 | candle-nn/src/attention/cpu_flash/varlen.rs:40-369 | candle-transformers/src/models/quantized_qwen3.rs:238-378 | candle-transformers/src/models/smol/quantized_smollm3.rs:391-570 \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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e825d15631fa8ec9d17f24857da920a2431ce934e035187875818a94ca2cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-nn/src/attention/cpu_flash/standard.rs:150-205 | candle-nn/src/attention/cpu_flash/standard.rs:222-306 | candle-nn/src/attention/cpu_flash/standard.rs:320-381 | candle-nn/src/attention/cpu_flash/standard.rs:398-488 \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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8242aa8eb1d2f7eb567888a080b6416b58de98a2ed6d1fe64a7af4462ed00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-nn/src/rotary_emb.rs:290-308 | candle-transformers/src/models/llama2_c.rs:151-166 | candle-transformers/src/models/quantized_llama2_c.rs:38-53 | candle-wasm-examples/llama2-c/src/model.rs:74-89 \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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f07faf0772bb58ccd080b44da82b43467ee08fe3000b5bc318230dee1a048bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/beit.rs:265-278 | candle-transformers/src/models/dinov2.rs:216-229 | candle-transformers/src/models/dinov2reg4.rs:209-222 | candle-transformers/src/models/eva2.rs:249-262 \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":"candle-transformers/src/models/beit.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b27e6a2c71561b6ffe9bda11e2878b27188f42b51c23ae9fa576b5b292fdfce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/beit.rs:291-307 | candle-transformers/src/models/dinov2.rs:243-266 | candle-transformers/src/models/dinov2reg4.rs:237-258 | candle-transformers/src/models/eva2.rs:276-296 \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":"candle-transformers/src/models/beit.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"844240f57f2fb69c0951b9fbcbc0e54689b72da31fb2cfa9ff62ff7236d96c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/chinese_clip/mod.rs:191-203 | candle-transformers/src/models/clip/mod.rs:136-146 | candle-transformers/src/models/mobileclip.rs:85-95 | candle-transformers/src/models/siglip.rs:785-797 \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":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e086699ba206e36a972e63e4436ca85d0535921a8849d8ac4862358ce990bf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/flux/autoencoder.rs:50-55 | candle-transformers/src/models/moondream.rs:58-63 | candle-transformers/src/models/quantized_moondream.rs:22-27 | candle-transformers/src/models/z_image/vae.rs:86-91 \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":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ea44defb0b080e2441a22fa9ebf1a634ce6d9f5b34e51793170777997d6b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/gemma.rs:171-195 | candle-transformers/src/models/gemma2.rs:165-190 | candle-transformers/src/models/gemma3.rs:179-216 | candle-transformers/src/models/helium.rs:168-192 \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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d34be797b83df26cb0a3fe8b41e65ec45e7bf751d02e42f90a425f54544ecc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/gemma3.rs:398-425 | candle-transformers/src/models/gemma4/text.rs:486-513 | candle-transformers/src/models/quantized_gemma3.rs:151-178 | candle-transformers/src/models/qwen3_vl/mod.rs:36-54 \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":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f466ce7da6b6a6e03a856a7a12fb8f0078a5fc488953f818c51c370b209049a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/glm4_new.rs:362-370 | candle-transformers/src/models/qwen3.rs:477-485 | candle-transformers/src/models/qwen3_moe.rs:332-340 | candle-transformers/src/models/smol/smollm3.rs:427-435 \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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e487fdb4c77112c33b3dc9cec2c6772c0d0d56e97f50901188d0737c036ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/mixformer.rs:35-49 | candle-transformers/src/models/mixformer.rs:51-65 | candle-transformers/src/models/mixformer.rs:67-81 | candle-transformers/src/models/mixformer.rs:84-98 \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":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39b16c296603c14e062e057a62ac55cb4f37eff9c9c5f55aaa100d4b50eec64"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/mixtral.rs:299-354 | candle-transformers/src/models/quantized_llama.rs:76-142 | candle-transformers/src/models/qwen2_moe.rs:262-322 | candle-transformers/src/models/qwen3_moe.rs:124-175 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"98059d55fda4a990878f613718813bcae35d8c6ee43e4b58876b92d0911481c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/mobilenetv4.rs:93-134 | candle-transformers/src/models/mobilenetv4.rs:136-186 | candle-transformers/src/models/mobilenetv4.rs:188-233 | candle-transformers/src/models/mobilenetv4.rs:235-290 \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":"candle-transformers/src/models/mobilenetv4.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc3a5e01a75043c1ac95dc7641d07b9ae89927c688c65ea3fdcc60c86745af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/nomic_bert.rs:92-109 | candle-transformers/src/models/quantized_lfm2.rs:102-115 | candle-transformers/src/models/quantized_phi3.rs:207-220 | candle-transformers/src/models/quantized_qwen2.rs:165-178 \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":"candle-transformers/src/models/nomic_bert.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4cd206db433cf478e30923dbecd204d6df9cb975ef3340fcc771ea1b557ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/paddleocr_vl/mod.rs:170-263 | candle-transformers/src/models/paddleocr_vl/mod.rs:281-380 | candle-transformers/src/models/paddleocr_vl/mod.rs:398-498 | candle-transformers/src/models/paddleocr_vl/mod.rs:707-797 \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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c6a3f38d82799aabed4d5f53dcc21c1207ec4d0d80573a8b721160f4dec7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/paddleocr_vl/vision.rs:992-1067 | candle-transformers/src/models/paddleocr_vl/vision.rs:1077-1108 | candle-transformers/src/models/paddleocr_vl/vision.rs:1118-1221 | candle-transformers/src/models/qwen3_vl/vision.rs:558-584 \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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a7689ca7ee4fbc8c00e63ffc771ef13f88e1c32d51d91acd8588aaf59ffcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_gemma3.rs:265-437 | candle-transformers/src/models/quantized_llama.rs:303-365 | candle-transformers/src/models/quantized_llama.rs:371-524 | candle-transformers/src/models/quantized_qwen2.rs:185-294 \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":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e2d14b8446d80be77029596eed2fe489ef14c6f9610c2f0144b29babef0b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_qwen3.rs:436-443 | candle-transformers/src/models/qwen3.rs:385-392 | candle-transformers/src/models/smol/smollm3.rs:336-343 | candle-transformers/src/models/z_image/text_encoder.rs:349-356 \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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e539ba3341ed4a01a5cfb1cb83c1aced02555bf5f403fa5a0b7ac9dce25dd7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_rwkv_v5.rs:46-102 | candle-transformers/src/models/quantized_rwkv_v6.rs:53-133 | candle-transformers/src/models/rwkv_v5.rs:116-153 | candle-transformers/src/models/rwkv_v6.rs:61-111 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cde884ab5060eddb42761867824466a6cd69801e236352d4c6e7771232e7309"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_rwkv_v5.rs:225-243 | candle-transformers/src/models/quantized_rwkv_v6.rs:272-290 | candle-transformers/src/models/rwkv_v5.rs:272-290 | candle-transformers/src/models/rwkv_v6.rs:246-264 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02f941bcc676be58db4419f9e455f727f6d23611e4941dea21398059f7829d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_rwkv_v5.rs:245-255 | candle-transformers/src/models/quantized_rwkv_v6.rs:292-302 | candle-transformers/src/models/rwkv_v5.rs:292-302 | candle-transformers/src/models/rwkv_v6.rs:266-276 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea187225ab3e43a0209a1d84ada108d0cf2a68fb0b9402dc42ca22939675246"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_rwkv_v5.rs:269-288 | candle-transformers/src/models/quantized_rwkv_v6.rs:316-335 | candle-transformers/src/models/rwkv_v5.rs:316-335 | candle-transformers/src/models/rwkv_v6.rs:290-309 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f00d0117a448c7a8a03cf084037fceba5a0d51cadaa4722ca344497f182c541"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): candle-transformers/src/models/quantized_rwkv_v5.rs:290-302 | candle-transformers/src/models/quantized_rwkv_v6.rs:337-349 | candle-transformers/src/models/rwkv_v5.rs:337-349 | candle-transformers/src/models/rwkv_v6.rs:311-323 \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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba7b95722a0b7d0b0d1e5504a028996c1c49d374c525ea8aa577b8d743eaf09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (101 corresponding lines): candle-transformers/src/models/stable_diffusion/uni_pc.rs:383-483 | candle-transformers/src/models/stable_diffusion/uni_pc.rs:492-598 \u2014 These two members are one piece of code written twice and then edited apart: 101 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cace5feeb286e286d62071ffacd438aba4764b9f26120be7618c3e8ca23ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): candle-core/src/quantized/k_quants.rs:2131-2201 | candle-core/src/quantized/k_quants.rs:2203-2281 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f57b85153c2bd3fc8bdc7325d406723a29e6916449e5322df8c338fbf31e430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 65\u002B corresponding lines): candle-nn/src/rotary_emb.rs:27-103 | candle-nn/src/rotary_emb.rs:327-408 | candle-nn/src/rotary_emb.rs:618-682 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 65 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afd614bdbf226076b117777a61dbf773e17a7c9582e5423ffd0b3dc989e0b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): candle-core/src/metal_backend/mod.rs:913-984 | candle-core/src/metal_backend/mod.rs:1111-1189 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"482f8bbb8dab80eda0d031a72d45ad847168bbbb2f71c4c913795659c45439b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): candle-transformers/src/models/mpt.rs:87-142 | candle-transformers/src/models/quantized_mpt.rs:64-119 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"def8fba06acb2a5a901845c7adb5b145a35c2662f7b640f080371148893e1968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): candle-core/src/quantized/neon.rs:3477-3559 | candle-core/src/quantized/neon.rs:3562-3640 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3477}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3144c607afff5e67b43141dfcc8312d96c8a58d3debe0201c911e6754d80ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): candle-transformers/src/models/fastvit.rs:199-289 | candle-transformers/src/models/mobileone.rs:135-220 \u2014 These two members are one piece of code written twice and then edited apart: 86 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c666c61b115fd49fa14786818dab78204ee263b9fe9f3cd40623e989b4f03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): candle-core/src/safetensors.rs:214-287 | candle-core/src/safetensors.rs:316-386 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9acd240ac437dd731ce701c4be6d6b11efdf351b135c56217355c9fb7e475b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): candle-transformers/src/models/lfm2.rs:441-522 | candle-transformers/src/models/quantized_lfm2.rs:185-254 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39b9d1628263e1d1b9d041f07693c842bd47cc3cc61eff5e620362fa4396402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): candle-core/src/cpu_backend/mod.rs:1249-1311 | candle-core/src/cpu_backend/mod.rs:1318-1401 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b4c0db40a2c57c279383d3a99ef89bcea80efb4ddb4a4432a75fbe100a993e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): candle-core/src/metal_backend/mod.rs:2095-2176 | candle-core/src/metal_backend/mod.rs:2178-2264 \u2014 These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"da98d8cb606a9f58b252aa91f5866ee29ba28cbfc4749294d6d0ebef335a75ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): candle-core/src/cpu_backend/mod.rs:2724-2774 | candle-core/src/cpu_backend/mod.rs:2776-2811 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b38c410debe91ef51bd494b4d9cb03939e0f3225d884f2801d7e006190d2e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): candle-core/src/cpu_backend/mod.rs:2471-2505 | candle-core/src/cpu_backend/mod.rs:2507-2540 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"6597f94549ce92f8544dd57a1f054526c27b764dcb65a9bf68cc7025184bee27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): candle-transformers/src/models/quantized_glm4.rs:367-428 | candle-transformers/src/models/quantized_qwen3.rs:467-536 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ba0a7e31959248748538e85f00fd84f368f307cd180172146d71ec92e7f187"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): candle-core/src/quantized/cuda.rs:110-163 | candle-core/src/quantized/cuda.rs:170-223 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"440a0049cb0b7055e3952fe3d0688e156e2049109effca2c041ab21a80a99635"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): candle-core/src/cpu_backend/mod.rs:3192-3253 | candle-core/src/cpu_backend/mod.rs:3255-3315 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a5a932342bf8b79a0fbb57a4b9b8655e7875de3d6e65d81d89c3bb92c7cc13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): candle-transformers/src/models/mimi/seanet.rs:160-261 | candle-transformers/src/models/mimi/seanet.rs:318-417 \u2014 These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2193b43d2f26117b27401c57271117a83e6008cffb6cc964726246255a31a51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): candle-core/src/metal_backend/mod.rs:1455-1504 | candle-core/src/metal_backend/mod.rs:1604-1665 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8758a8079bfde660086d8e00759a5b648aa7f1f7f01e3409f5d0d673d19a3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): candle-core/src/cpu_backend/utils.rs:59-78 | candle-core/src/cpu_backend/utils.rs:85-105 | candle-core/src/cpu_backend/utils.rs:112-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/utils.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3e11b4da658719c1378ade00850ae12f18a521065beea959e63d6ab25a3c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): candle-transformers/src/models/llama2_c_weights.rs:112-172 | candle-wasm-examples/llama2-c/src/worker.rs:193-246 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0a65f3709261442a9ad28e2a2e940e16db8208e3146b837099dcaa4eacc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): candle-core/src/cpu_backend/mod.rs:2837-2875 | candle-core/src/cuda_backend/mod.rs:1837-1879 | candle-core/src/cuda_backend/mod.rs:2018-2065 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62575ae946f3019d8c5b4fdf997afd7b650f0865d82f10edc7f2027218270a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): candle-core/src/cuda_backend/device.rs:425-478 | candle-core/src/cuda_backend/device.rs:579-632 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31ee8076880d2b8740d16fbd8345dfff43041f01fbf054961f15cb25b2988da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): candle-core/src/quantized/repack_x86.rs:90-132 | candle-core/src/quantized/repack_x86.rs:617-659 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dbecb9708b7fe8ecf2fdf7346e7fd7b89eda43b8cfa0203875b5e3d0b7a518"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 58\u002B corresponding lines): candle-core/src/cuda_backend/device.rs:634-691 | candle-core/src/cuda_backend/device.rs:693-750 | candle-core/src/cuda_backend/device.rs:752-809 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 58 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7813c8ee08b2bef90b0aaa1b6e550d76f683e7d1fb8d89fa83fe2b32e28c484"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): candle-core/src/metal_backend/mod.rs:1514-1553 | candle-core/src/metal_backend/mod.rs:1563-1602 \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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"5001d919f97c14f1e2cc9191ab62686ef859b3366af60bccfd02eb3efa41daaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): candle-transformers/src/models/paddleocr_vl/vision.rs:711-771 | candle-transformers/src/models/paddleocr_vl/vision.rs:786-843 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c020140b6970cec846d649dc0fcaeafe0825c09baccaa5fb6082acd589144b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:171-210 | candle-transformers/src/models/clip/text_model.rs:137-176 | candle-transformers/src/models/stable_diffusion/clip.rs:218-251 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fb7fa6bc7da69413c45bca51a419326322814e6f36f597e071a488288945a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): candle-transformers/src/models/resnet.rs:88-121 | candle-transformers/src/models/resnet.rs:200-233 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd84cdb015e0e5fd0e04cc8d565d5add81e8df1e03c7f48161181ceb1b35de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-core/src/cpu_backend/utils.rs:10-28 | candle-core/src/cpu_backend/utils.rs:34-52 \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":"candle-core/src/cpu_backend/utils.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5ef3df7663c6581bf9335695e61c898701ffa88db5b0176814492a57245cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): candle-core/src/quantized/simd128.rs:8-51 | candle-core/src/quantized/simd128.rs:54-91 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a2be5e1aeacc350ff083955f6f44a0d8a699d370be4db62c358a5e36d83b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): candle-core/src/quantized/repack_x86.rs:334-366 | candle-core/src/quantized/repack_x86.rs:381-423 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d4bf31b4861b53b32b1212c4ef84b03dd61f6aed50a43ef56a0a966ad63cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-core/src/quantized/repack_x86.rs:294-315 | candle-core/src/quantized/repack_x86.rs:1058-1093 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba50cfa033ba41a4b234e0d36ad6c8bfd4980343bb8ce866b9fa02444e74a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): candle-core/src/cpu_backend/mod.rs:395-430 | candle-core/src/cpu_backend/mod.rs:436-472 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaa7549f665e01aa1c96fef66b9a557541e9ac6f98e402f8798389b1eb69eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): candle-transformers/src/models/whisper/model.rs:239-279 | candle-transformers/src/models/whisper/quantized_model.rs:235-275 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cabfb0d577be0f8f6e794a784972c8f20f666d9b06926424c485511d66f275e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): candle-core/src/quantized/k_quants.rs:343-379 | candle-core/src/quantized/k_quants.rs:554-594 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"182302970b8e8e938ff63145c3043aa262f4e31c2023dc38a5e232afe8eebc87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): candle-transformers/src/models/metavoice.rs:930-954 | candle-transformers/src/models/quantized_metavoice.rs:232-257 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"1561ce02b3ec1ad8fc9d041065f7053d328fc756338b2bc6ec5f967dfead1bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): candle-core/src/cuda_backend/utils.rs:48-63 | candle-core/src/cuda_backend/utils.rs:124-138 | candle-core/src/cuda_backend/utils.rs:180-193 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/utils.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82873b499ab5656329bc71e82c87ce180728da754189d9c3be0a53b4a7957d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): candle-transformers/src/models/metavoice.rs:887-922 | candle-transformers/src/models/quantized_metavoice.rs:190-224 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ee621fa83ff5b9fcdb34f46cd228b7ee75ae1ef894c03bbd8533fbe6e2c293"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-transformers/src/models/jina_bert.rs:308-338 | candle-transformers/src/models/mpt.rs:203-235 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/jina_bert.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"85810b8868b72492dfd5cca6c9ae8e660c4beb3c74636c08a7c43ab124799c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): candle-core/src/cpu_backend/mod.rs:2883-2930 | candle-core/src/cuda_backend/mod.rs:1958-2009 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5b20d9244d46c68392785f2bd6ad0b2f1e8cca4860afde5dd45dac740ffcc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): candle-datasets/src/vision/cifar.rs:66-93 | candle-datasets/src/vision/mnist.rs:64-87 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/cifar.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"55486a93fe530776ba255eee4f41570257088d3cabd0c2057389d577f6baed48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): candle-core/src/cuda_backend/mod.rs:956-991 | candle-core/src/cuda_backend/mod.rs:1001-1031 | candle-core/src/cuda_backend/mod.rs:1048-1083 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4efc10ca62d52d5edf91e8ff97628bc0a7b8609d0336d39f48be4678654579a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): candle-transformers/src/models/quantized_llama.rs:568-596 | candle-transformers/src/models/quantized_qwen2.rs:317-345 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c47ff0d2e96dde30b6eee9a14af868aed4cd13ae7757aa9c91a0797a0c7a885"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): candle-core/src/cuda_backend/mod.rs:219-243 | candle-core/src/cuda_backend/mod.rs:270-296 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ea21a1e6614e3a178b57e89e94cffdc8f16a0a8be4021fd3b43efe7a997f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): candle-transformers/src/models/pixtral/vision_model.rs:109-135 | candle-transformers/src/models/siglip.rs:415-439 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f709a8e7ff814ee919af5c24c2c781f64c241a651b8cccbc39e50c0e6e0539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): candle-transformers/src/models/quantized_t5.rs:285-319 | candle-transformers/src/models/t5.rs:414-448 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa1eaefc099f27b65ef34c5cb6b69eff84e8d5704d6b63efcf6e47ba2c2ae1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): candle-core/src/metal_backend/mod.rs:1263-1303 | candle-core/src/metal_backend/mod.rs:1310-1350 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97778da780ef552d55d376a3c411372953482c73f4eaaa2f6ed02590e7b0667"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/cuda_backend/utils.rs:18-35 | candle-core/src/cuda_backend/utils.rs:150-167 \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":"candle-core/src/cuda_backend/utils.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"556ba461ea682fa46d603f56cb8a9760561a6b4a9dc5bd3e13486df556f2d81d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 43\u002B corresponding lines): candle-core/src/cuda_backend/mod.rs:2592-2634 | candle-core/src/cuda_backend/mod.rs:2642-2693 | candle-core/src/cuda_backend/mod.rs:2701-2752 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 43 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2592}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a50470451d3bc8b3de6324afa0d7daa1aec8dbaaddb0111f21035b1319d38d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): candle-transformers/src/models/z_image/transformer.rs:752-793 | candle-transformers/src/models/z_image/transformer.rs:807-846 \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":"candle-transformers/src/models/z_image/transformer.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b21b3d9fc694c19b3bec520e877e736b9c60bc40d4875a3be485d6a4714c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): candle-core/src/metal_backend/mod.rs:1356-1396 | candle-core/src/metal_backend/mod.rs:1406-1453 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"24af4ef3cdf7c70803c02760be8a83c63d865d74d3ce79cab0de81da4e5b1681"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-core/src/tensor.rs:1826-1874 | candle-core/src/tensor.rs:1887-1917 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f833f3be52ab3cb2a7613c413180516d7e98bd08dc344fee7a640aed5e5d16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:309-346 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:403-449 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc004d82fc53462bf25e6b66ab1e9a567acaf1c43f9dad16eefb946235fd225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): candle-transformers/src/models/z_image/vae.rs:436-493 | candle-transformers/src/models/z_image/vae.rs:522-582 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/vae.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1af5ed90ebcb9b950d3b9074d641ed6171a297d07d1ecd7ddcf2739e1f295c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-datasets/src/vision/cifar.rs:95-117 | candle-datasets/src/vision/mnist.rs:94-117 \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":"candle-datasets/src/vision/cifar.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f31e13819c4764ece9775e5d4be3be7d2df9f3f22829890829a293f5fe5da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): candle-metal-kernels/src/kernels/reduce.rs:19-64 | candle-metal-kernels/src/kernels/reduce.rs:77-124 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf90274737327180dc589945447e166be49ad0708cb36f2b023397bb850f530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-core/src/quantized/repack_x86.rs:262-283 | candle-core/src/quantized/repack_x86.rs:1012-1047 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcce03e8fa7f8ed7a5fb6e93ecd8dd507fce0677dfa6ce4f4974668574873aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): candle-transformers/src/models/dinov2.rs:268-292 | candle-transformers/src/models/dinov2reg4.rs:260-281 | candle-transformers/src/models/eva2.rs:304-329 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ab58a4077b7ddd9792ff171a7ebfb7a2f73dba5df1104bf0164860192a6d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-transformers/src/models/quantized_lfm2.rs:600-629 | candle-transformers/src/models/quantized_phi3.rs:315-337 \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":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8afc353a6812513744292d18d89a64c9c522bc2387932c9b79e358e245b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): candle-transformers/src/models/bert.rs:246-269 | candle-transformers/src/models/chinese_clip/text_model.rs:254-277 | candle-transformers/src/models/jina_bert.rs:169-190 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db9b420897af373c4b284d8445fe0dda45009d52920332a6065803a0b2a73bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-core/src/quantized/cuda.rs:704-725 | candle-core/src/quantized/cuda.rs:732-753 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca51bade3711ad72da09c4a4deb2290ad365d8a6dc0c12d1583fb949d879319"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): candle-transformers/src/models/vgg.rs:146-170 | candle-transformers/src/models/vgg.rs:172-217 | candle-transformers/src/models/vgg.rs:219-267 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/vgg.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3624e45aeee6a03828c3a267dbd989bda1d290da88cb57eaaff8f0db926fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): candle-transformers/src/models/bert.rs:466-498 | candle-transformers/src/models/distilbert.rs:310-337 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4604b64d20af948f4726440f0ce0cf38016ed4a75c99af93d46d85cb60d5474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): candle-core/src/cuda_backend/device.rs:480-526 | candle-core/src/cuda_backend/device.rs:528-577 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93267ddf9db28fd2e00a647508597757ffca0890952497876f9617a04cd946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 31\u002B corresponding lines): candle-transformers/src/models/convnext.rs:302-332 | candle-transformers/src/models/efficientvit.rs:451-482 | candle-transformers/src/models/fastvit.rs:460-499 | candle-transformers/src/models/mobileone.rs:294-326 | candle-transformers/src/models/repvgg.rs:274-306 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74137f7ff71a229d8d2c925747a8b4c29f4caec1c3ce8aab57f9ad3b6158db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): candle-core/src/storage.rs:147-174 | candle-core/src/storage.rs:348-375 | candle-core/src/storage.rs:614-638 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fcebd5e3c9c47a802c8fbfb63abbf6fd45d95d50bba645b3d1496195a9321a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-nn/src/rnn.rs:210-233 | candle-nn/src/rnn.rs:363-382 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rnn.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bbbb78526d720f8dc8a4640b1ef3a35e62767a5b00610fea3e74bcbe985b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-transformers/src/models/quantized_stable_lm.rs:80-110 | candle-transformers/src/models/stable_lm.rs:201-233 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"326b2f438a7fa789cda0d6810f316c9ca9617d8903c0fc4e24dc749fff56366f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-core/src/quantized/k_quants.rs:486-508 | candle-core/src/quantized/k_quants.rs:597-621 \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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecf918ae6aab85ade025cb5830128da8839a4bf433987905056285d9158169f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 22\u002B corresponding lines): candle-transformers/src/models/helium.rs:323-348 | candle-transformers/src/models/olmo.rs:282-308 | candle-transformers/src/models/olmo2.rs:278-303 | candle-transformers/src/models/phi3.rs:359-384 | candle-transformers/src/models/quantized_stable_lm.rs:240-261 | candle-transformers/src/models/stable_lm.rs:371-393 | candle-transformers/src/models/yi.rs:304-325 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5b06f28df03cae48f8ffee191515b26ed1153884d97942bfb5964bd60485f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): candle-transformers/src/models/whisper/model.rs:151-175 | candle-transformers/src/models/whisper/quantized_model.rs:148-172 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5028ec71df1dcd8ae712d2aa87a260213df4613e67d8208a34c68216de1cc168"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/mixtral.rs:82-100 | candle-transformers/src/models/yi.rs:83-101 \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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ae7dca2024b6ea40803c6a15bae61bed0260e9830b4b3ee1e02a148dafbfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/storage.rs:233-250 | candle-core/src/storage.rs:260-278 \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":"candle-core/src/storage.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb0edd145f4b273c715e9604d46985465c5a4689fc281cc69a6d3fd17bf33af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-core/src/tensor.rs:1672-1692 | candle-core/src/tensor.rs:1714-1734 \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":"candle-core/src/tensor.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"6192d1b7a8803d27fc337153921bf93c31a453ab8161c60dda10cd31d45759c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/efficientvit.rs:382-397 | candle-transformers/src/models/hiera.rs:183-213 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d659c0982a4988edf0a7fcf1000ed0c6495738c4f0a462cbb92c76c4296175d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:362-387 | candle-transformers/src/models/recurrent_gemma.rs:596-618 \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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da8224c79281101121919b514aa7358e326cc27a10b6274c220d74237821869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-core/src/quantized/k_quants.rs:424-445 | candle-core/src/quantized/k_quants.rs:520-552 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"912041ea19f9109b2b3a7b3992ae8b28a25d636cddf4f75247c7308620d8ed9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/dac.rs:155-181 | candle-transformers/src/models/dac.rs:248-269 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"77722d805b4662fcc8dac8a7b89220f7acf57f4d9d145fe6337b7ea5bc7dd7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 51\u002B corresponding lines): candle-transformers/src/models/glm4_new.rs:134-187 | candle-transformers/src/models/qwen3.rs:125-185 | candle-transformers/src/models/smol/smollm3.rs:171-235 | candle-transformers/src/models/z_image/text_encoder.rs:219-269 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6761d97a8221d628a24cc9448fe4a8dabb247c5770cca28430d47a8b320023"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): candle-transformers/src/models/lfm2.rs:606-635 | candle-transformers/src/models/paddleocr_vl/text.rs:1109-1140 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"af028376990922e926b7c7ebb85cb5f39445e175c55c8e5c88a6bfcae12ee7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:135-172 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:224-256 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:506-540 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:705-744 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da17c48ec7f1c26ed23a845198c529e0ef66b164695dc1b7508df5521a758e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:602-638 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:808-845 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3488459e378e39a036713c5998aae7c720d1892a5f04ac2ff812db0258e6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/resnet.rs:42-57 | candle-transformers/src/models/resnet.rs:148-169 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"12935700e2609bbee67b126176f35ceb4d25b382b30111b03fc7e996be960f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-metal-kernels/src/metal/commands.rs:160-190 | candle-metal-kernels/src/metal/commands.rs:192-229 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/metal/commands.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3348e2b532994c8b417970c19c5517d2b61a4b15b3a2dea7bc0ac1d11e8e8a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): candle-transformers/src/models/quantized_glm4.rs:174-209 | candle-transformers/src/models/quantized_qwen3.rs:185-236 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"754080260fa9dcc77d9856d5b97af140c106981a5a0dfc9f9069cc9c3e14d359"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): candle-core/src/quantized/neon.rs:133-172 | candle-core/src/quantized/neon.rs:175-205 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8341994fabe644569c63b276529d646234e84d068a0a41a0865dcbc6b839f61d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): candle-transformers/src/models/mistral.rs:373-395 | candle-transformers/src/models/mixtral.rs:414-436 | candle-transformers/src/models/quantized_mistral.rs:263-284 | candle-transformers/src/models/qwen2.rs:275-295 | candle-transformers/src/models/qwen2_moe.rs:409-431 | candle-transformers/src/models/starcoder2.rs:276-298 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4f7ca565e88e4f73fdb943a75f9a5c2ae0d24ed6d35273a2700fa1d55147ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): candle-core/src/conv.rs:168-205 | candle-core/src/conv.rs:239-271 | candle-core/src/conv.rs:308-341 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/conv.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f048828963dc25673ed9e093c244c14d9b2f6981c4cc539e81aab74bfaa5f6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): candle-metal-kernels/src/kernels/indexing.rs:23-58 | candle-metal-kernels/src/kernels/indexing.rs:72-104 | candle-metal-kernels/src/kernels/indexing.rs:118-151 | candle-metal-kernels/src/kernels/indexing.rs:166-200 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/indexing.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd0a3225fd1095b372e6e85c11347c7d4ff0a18af4386d3b080a0381e6fb90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:81-113 | candle-transformers/src/models/clip/vision_model.rs:74-105 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"52945baedcc1a97bda0fd34e5aa6d610576e2f57ed18d48288e4f40bd21c007e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-transformers/src/models/mixtral.rs:443-465 | candle-transformers/src/models/qwen2_moe.rs:438-460 \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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0573aba27686a470aeb32f891daaaa9574105f74fa66d969de0f6fc1827915e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:97-127 | candle-transformers/src/models/recurrent_gemma.rs:332-360 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d00dd90e4b2ca7653b9d4aa248a090aaa705f862d7decc1a672fb1e8693499"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): candle-transformers/src/models/gemma4/vision.rs:203-230 | candle-transformers/src/models/lfm2.rs:279-311 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/vision.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d04a27fcec2873226890d7729b562bd7931f8da6398b103afb7b2d3e8be992b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/mixformer.rs:443-460 | candle-transformers/src/models/quantized_mixformer.rs:358-375 \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":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bb256661472fba9b9afe6a04be96256b3678a68d27f7d679ce234a44c0552c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): candle-core/src/storage.rs:673-689 | candle-core/src/storage.rs:699-715 | candle-core/src/storage.rs:725-743 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59b660d93fd9d86503aeb67593e2fab7875dec3589bfe238aa41a37d9c1a514"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): candle-transformers/src/models/deepseek2.rs:341-360 | candle-transformers/src/models/marian.rs:212-232 | candle-transformers/src/models/paddleocr_vl/text.rs:35-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6ed6c0841d2c3700e6c0e821b56fe43fe6b2b26a3b1c5d42a4b4ff68239070"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:60-85 | candle-transformers/src/models/mmdit/blocks.rs:151-194 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d896e19478726e739955f7e1653882ba117a470e28f5e47e43a5765d1da3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): candle-transformers/src/models/olmo.rs:128-154 | candle-transformers/src/models/olmo2.rs:121-149 | candle-transformers/src/models/starcoder2.rs:132-156 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3235bc70b58d3d6f88a92ab0d37b430719d96f99382d5d012f1e78cb5a8f004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:311-332 | candle-transformers/src/models/recurrent_gemma.rs:544-565 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0864c5b1669f8473237078b4c3e6c48f825845b32ea99b8470d1e5107a4ef233"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-core/src/device.rs:361-382 | candle-core/src/device.rs:399-420 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/device.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f1b4aee2c60b097b23d94b5babf57b2c12a79efa9966d6a9c7ca0006ed9e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): candle-transformers/src/models/quantized_rwkv_v5.rs:200-212 | candle-transformers/src/models/quantized_rwkv_v6.rs:247-259 | candle-transformers/src/models/rwkv_v5.rs:247-259 | candle-transformers/src/models/rwkv_v6.rs:221-233 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8bfb35c192aca2086fa0425215f4e8ed412fe854f757fc3c48febeed5626c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/moondream.rs:136-152 | candle-transformers/src/models/quantized_moondream.rs:69-84 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dc29d25b00d94361e593656caa4bac02ae8f8a580a27bb943c83bc37159dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): candle-core/src/metal_backend/mod.rs:2276-2308 | candle-core/src/metal_backend/mod.rs:2316-2348 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74afd26a224c1437186e3316fc7a3322358e712d5dea85bc7b5f2863f622c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-core/src/tensor.rs:1355-1374 | candle-core/src/tensor.rs:1393-1412 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e15fcb0412b21418ed4e270bed6b3c27ebaed3027bcaf75cbba18e2901d4ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/mpt.rs:66-85 | candle-transformers/src/models/quantized_mpt.rs:43-62 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea26122c8eea8fe81fd9cf53fe68beee4477d85078a0c1e0a8a27948bab68a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/nvembed_v2/model.rs:83-103 | candle-transformers/src/models/stable_diffusion/attention.rs:105-129 \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":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2ff5bbcf353807f5698fe8748dfc4128bdbd944e77445d66e66f9de160e5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/dac.rs:99-118 | candle-transformers/src/models/snac.rs:396-416 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7fa9480ec4f91546e1f5e02b6b6d58012340b91ac6a443ede7bed7871e8548"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/llama.rs:515-533 | candle-transformers/src/models/voxtral/voxtral_llama.rs:450-468 \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":"candle-transformers/src/models/llama.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a09dec01723b5088f9e0a787f3dc84ceed21eea398c94cc18a4fb0c27ed15df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/quantized/mod.rs:1154-1171 | candle-core/src/quantized/mod.rs:1173-1190 \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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71ccd691b788e5f8444ed3a40542d025b5b1e1df77c0c1d568892542435f5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): candle-nn/src/rnn.rs:139-181 | candle-nn/src/rnn.rs:309-338 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rnn.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"497ebcf44bda710c2ab72086f6ef9552e1474c740c001a0a0b0bb8a51fa78dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): candle-transformers/src/models/chatglm.rs:199-230 | candle-transformers/src/models/codegeex4_9b.rs:220-251 | candle-transformers/src/models/glm4.rs:241-272 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"349d778cc6cb9ada5d22076939e5a9b5d355df674e1f91dc5faccec7b162fe4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/olmo.rs:315-329 | candle-transformers/src/models/olmo2.rs:310-324 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c423dd262a23be9476361e7d1bbf130b555a04e6018679bde38978fe16e678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:394-407 | candle-transformers/src/models/quantized_stable_lm.rs:268-282 \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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"412806b5a964c84acbc8c72843237108b34ea91833258e2a77c8a6d844cce84a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-core/src/cuda_backend/device.rs:319-337 | candle-core/src/cuda_backend/device.rs:339-357 \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":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7dcb105f3328ca4ddde1ada8256b8a7dc09c70c63bfa195e0f01a7693cdffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): candle-nn/src/rotary_emb.rs:262-288 | candle-nn/src/rotary_emb.rs:555-581 | candle-nn/src/rotary_emb.rs:830-856 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"54647b1b3d83d07dd882df693b2bf7d10bbed91eddadd67d8a5c8d94504d2aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): candle-transformers/src/models/gemma2.rs:425-448 | candle-transformers/src/models/gemma3.rs:503-529 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"417b1d65c67b50273962bdc848ac1ee773ef0ba1b4b0dcffa21a6a7e614af432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-datasets/src/batcher.rs:95-115 | candle-datasets/src/batcher.rs:145-170 \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":"candle-datasets/src/batcher.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"392c857cf12a75cdcd6c83270fd9f3fb0f69485d217acd390d5f513a6337518c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): candle-transformers/src/models/csm.rs:353-366 | candle-transformers/src/models/helium.rs:354-367 | candle-transformers/src/models/quantized_mistral.rs:290-312 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fca05d597b26eb23628410bb6faa296d11cfac1f29b69298cb93c0f81066c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/flux/model.rs:455-474 | candle-transformers/src/models/flux/quantized_model.rs:294-313 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f08a5cd9f827736e0cc44d299e51b4555e409a2a8434549a486c7b5bd1b8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-core/src/npy.rs:282-301 | candle-core/src/npy.rs:304-325 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/npy.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdc9dad29953bd7d9594e75c05f795eed724e5d29c07388a2da6aab338b2b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/marian.rs:405-424 | candle-transformers/src/models/parler_tts.rs:176-199 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"6009a0d9eced53d3afbd84b51626180fa814b11954d281e432f816435958ec2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:110-137 | candle-transformers/src/models/z_image/vae.rs:180-210 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63f839d57a54f3ed9bbb324f03ee3f74de773208de81bc53396288f67b1e3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): candle-transformers/src/models/gemma4/text.rs:407-449 | candle-transformers/src/models/gemma4/vision.rs:323-351 | candle-transformers/src/models/glm4_new.rs:248-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d96f0dc393d30c22efd1042bcc4e5a2f9f9f9d41c9d43d2666693fc1e6a2b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): candle-transformers/src/models/chinese_clip/mod.rs:134-164 | candle-transformers/src/models/clip/mod.rs:96-122 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f82fc5579fe088249e1978712d3c586784467cfe0461025c1399c564a9cbbef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:61-82 | candle-transformers/src/models/recurrent_gemma.rs:200-221 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c018336dbf0f55543b9b92c1b3b8b8c6e0320e302f023506b5e9409326bda3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): candle-transformers/src/models/quantized_gemma3.rs:73-86 | candle-transformers/src/models/quantized_llama.rs:287-300 | candle-transformers/src/models/quantized_phi.rs:178-191 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"72198653311b65b8e83cb2687951c5dc28cfaa04393f18d9beaa98f553bd10bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): candle-transformers/src/models/glm4_new.rs:308-324 | candle-transformers/src/models/qwen3.rs:409-433 | candle-transformers/src/models/qwen3_moe.rs:274-294 | candle-transformers/src/models/smol/smollm3.rs:360-388 | candle-transformers/src/models/z_image/text_encoder.rs:375-400 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"074b7168d6d2b30586ac59e5a3a73b83756659efdb6afed7ea120732adf5bee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-core/src/storage.rs:812-826 | candle-core/src/storage.rs:838-854 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"4072200ea13e83bee05d8dc76ef3b863d7c9089768098e87230559139ad13d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/convmixer.rs:18-37 | candle-transformers/src/models/efficientnet.rs:124-139 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convmixer.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b91f5be94d36aee9e7b410667a4faee68ca4f446c3704e369e1c0cd64678c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/mamba.rs:189-206 | candle-transformers/src/models/mamba2.rs:600-616 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"437530871e57de7ffca1e2aa70aeed5b03b75720b45fae202cf292d5619906dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-core/src/scalar.rs:28-44 | candle-core/src/scalar.rs:46-62 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/scalar.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb420b93683f58413b3057048f7d181fb50e14e6c2a20afc0b118cc9b2fae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/segment_anything/tiny_vit.rs:72-89 | candle-transformers/src/models/segment_anything/tiny_vit.rs:121-140 \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":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce82e84f45b6cf17a482bbb20a897f4a4a08873526d4343ac81f4e2c3faec104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-transformers/src/models/hiera.rs:268-293 | candle-transformers/src/models/mobilenetv4.rs:775-797 \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":"candle-transformers/src/models/hiera.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a416c7789e9303b78a66371bf14000b9f75cced6fe311c44b6a7718ce3c81cfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/gemma4/text.rs:116-136 | candle-transformers/src/models/qwen3_vl/text.rs:24-39 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54aac00979c76da26ba45d7dc7b4c4f2f1ac53225091904661be9e618dcf64e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/generation/mod.rs:84-95 | candle-transformers/src/generation/mod.rs:99-115 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/generation/mod.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cf101c1e839739889566f0554607b5a38b063ec97f046c3505a108668447a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/wuerstchen/common.rs:123-141 | candle-transformers/src/models/wuerstchen/diffnext.rs:15-33 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/common.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41a0d461ae4e32d28a73e4a7c6b10d62696629a37a5780243e3f17e6b49dfe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): candle-transformers/src/models/bert.rs:217-235 | candle-transformers/src/models/chinese_clip/text_model.rs:225-243 | candle-transformers/src/models/jina_bert.rs:143-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8566fd4e326c2be34498a15375533bea5b669873547a694d16806917083a030"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): candle-core/src/cpu/avx.rs:222-240 | candle-core/src/cpu/neon.rs:431-449 | candle-core/src/cpu/simd128.rs:169-187 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c3e5a9a863e89c3ed4d3d1a8a084f2dad9c51693b8ec5e648c6ce1fa3e4ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): candle-transformers/src/models/convnext.rs:263-288 | candle-transformers/src/models/efficientvit.rs:400-435 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a753a47b19b0874735d444b980c87dcaf9a112565e07eed4e68afd48824db31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/mixformer.rs:261-281 | candle-transformers/src/models/quantized_mixformer.rs:184-201 \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":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad6312d9a73e9c4266038f505b88068175df943e37f2f162151a10d4a09b25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): candle-core/src/cpu/avx.rs:243-257 | candle-core/src/cpu/neon.rs:451-465 | candle-core/src/cpu/simd128.rs:189-203 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"82582f03a87aafc654befc1931ef4f8536b1e06eac82ea428de09ab49d4c8d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/quantized/k_quants.rs:284-301 | candle-core/src/quantized/k_quants.rs:313-341 \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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"924a3422a31c13195974b792f8723dec59755abab44c85659c68be3a79d77f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): candle-transformers/src/models/bert.rs:155-184 | candle-transformers/src/models/xlm_roberta.rs:34-63 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"640543002aa06243ec184a0c8ef4f7ef0b3b09718ed1fd36305c071cd283a29d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:144-163 | candle-transformers/src/models/clip/text_model.rs:110-129 | candle-transformers/src/models/stable_diffusion/clip.rs:192-210 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee27c3e7dab8d0d2532f27917f769cbe12b97dd0bd955174b9d5428bf00ec4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/moondream.rs:201-222 | candle-transformers/src/models/quantized_moondream.rs:129-151 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d74c2f749fca65edb9bb0e9b3837d302fb189ad7d7593351cfac04c5b594ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/phi.rs:80-88 | candle-transformers/src/models/quantized_phi.rs:94-103 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/phi.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feb9dbc0945a9f5ecbaac350f7035e04b325d1a4e0d70b44b18aaf2c4e3c45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/snac.rs:52-65 | candle-transformers/src/models/snac.rs:73-85 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/snac.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a445978bab5c67cbe6a6d641b72174814ff53204b0d9c86942c8eb68f1845447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-core/src/cuda_backend/cutile.rs:72-92 | candle-core/src/cuda_backend/cutile.rs:99-119 \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":"candle-core/src/cuda_backend/cutile.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13194c8925a4e943bb84606330c94df2f5b96c4464e50896cfc62cefcf7c71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/metavoice.rs:770-787 | candle-transformers/src/models/quantized_metavoice.rs:73-90 \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":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77a607c759308d5bb0e991e04867b245ff5d0828664c233e13a1bdcba58e82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:38-58 | candle-transformers/src/models/mmdit/blocks.rs:123-145 \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":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaf07cae31f19830cdfd34b79125e0ba6e9abbed4ddaee0a41c7b53ab58fbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/tensor.rs:2299-2316 | candle-core/src/tensor.rs:2329-2352 \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":"candle-core/src/tensor.rs"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d59be1b6649c8fc57ae96d589bcc18531d11ad481a628b738f2c9d8b355a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): candle-metal-kernels/src/kernels/sort.rs:18-44 | candle-metal-kernels/src/kernels/sort.rs:250-287 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/sort.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d91c515521ef597d482c14d04879481281b26f80e68232204f13b44fcfefc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/efficientvit.rs:124-142 | candle-transformers/src/models/efficientvit.rs:331-348 \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":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d5a25d4b65bc1d758c72c5ef18b8e4f8f12ed4496f9a06bf34de5f3b0a5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/quantized_t5.rs:549-566 | candle-transformers/src/models/t5.rs:679-696 \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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8ea76d81b92a070386a9d51bcb3de991520918eb83b7a1558ba12b42cf8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-core/src/metal_backend/device.rs:202-219 | candle-core/src/metal_backend/device.rs:285-302 \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":"candle-core/src/metal_backend/device.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28852b2ff250203a3fb165a3bf13e8ead1cc314dfb90ae29f8702dff1d8e1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-metal-kernels/src/kernel.rs:113-133 | candle-metal-kernels/src/kernel.rs:157-177 \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":"candle-metal-kernels/src/kernel.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d036b9ad8e70d31fdf2c23d75d853b0cb14650c44e404fa6f926ee851c56be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-metal-kernels/src/kernels/random.rs:19-42 | candle-metal-kernels/src/kernels/random.rs:55-73 \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":"candle-metal-kernels/src/kernels/random.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5653aed41e8ed12fd31375ce5b0c52fc54db11de25a58fb6b994dcda17d932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): candle-transformers/src/models/marian.rs:259-283 | candle-transformers/src/models/voxtral/model.rs:272-304 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d9dadc7a73ee85f5c47f5bc8550c99bad7d85c091f106777ac716357d582b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): candle-core/src/cpu/mod.rs:189-209 | candle-core/src/cpu/mod.rs:212-232 | candle-core/src/cpu/mod.rs:267-287 | candle-core/src/cpu/mod.rs:290-310 | candle-core/src/cpu/mod.rs:313-333 | candle-core/src/cpu/mod.rs:350-370 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4607fb3ca2e557593436242c3bb17ede723e4dd5e9dd4e102e3c93c541bd1f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-core/src/quantized/avx.rs:52-70 | candle-core/src/quantized/avx.rs:73-89 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"790ffabddc01c0aec140831e98991e364d9f569cdb73902ed5ab06e27e1255bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/csm.rs:165-185 | candle-transformers/src/models/parler_tts.rs:75-99 \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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c186150f164b7018e26e0e4dc202fb8b8fd3e8734ce0da472f37a6d2ac337c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/fastvit.rs:291-303 | candle-transformers/src/models/fastvit.rs:305-317 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8a5da0a9ccc746b0d792b90a45ffcb528e93c6159cec91c5d73cb0818267c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-core/src/quantized/k_quants.rs:207-227 | candle-core/src/quantized/k_quants.rs:382-402 \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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e407e34185cd06a22e46529528b4f95d188362d157c78255848303d87627c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/convnext.rs:184-197 | candle-transformers/src/models/convnext.rs:200-216 \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":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0d8400dcb87b7a73046b34148f3a48ad40c3160e971bc0f32c347230462591"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/mixformer.rs:406-421 | candle-transformers/src/models/quantized_mixformer.rs:321-336 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e31150ff9d9dbf78902c3a185b386acbb6af65c8d6af6fa8b9fa3e4333e4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/whisper/model.rs:183-199 | candle-transformers/src/models/whisper/quantized_model.rs:180-195 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f8ee1029991d8787d105e9cb98c3b8121a8eda9636c5e8485430a754f393fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/quantized_var_builder.rs:20-33 | candle-transformers/src/quantized_var_builder.rs:35-48 \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":"candle-transformers/src/quantized_var_builder.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad17c815f9aeddbb9e6fb3d4fa74c034ec5d6183a4e5f1d5eb0b8d264fb939bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/segment_anything/tiny_vit.rs:179-198 | candle-transformers/src/models/segment_anything/tiny_vit.rs:479-504 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f859574b935bab6a64711909a9d5f4acf730875ba11320cdb5bee65e1e4d0fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:752-764 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:854-867 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"89907002b38a858c1e733989c11009482e0f66aedd2c5ed4128547c49039bbe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-transformers/src/models/marian.rs:467-486 | candle-transformers/src/models/marian.rs:521-540 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5534dc08a1c9be0c8daed6bc9a8b628fda532d26559d75e1d7d1c0323f0e1b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-transformers/src/models/granite.rs:446-460 | candle-transformers/src/models/llama2_c.rs:358-372 | candle-transformers/src/models/quantized_llama2_c.rs:245-259 | candle-wasm-examples/llama2-c/src/model.rs:273-281 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8eb7d699f0ebf617eec1537f66f8b981888094d7e775f67f83538b3962597c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:92-102 | candle-transformers/src/models/mmdit/blocks.rs:202-213 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9f0110d7d404490dcf0d8073a59d1de853c9de8b85c6d32ceacc440e9e38c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): candle-transformers/src/models/dac.rs:52-70 | candle-transformers/src/models/dac.rs:194-220 | candle-transformers/src/models/snac.rs:259-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78204f833d5456a3b71f716182864feaf46d4fc9291293b140071e05da5a354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-core/src/tensor.rs:943-960 | candle-core/src/tensor.rs:962-978 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2d7e0b3feea6e88ce0fe62185407e59cb69ca568f73bb2b55ff4837ae62781"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): candle-metal-kernels/src/kernels/convolution.rs:19-46 | candle-metal-kernels/src/kernels/convolution.rs:59-86 | candle-metal-kernels/src/kernels/unary.rs:52-76 | candle-metal-kernels/src/kernels/unary.rs:117-141 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9760bd570a8541bc29169209753b3c4d63453325a2225d79243fc8e508afe2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/mimi/seanet.rs:421-436 | candle-transformers/src/models/mimi/seanet.rs:449-464 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8d389f200008aa23648f75cbead75fd6fdd76bce366d30441bcafb48dc4798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): candle-core/src/quantized/metal.rs:180-199 | candle-core/src/quantized/metal.rs:201-220 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/metal.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3a974bf902680e0573ba1dd9b90c9dea42a470f5f50e47be9df480d39eef0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-nn/src/var_builder.rs:419-437 | candle-nn/src/var_builder.rs:464-482 \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":"candle-nn/src/var_builder.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa442488abe1899bea296346e904a8d3f1c13bd878d416cef60de9d3f43e4526"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): candle-transformers/src/models/lfm2.rs:642-654 | candle-transformers/src/models/llama.rs:491-501 | candle-transformers/src/models/voxtral/voxtral_llama.rs:415-431 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83c475bb620abaf501c4ea0c00a25895c274e652a3c52e081ba2950fdd3044e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/resnet.rs:65-79 | candle-transformers/src/models/resnet.rs:177-191 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e537fab294acfa62e368037578a0c107f891b9bcbb21a1f535b297dfcef7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/glm4_new.rs:102-111 | candle-transformers/src/models/quantized_glm4.rs:78-89 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8938862e995b6049ec03420b4f54c1fa7eebcda26e784f6f0b569ce86ee359e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-core/src/quantized/metal.rs:136-151 | candle-core/src/quantized/metal.rs:158-173 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/metal.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a6eddd259fd1934c45005d14a60946e654a166c47df6430f1cafcfdf2b706b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): candle-metal-kernels/src/kernels/affine.rs:49-75 | candle-metal-kernels/src/kernels/affine.rs:116-141 | candle-metal-kernels/src/kernels/affine.rs:182-207 | candle-metal-kernels/src/kernels/cast.rs:45-71 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47dfc8c5046dab1a875a9aca5e37cf1fa2851031635b704036a9e84b04c110e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): candle-metal-kernels/src/kernels/convolution.rs:147-172 | candle-metal-kernels/src/kernels/convolution.rs:189-218 | candle-metal-kernels/src/kernels/convolution.rs:236-259 | candle-metal-kernels/src/kernels/convolution.rs:283-313 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"090da40b79851544a2b9f08551bf14885098313e352c23115a0d80b704c8a39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): candle-transformers/src/models/gemma2.rs:333-344 | candle-transformers/src/models/gemma3.rs:373-384 | candle-transformers/src/models/gemma4/text.rs:457-470 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5371653f008c29a97778203bc3a9181779244e49fd52c18c3fa0f7e5371622d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/mpt.rs:245-263 | candle-transformers/src/models/quantized_mpt.rs:184-198 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f72d8b5c59b2108e0e2ba44e402e5435116b6fb326f53879aaeeb60b7f032c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:542-559 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:645-663 \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":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"946f44c55fe805a8d141ade2fb0b5a8f3de738760e402c3ff7c49a0de2d5bdd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): candle-transformers/src/models/quantized_qwen3.rs:136-143 | candle-transformers/src/models/qwen3.rs:62-69 | candle-transformers/src/models/smol/smollm3.rs:92-99 | candle-transformers/src/models/z_image/text_encoder.rs:134-141 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"084cf0e7d9474d70981d4d2e60b721687891bcb3c4e87d972f8c0c3365ff662a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/npy.rs:403-414 | candle-core/src/npy.rs:416-432 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/npy.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7c1a45bc047cba01e76a4303f83cccfd2faf2de1af856ab1ec22cb5ce2d931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): candle-transformers/src/models/mixformer.rs:423-436 | candle-transformers/src/models/mpt.rs:265-283 | candle-transformers/src/models/phi.rs:344-360 | candle-transformers/src/models/quantized_mixformer.rs:338-351 | candle-transformers/src/models/quantized_mpt.rs:200-218 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"f990d053c65adc48250b4d1ee541ef9053f04ace593ee2d5acac816ba5683f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:334-344 | candle-transformers/src/models/mmdit/blocks.rs:374-387 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6714e44513adcac998770c0dc247ed86909f5765b1550d5b8bf8690a5b806b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/z_image/vae.rs:272-299 | candle-transformers/src/models/z_image/vae.rs:354-375 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/vae.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4310a8c2dce146864e39396f3ee280099607ed87a5f8aeebc7b426e73554de39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/clip/text_model.rs:336-346 | candle-transformers/src/models/openclip/text_model.rs:255-265 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea144c67338a30f5e63e04e76752ae42f86f00a4e3a5dbf9a27f0acba596614e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/wuerstchen/common.rs:143-160 | candle-transformers/src/models/wuerstchen/diffnext.rs:35-51 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/common.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e32bd7c8a313f0f1372177ba9452e5b1c765bdd118e87b8462f4ee63d27e470"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-core/src/tensor.rs:1694-1712 | candle-core/src/tensor.rs:1736-1754 \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":"candle-core/src/tensor.rs"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"733d1c6147bb9104629f9d1fafab4ab5f7058b257eb53c5c866075ed6ae8eb7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/csm.rs:368-382 | candle-transformers/src/models/quantized_mistral.rs:314-330 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13c45395dc4719e3b7bfcc968e81406d1ce90211e7619f89d5b01ae413690f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/segment_anything/image_encoder.rs:467-482 | candle-transformers/src/models/segment_anything/tiny_vit.rs:606-621 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/image_encoder.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d5d538b9868408b1c9c83f9b791e4d774fef322a22cf9901bc46f8c6490d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-metal-kernels/src/kernels/unary.rs:88-105 | candle-metal-kernels/src/kernels/unary.rs:169-195 \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":"candle-metal-kernels/src/kernels/unary.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"625c1f8f5012a32f587ac334d3f4d59db020b70683ac539ead6b1b6a2ff51fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): candle-transformers/src/models/encodec.rs:135-142 | candle-transformers/src/models/encodec.rs:165-176 | candle-transformers/src/models/mimi/conv.rs:33-48 | candle-transformers/src/models/snac.rs:94-108 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d66d5c70e0f8ee924ecae2cbbf8fa2d6a352c8bd86dfa196e168aec0e5299c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): candle-transformers/src/models/fastvit.rs:180-189 | candle-transformers/src/models/mobileone.rs:108-117 | candle-transformers/src/models/repvgg.rs:124-133 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"28db383ee7d37c61ff1a0c2f3e0a0ba226a7a1a822ba62226d58cb8824fd8aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): candle-core/src/quantized/k_quants.rs:719-737 | candle-core/src/quantized/k_quants.rs:749-767 | candle-core/src/quantized/k_quants.rs:2339-2356 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11dd18000829034f475b390a73b83bc92960678d421e08247cdb658ca51b902"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/dac.rs:334-349 | candle-transformers/src/models/snac.rs:704-720 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"409954640fe69154cffeeac1a56896590099b4d7ec8af578bce745aa9cf9e460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/quantized_t5.rs:135-145 | candle-transformers/src/models/t5.rs:264-274 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad95e70a0a5619ae05176955b4882aaccc7244b2f98e2f92ee0a24ffcb1b0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): candle-core/src/conv.rs:132-145 | candle-core/src/conv.rs:211-228 | candle-core/src/conv.rs:273-286 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/conv.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f923dd65f99663864cd255d2f3ef31a68edda94175417113bc80e9b243d5c08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-metal-kernels/src/metal/encoder.rs:292-315 | candle-metal-kernels/src/metal/encoder.rs:317-337 \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":"candle-metal-kernels/src/metal/encoder.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcf0a53ca7fc6d5312f1769dae41c19d15c01cd4a0ec733b38b2ba26995da75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/beit.rs:42-62 | candle-transformers/src/models/eva2.rs:63-79 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7e1bda2a9f49984fc626160e85dbe6fb0d3befc4f8efb8799e5e0ac6c80897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/flux/model.rs:514-522 | candle-transformers/src/models/flux/quantized_model.rs:353-361 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01df4b7ded94e1c7afb1b664f913610cea3fd0782257aa9d8a6b1daa15e96d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/gemma.rs:296-312 | candle-transformers/src/models/smol/smollm3.rs:319-334 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4746c8376ece72e850c7d89591dc10ac17f6523ed8a6284c9453f87f0c5ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): candle-transformers/src/models/llama2_c_weights.rs:54-72 | candle-wasm-examples/llama2-c/src/worker.rs:113-131 \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":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dda19347c7bbde5c8fb2a22a71c45550368b8caecc1c880662edd07e087152"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/marian.rs:488-503 | candle-transformers/src/models/marian.rs:548-563 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c9f5f8d4517d7e1903e02a29e3d3d2d4eddab81cc96a1b5b490ad1af5beb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): candle-core/src/storage.rs:90-105 | candle-core/src/storage.rs:176-191 | candle-core/src/storage.rs:506-521 | candle-core/src/storage.rs:528-543 | candle-core/src/storage.rs:562-577 | candle-core/src/storage.rs:587-605 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c86008dff2e7fee1bf16f333937627096f10b0e35c05c29176d8071f9838a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/quantized_t5.rs:189-200 | candle-transformers/src/models/t5.rs:318-329 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"298be3d57a994eb13f97a217f43c0e965fe967615a167b562130885ec7e0bd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-metal-kernels/src/metal/encoder.rs:119-133 | candle-metal-kernels/src/metal/encoder.rs:135-149 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/metal/encoder.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08a0ab08ea2e33ca7f79838c9943d1374bf9c781cbf3d791877440e71c1b503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/deepseek2.rs:488-498 | candle-transformers/src/models/phi3.rs:158-165 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051fe344b35066fd1f65f3dd17c6ca4ae0ebd4ff14e8cc9f847065305fc4ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): candle-core/src/quantized/mod.rs:171-181 | candle-core/src/quantized/mod.rs:188-202 | candle-core/src/quantized/mod.rs:204-214 | candle-core/src/quantized/mod.rs:221-235 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d74b96eaac5c23d0a1c1116223ff84a260c3127d918f5cdfc2eb890e9543ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): candle-transformers/src/models/csm.rs:136-143 | candle-transformers/src/models/helium.rs:92-99 | candle-transformers/src/models/mistral.rs:143-150 | candle-transformers/src/models/nvembed_v2/embedding.rs:43-50 | candle-transformers/src/models/quantized_mistral.rs:58-65 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd41804c54b6d019dd9a01b318f2c3cf7f5df9d9aacdeed8e263841f4a1879ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-core/src/accelerate.rs:394-402 | candle-core/src/accelerate.rs:405-413 | candle-core/src/mkl.rs:347-355 | candle-core/src/mkl.rs:358-366 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4a4176f710690b8349829d49ffe63dc982d7ad5b210596d6e1c17e56c2edc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): candle-core/src/quantized/fast_mmvq.rs:99-115 | candle-core/src/quantized/fast_mmvq.rs:117-133 | candle-core/src/quantized/fast_mmvq.rs:135-151 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/fast_mmvq.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23aa89e662c210b2ed32def40c0164febd806d7334eaab8650fd39d190f7419"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/quantized/ggml_file.rs:43-58 | candle-core/src/quantized/gguf_file.rs:59-70 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a7d7f256d5918ea7344960b390ae3bdb7c4257e39ede174e85995e405a64ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-core/src/quantized/mod.rs:893-902 | candle-transformers/src/models/t5.rs:82-91 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4eb3301a4a4a67b7861e9942a06c5b2d9cb567d4ecd110d144c1a352da1f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): candle-core/src/storage.rs:107-122 | candle-core/src/storage.rs:124-139 | candle-core/src/storage.rs:193-208 | candle-core/src/storage.rs:545-560 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d61af9aa115da59bcf0f846eba0f22b6013952e5a90cd38498c637d970d5c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): candle-nn/src/conv.rs:56-73 | candle-nn/src/conv.rs:127-144 | candle-nn/src/conv.rs:218-235 | candle-nn/src/conv.rs:288-304 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"329f59fe5f439dc3c3f4831bc5e4e6e94a9b61e6f57fc575c8710af28030c297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): candle-transformers/src/models/llama2_c.rs:322-334 | candle-transformers/src/models/quantized_llama2_c.rs:209-221 | candle-wasm-examples/llama2-c/src/model.rs:229-241 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85ce3fade3291883174a06ad445dd3b23614c4dee49e4f5709827c02756ca4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/nvembed_v2/model.rs:40-52 | candle-transformers/src/models/stable_diffusion/attention.rs:41-53 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c717abd54b9106ec4e50d8c1b00e80e7110863508e13e7ca388c235ce1b15b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/gemma2.rs:120-132 | candle-transformers/src/models/gemma3.rs:125-137 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0144f073695678ccb3b2fda76c2ec230d8e11a90826069197d01703dbe063ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/cpu_backend/mod.rs:2952-2959 | candle-core/src/cpu_backend/mod.rs:2961-2968 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f75673af1ba0ee48270098bf8d7f949fea6f378da70b4bc64ccc3b530c00be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/clip/text_model.rs:307-321 | candle-transformers/src/models/stable_diffusion/clip.rs:367-381 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4eeec3266cd486602d4dd5ddf979094c97f4583b5c37ce480a19f912490a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/paligemma.rs:124-135 | candle-transformers/src/models/paligemma.rs:154-165 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paligemma.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3395861e2570b3c89dbb4daf093fa658fa05a7db72aa14e4b6560042e97b1aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): candle-transformers/src/models/efficientvit.rs:108-122 | candle-transformers/src/models/mobilenetv4.rs:400-414 | candle-transformers/src/models/mobilenetv4.rs:629-645 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02551adcdbc861a4fca88a4cd8dd309c12d75fff46726a7a79b5bdbbbdf9d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/mixtral.rs:282-295 | candle-transformers/src/models/qwen3_moe.rs:106-120 \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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c38ca54752241cb9c68fc464434e56159441584411e113476c28bee03261a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:240-248 | candle-transformers/src/models/mmdit/blocks.rs:283-293 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01bf24ebb3b95ee8a64c8b35dda1c252ff6fac46416d0bf1033055622c13725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/paddleocr_vl/vision.rs:290-297 | candle-transformers/src/models/qwen3_vl/vision.rs:95-102 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9948682afae0f1ad928966b4b054cb4423a9710fa28bf75a99be4b2cad5ca14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-core/src/custom_op.rs:201-210 | candle-core/src/custom_op.rs:222-235 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/custom_op.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3b1522dc800b7a85b1a242ef173fbeb44cec9216216fa9fc2ef1ab14ad630f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): candle-pyo3/src/lib.rs:679-688 | candle-pyo3/src/lib.rs:696-705 | candle-pyo3/src/lib.rs:713-722 | candle-pyo3/src/lib.rs:726-735 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bee51c0b599d6c144e5fd71c89027f98be38e3736e88553de47749ce3e8388"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/blip_text.rs:291-299 | candle-transformers/src/models/quantized_blip_text.rs:287-295 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0003996a7d2eb331d2066488ff42a08ac19d7ef57388c06202792c86922840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/encodec.rs:269-277 | candle-transformers/src/models/mimi/quantization.rs:125-134 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"faee75850f49d6df26d849eac3c5b12203ff7bb534b0748d619ec7fe2ca05189"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/efficientvit.rs:367-375 | candle-transformers/src/models/fastvit.rs:449-457 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea22405423eab4ea7f8c484d0e1ca352eb1c978382e982f3148f6eb3ed7920cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/gemma4/audio.rs:56-64 | candle-transformers/src/models/gemma4/multimodal_embedding.rs:21-28 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/audio.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"289fc1f08350291c6afaf3c87e6fddc8a8064ec156339bcc8ccde4f0c4a21116"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/tensor.rs:2500-2511 | candle-core/src/tensor.rs:2514-2521 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00e7513df8a330b8ec1cc767d04a17bab42de48655e0213489ddcf0c01ad645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): candle-nn/src/conv.rs:313-327 | candle-nn/src/conv.rs:392-411 | candle-nn/src/linear.rs:84-94 | candle-transformers/src/models/vgg.rs:133-144 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff876edeca68ad0560fadbb0d5ef3c25f83de94cc44c1d19ffd1c2ed2f6200f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): candle-transformers/src/models/clip/text_model.rs:70-85 | candle-transformers/src/models/siglip.rs:670-685 | candle-transformers/src/models/stable_diffusion/clip.rs:154-169 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7e2fa24336f98afd6aa7503305dea43d1a6f1fb3e064f0c0c51b6680b11384"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/distilbert.rs:102-117 | candle-transformers/src/models/jina_bert.rs:99-114 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcdb4c4e8c6d3e3308d4b01ba80190561647688c30533cb70f5ba29c9cc18bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-transformers/src/models/paddleocr_vl/vision.rs:583-599 | candle-transformers/src/models/qwen3_vl/vision.rs:186-206 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d7cf93613932368780b86a4af19cdedf5f463b4414d6f3633199338a45073f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): candle-transformers/src/models/distilbert.rs:242-254 | candle-transformers/src/models/metavoice.rs:848-860 | candle-transformers/src/models/quantized_metavoice.rs:151-163 | candle-transformers/src/models/quantized_stable_lm.rs:190-210 | candle-transformers/src/models/stable_lm.rs:320-340 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b8afcd37a8655fa1d7d062f8b8e9286a4d8e097a8832e38a75967cc6ea13b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/mpt.rs:175-190 | candle-transformers/src/models/quantized_mpt.rs:152-163 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c609e054b52df82758744f5fd4c091f530c5035c683e08a70862c1ce7ef5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-pyo3/py_src/candle/nn/container.py:137-148 | candle-pyo3/py_src/candle/nn/container.py:154-165 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/container.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f63bde0858e3301c12e5c510ea6f9e2d6a1b1921e778bbedf4eaf1623a0d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/tensor.rs:1207-1218 | candle-core/src/tensor.rs:1253-1271 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2efaa6f872c67afe14823f8eb4462c278a83fc9c1eb7c738ccd8cfe42c9d606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/dinov2reg4.rs:283-292 | candle-transformers/src/models/eva2.rs:331-340 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2reg4.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"120c9905c2d4523814569edabc984c48b1f48778577ed76ff12483f6220250b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): candle-transformers/src/models/gemma.rs:127-139 | candle-transformers/src/models/pixtral/vision_model.rs:147-158 | candle-transformers/src/models/qwen3_vl/text.rs:73-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf69ee631b1c0ddb10b4936d399422a4d787dd43cc26c742b0487cbe77c1cab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 23\u002B corresponding lines): candle-transformers/src/models/marian.rs:36-58 | candle-transformers/src/models/marian.rs:61-83 | candle-transformers/src/models/marian.rs:85-107 | candle-transformers/src/models/marian.rs:109-131 | candle-transformers/src/models/marian.rs:133-155 | candle-transformers/src/models/marian.rs:157-179 | candle-transformers/src/models/marian.rs:181-203 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1289006d7a81efdbcb67a315c2ad1a0f6cbfe18132632eaa19de1da5f47cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-core/src/cpu/mod.rs:235-248 | candle-core/src/cpu/mod.rs:251-264 \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":"candle-core/src/cpu/mod.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d86e0de8523e302823ed6c75a9f2243095900cc569844f8abfc5d1df7e0acfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-core/src/metal_backend/mod.rs:2003-2018 | candle-core/src/quantized/metal.rs:443-457 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93f907ea19c3b4179feaa48e1554d0221891c11621c5fdb04e7d88987a20cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/dac.rs:291-302 | candle-transformers/src/models/snac.rs:610-621 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"957e3f13bc3bbfb1b2e3310e4ff3ce7d9aad210c5873b82898103e9d9a114823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/nomic_bert.rs:467-480 | candle-transformers/src/models/stella_en_v5.rs:780-796 \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":"candle-transformers/src/models/nomic_bert.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e08d5a935a308c7611d81e4b0c807fa903956b2e4f89d281c3c3a8ef85d2f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): candle-transformers/src/models/siglip.rs:613-629 | candle-transformers/src/models/siglip.rs:707-722 | candle-transformers/src/models/vit.rs:394-406 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/siglip.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c80f7e002a99cdc528399a99387aca5446c7712028d5998a6ddf40aaffeb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:141-153 | candle-transformers/src/models/z_image/vae.rs:214-227 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0738e4154549e91910bff6b3dca9346b27c0708cd32b48f1fc72f49b8a8650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/llama.rs:67-84 | candle-transformers/src/models/llava/config.rs:66-83 \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":"candle-transformers/src/models/llama.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff7d544f9995008d653be28682b838847035428b603850646864a9913043c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/modernbert.rs:288-302 | candle-transformers/src/models/nvembed_v2/embedding.rs:272-286 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/modernbert.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bc87b064a31d2f36e30342005dc378728855cbf19e3238db888049ca5d24cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/quantized_t5.rs:636-649 | candle-transformers/src/models/t5.rs:775-792 \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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb92fc758d04e57c480a782aa7bebb28883ecdf354e8a2ac23332676097fb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-nn/src/var_map.rs:57-69 | candle-nn/src/var_map.rs:78-92 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_map.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"769f07871cd6cb0c590b9e60e1f0cb1cad7c045dd4c6120b6a7408c67569b0bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): candle-transformers/src/models/bigcode.rs:290-300 | candle-transformers/src/models/gemma4/vision.rs:353-365 | candle-transformers/src/models/glm4_new.rs:280-291 | candle-transformers/src/models/openclip/text_model.rs:188-199 | candle-transformers/src/models/quantized_glm4.rs:333-346 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c8caf5b1edf944a568af3b041c69b34469c424aa55dbe99df67e4f39efa546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/dac.rs:34-40 | candle-transformers/src/models/snac.rs:235-241 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62cdd86b89ee2a2153a0b7cc8a0a6dfa5494162e9ce9aa6168d3cb80ec80a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): candle-transformers/src/models/moondream.rs:165-177 | candle-transformers/src/models/nomic_bert.rs:312-325 | candle-transformers/src/models/quantized_moondream.rs:96-107 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e6aff7f83c93b4e0b616522f5399a847cc19bd580510bb029ae0de0ab095d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-datasets/src/batcher.rs:72-89 | candle-datasets/src/batcher.rs:121-139 \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":"candle-datasets/src/batcher.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ad09922a2c29646976d93f1a80b731edc2eb4467234c5bdc1110108fc3bf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/gemma.rs:417-426 | candle-transformers/src/models/mistral.rs:451-460 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"72771a84893c682065643eaf83f530cc53b1a6886e8b2b30b4d1dc08685aa1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): candle-core/src/tensor.rs:2821-2826 | candle-core/src/tensor.rs:2829-2834 | candle-core/src/tensor.rs:2837-2842 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce635e6f994f151ccf21e43a68c079c0857372a552aaa0816abf42a3c51d079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): candle-transformers/src/models/chatglm.rs:34-56 | candle-transformers/src/models/codegeex4_9b.rs:43-66 \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":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aeb6084f1d2869b27d0e5ccfd22ad2a8df9bacbdf21235093f07c8ffdfc5491"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/flux/model.rs:303-314 | candle-transformers/src/models/flux/quantized_model.rs:142-153 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755697ac584cd2186f9b9ff9c6dedd1386e019f81f21cd222bfa461e21c5e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/mmdit/blocks.rs:223-238 | candle-transformers/src/models/mmdit/blocks.rs:263-281 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb361c123fadb42abddda0bfbf0dd0263849d7ac051b7834961692c95b1a36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): candle-transformers/src/models/paligemma.rs:29-51 | candle-transformers/src/models/paligemma.rs:53-74 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paligemma.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5f1ea6a886da984077f565ceb764df46ff212012eca0a1478d9ade8de1f8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:339-347 | candle-transformers/src/models/recurrent_gemma.rs:572-580 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"22efbdcf2e430dc3204e16fcb02808a84a7c9fbd88ab3544c6ec9a9ba384ff64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-transformers/src/models/bert.rs:505-517 | candle-transformers/src/models/nomic_bert.rs:447-459 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0c3567336fb51050245d000b22294fc6c1c5c56aa5c6dd73e2b414aabfdecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/csm.rs:284-295 | candle-transformers/src/models/phi3.rs:310-326 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89bafb5104058a2f8a2db7064a8427b74a2f93884c08ef7b24553b5e6dac87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/quantized/k_quants.rs:710-717 | candle-core/src/quantized/k_quants.rs:1467-1474 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae03b675d7129bf2748ade7422620a634e3f0145fa33efdab2a26b6cfcdd0d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/blip.rs:222-231 | candle-transformers/src/models/quantized_blip.rs:183-192 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9791d7003ecd3b54d64ae94f98969d5a8e9671ed6f6a4c006215309df0db925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/falcon.rs:121-127 | candle-transformers/src/models/paddleocr_vl/text.rs:194-209 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/falcon.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba6f781af1f31a17630590ebb64eed2cfdaf6d04da6b008399b6fbcb79e7b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/granite.rs:216-222 | candle-transformers/src/models/granitemoehybrid.rs:265-271 | candle-transformers/src/models/llama.rs:262-268 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b46989fbd4133993a7ab1c6df8961f524a75276bf293868761ad1053d8e0c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): candle-transformers/src/models/lfm2.rs:313-319 | candle-transformers/src/models/mimi/transformer.rs:76-85 | candle-transformers/src/models/quantized_lfm2.rs:118-124 | candle-transformers/src/models/quantized_phi3.rs:99-105 | candle-transformers/src/models/quantized_qwen2.rs:71-77 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f8a07263aaf0df5a51e4b896460285154ba54f45502843696f2a78003fe3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): candle-transformers/src/models/metavoice.rs:567-579 | candle-transformers/src/models/mixformer.rs:353-363 | candle-transformers/src/models/quantized_mixformer.rs:268-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"10369c43f539288c84ed921d29da10a1b9b49e0b4307a7826759401e4ad0dae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-pyo3/py_src/candle/nn/container.py:94-102 | candle-pyo3/py_src/candle/nn/container.py:263-270 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/container.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f887790fba2a2238f826996d130f9620faf5e7137cbd853f851a511d1f917039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-core/src/shape.rs:312-320 | candle-core/src/shape.rs:322-330 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/shape.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a0c16512012b1e907599a760cc8aefbb5026892f93235b7f1b40934f5ddbe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): candle-core/src/tensor.rs:788-795 | candle-core/src/tensor.rs:798-805 | candle-core/src/tensor.rs:808-815 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e47edadc410fca5564f109d92416694c54cc0ac9f2d8a166ee4c5b2bd9b533"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/quantized_t5.rs:204-211 | candle-transformers/src/models/t5.rs:333-340 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"669d9402adde35134e68b2442b53e892a3a88581c077de48de508a6ec6ef27b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-core/src/storage.rs:22-34 | candle-core/src/storage.rs:326-341 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d822b22f2f2b6b0fc4aa9b616e7cf356c937aebf00cb0443d79ae87331cee6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): candle-flash-attn-v3/src/lib.rs:268-274 | candle-flash-attn-v3/src/lib.rs:713-719 | candle-flash-attn/src/lib.rs:248-254 | candle-flash-attn/src/lib.rs:849-855 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d1e5aa0feed03e6ecf9e416c942d4cb585fccd7eab593b6c64f6fb1c877f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-pyo3/src/lib.rs:1192-1200 | candle-pyo3/src/lib.rs:1211-1219 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b6239ab1ed1c717428edf7dc4b007014164bca457a94dc80da2a8cf3aaa0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): candle-transformers/src/models/deepseek2.rs:956-966 | candle-transformers/src/models/paddleocr_vl/text.rs:1030-1042 | candle-transformers/src/models/qwen3_vl/text.rs:237-249 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f85f7351bc32267531854b883483803a659535a8acc8fe33dc6b832bba4d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): candle-transformers/src/models/helium.rs:112-125 | candle-transformers/src/models/llama2_c.rs:279-286 | candle-transformers/src/models/quantized_llama2_c.rs:166-173 | candle-wasm-examples/llama2-c/src/model.rs:193-200 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a625bca0bf248c32394f9782b4c83a48417bca2c77346633c3c8939b00e017f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/mimi/seanet.rs:108-118 | candle-transformers/src/models/mimi/seanet.rs:131-141 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4531d44b5b0a2c7572087c4edce96cedaa35b2bf026f24a1c859653bc1387c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-core/src/quantized/repack_x86.rs:79-88 | candle-core/src/quantized/utils.rs:50-60 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cb503275cc9751451dab518e5d3a225c777886a5c5c2a7206609ba990bd858"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/clip/text_model.rs:323-332 | candle-transformers/src/models/stable_diffusion/clip.rs:383-390 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9751f3c9267ec682bfb8b98f8118c2f7394788b6da18cb2d498af1653497117"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/convnext.rs:160-169 | candle-transformers/src/models/convnext.rs:172-181 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d14e766feb2aac2034ddfb830e823de5ff6857b4ecc22d1cdbedfc4f2af1035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/paddleocr_vl/vision.rs:260-269 | candle-transformers/src/models/qwen3_vl/vision.rs:288-297 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b9957020e0abe2f29db4dd2331e1aa2f3a421850ffb4fd5e01ed44d2c406b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/phi3.rs:292-298 | candle-transformers/src/models/quantized_phi3.rs:58-64 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/phi3.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"186cfece76efadbf3c71904a7d7fa204a7b945a6744abaa3776a8ab40d312d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/quantized_t5.rs:157-166 | candle-transformers/src/models/t5.rs:286-295 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8c9cd9910419f22ac5e9d4a291c3b25736c83a9e8a734acc7e28770fa35d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-465 | candle-core/src/mkl.rs:393-407 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f861984c8e19622b4a347e4b2c4f38a6fc79aa37ccfde9082639c215c7ec78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-466 | candle-core/src/mkl.rs:393-408 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"402eceb522667c482d94258a693db4ab4dfbb29b4d0e57fdb6a47bf426ff446d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-467 | candle-core/src/mkl.rs:393-409 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c5573591fc356996eb2c71a8660c62078ba9bbd7a47ad6c5f1005607782ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-468 | candle-core/src/mkl.rs:393-410 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7dfb3ade2f88419cb6589fcfc350737cd44d070e34bb4060da66b226aa037b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-471 | candle-core/src/mkl.rs:393-413 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"36022ac81a0eb5e289926a74fcfc7614dea80de8d3a0e8deea7056fbc5f13cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-472 | candle-core/src/mkl.rs:393-414 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"019a52a3fc19c67fb1ce359daa3479f78eca7e814b7d75d020a89980829ce6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-473 | candle-core/src/mkl.rs:393-415 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da55edf58d7ed08d2b38e239dce2a642b8d89d833707e292ee31e73206bd5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-474 | candle-core/src/mkl.rs:393-416 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac229a89056137cc128d731e0c81ab69fb59f0affd926080cfeec0a95f7d9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-475 | candle-core/src/mkl.rs:393-417 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca4c2d48edc08165235ba26e1172fb15972bb75049320fb05880cf8afa8affa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-476 | candle-core/src/mkl.rs:393-418 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2ebd6d1fb77ea53992fe7d54f172d4208bd473550482c8226f81f88371c46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-469 | candle-core/src/mkl.rs:393-411 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3638c81514429394d3e6562784e674cfc37a181b4e993502e809f09ddf50b296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/accelerate.rs:440-470 | candle-core/src/mkl.rs:393-412 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d163ece94ffec28ec27dc554e7282a83bb2d49e207566e7951b75b2202a575"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): candle-core/src/device.rs:431-446 | candle-core/src/device.rs:448-463 | candle-core/src/device.rs:465-477 | candle-core/src/device.rs:479-493 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/device.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed55bf19706bc93bee1a558d2e3b544c62ab7597afd833a237530e12eceb70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/tensor.rs:187-194 | candle-core/src/tensor.rs:446-453 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"956b146e72aebf3cc777cc71a8e581e5b0bf4f155e1fc9569e778c7c5c57ba32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): candle-transformers/src/models/codegeex4_9b.rs:136-149 | candle-transformers/src/models/glm4.rs:157-170 \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":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d423fe18b4b043aeb3d04b4a618467fd9d48801cd4853b900de1e48fc4addbc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/lfm2.rs:238-251 | candle-transformers/src/models/mixformer.rs:203-213 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7282ff4322239071bb6bca064e1967e2fa77ba3208ce7e39df5464f4c60205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/moondream.rs:181-188 | candle-transformers/src/models/quantized_moondream.rs:111-117 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c5ee2868d7500ba8dabf801bb1a891e40d1187e502df7f6fd1233c71a7dfc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/cuda_backend/mod.rs:2151-2162 | candle-core/src/cuda_backend/mod.rs:2164-2175 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41877ec0bbfc80e726edc2d37fcfeea7fec2638d3d93e97aa74a03b812d252b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/bert.rs:438-444 | candle-transformers/src/models/chinese_clip/text_model.rs:457-463 | candle-transformers/src/models/distilbert.rs:281-287 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2078e1e5715195051cdcb2135ef1a23ca0ed9664606d3edcd5d8b1beb1cc76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/blip_text.rs:391-397 | candle-transformers/src/models/quantized_blip_text.rs:387-393 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"3369b9bffbf9a20a3ba387c4696de672107ad22a6255fe8c3858de889046b50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/paddleocr_vl/vision.rs:607-613 | candle-transformers/src/models/qwen3_vl/vision.rs:214-220 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"85db001873ca43c7cec55cb6807bda10f3f6f5279b8019629f721c7bbda21796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-core/src/cpu_backend/mod.rs:1151-1155 | candle-core/src/cuda_backend/mod.rs:257-261 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1494466e09f3db56239bd8a3f68791f45031a534048db0e63bd981b5b1ebb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-nn/src/ops.rs:948-954 | candle-nn/src/ops.rs:956-969 | candle-transformers/src/models/flux/sampling.rs:85-92 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"223d636359d5bdddfb0719bace1f8836dde5d52cd6c0a01551affe63e7e2bcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-pyo3/src/lib.rs:170-184 | candle-pyo3/src/lib.rs:186-200 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5134e3f6afe89f3bd515eb10a1eb80acc60f5404e6e97095519e6ab04d0da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:221-238 | candle-transformers/src/models/clip/text_model.rs:187-196 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"11065adcf30f5e729c78e54580fe35ac29851a8bf9a5f9a59e71b507baba74dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-transformers/src/models/falcon.rs:50-70 | candle-transformers/src/models/falcon.rs:88-110 \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":"candle-transformers/src/models/falcon.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b7834b9abbbb8e8dd9b55871c901b540eea3df7ce33b7e7c4e102e64e68f36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-transformers/src/models/phi.rs:279-293 | candle-transformers/src/models/starcoder2.rs:226-242 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/phi.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"330f7150c54761ed3126ae8f087802453a75581439880f2bd5506a0e55329868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): candle-transformers/src/models/qwen3_moe.rs:70-85 | candle-transformers/src/models/smol/smollm3.rs:111-134 | candle-transformers/src/models/z_image/text_encoder.rs:155-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3_moe.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fa4d3742c817de45039f9e29d4996ca5ee6b2dfbcae62453170d7f72fbd31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:176-186 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:260-270 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3fbf91fb4571017243f3fb53c5d393f33fc1f49907895c90a8bcbb28b7818c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): candle-core/src/quantized/k_quants.rs:269-282 | candle-core/src/quantized/k_quants.rs:687-700 | candle-core/src/quantized/k_quants.rs:825-838 | candle-core/src/quantized/k_quants.rs:1063-1073 | candle-core/src/quantized/k_quants.rs:1444-1457 | candle-core/src/quantized/k_quants.rs:1722-1732 | candle-core/src/quantized/k_quants.rs:2027-2040 | candle-core/src/quantized/k_quants.rs:2324-2337 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af17d95af85da93178deaabb26eadacd7f02e7c7ce612c0d58877ae8f0f5e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-core/src/shape.rs:153-165 | candle-core/src/shape.rs:168-180 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/shape.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"893a953f368c74fd53d5516f3a3e461a41b93bcaa81e8f46a581418558b1f3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-core/src/tensor.rs:2384-2399 | candle-core/src/tensor.rs:2459-2470 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a87dc52a6d44341aeba4d64d2702e31b9f4b06f5385933ef27616f462ee447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-flash-attn/src/lib.rs:1057-1076 | candle-flash-attn/src/lib.rs:1119-1135 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"576ff3b1f5c1e6acb21914510d2bdd0d2e1c53434ccafb366f87ae86810d5d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): candle-transformers/src/models/based.rs:497-505 | candle-transformers/src/models/mpt.rs:192-200 | candle-transformers/src/models/quantized_mpt.rs:165-173 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ff6e4a30a45e327b9293b1bdf1745f39fae0baaaddaca18533f1f22c69b7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/encodec.rs:110-116 | candle-transformers/src/models/mimi/conv.rs:215-221 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"47af1d1e7a31688200da8f11fa7c97395cedaba116b802781fe5b0f5e977f44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/flux/model.rs:503-512 | candle-transformers/src/models/flux/quantized_model.rs:342-351 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abad9370b7d597327551ac881aec9e5e64ff88c5adaf5bf2d45c693c092ce21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): candle-nn/src/conv.rs:351-364 | candle-nn/src/conv.rs:372-384 | candle-nn/src/conv.rs:440-453 | candle-nn/src/conv.rs:461-473 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"775bd157753611e5911d74c6af5135fa6d0bb146624a55b813ae9c38ab5f0949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/blip_text.rs:58-64 | candle-transformers/src/models/quantized_blip_text.rs:54-60 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12fb6ae7b066b9f79a911a80ec8e7a819d3cdbcccd01e5b6ff3a755b9f589f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/paddleocr_vl/text.rs:673-685 | candle-transformers/src/models/starcoder2.rs:98-107 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a475015defa58a49a21865369b7070ab6d7d758b1024b8d3af95158c270b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-core/src/accelerate.rs:416-424 | candle-core/src/accelerate.rs:427-435 | candle-core/src/mkl.rs:369-377 | candle-core/src/mkl.rs:380-388 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6d878808eaa895dc9495303dd8c89e6276ffa5b18dbbe96a1725f37f8f1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-core/src/tensor.rs:1054-1059 | candle-core/src/tensor.rs:1064-1069 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9ae9c7aa3175ee2854be131ac26f5e482b3812ba1718551547ab82498c6dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/bigcode.rs:33-39 | candle-transformers/src/models/falcon.rs:430-436 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6178c35deae36e02cf8ff4678f1e080daaab880297885ef93b3c8d5fb3ea64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/gemma4/text.rs:45-51 | candle-transformers/src/models/gemma4/vision.rs:44-50 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a3e33c4172d8fdf06ca7afd0aa69671ec4610f522dc7e2791a9813022c92b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/metavoice.rs:862-867 | candle-transformers/src/models/quantized_metavoice.rs:165-170 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c94335847af3fb3040068ed8334c70a8441b7f7ca6496fe7864e8c723c1ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/segment_anything/mod.rs:97-107 | candle-transformers/src/models/segment_anything/tiny_vit.rs:224-235 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/mod.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dae4609d693f49991d2bf2c2cb4570ac388a0d349306e07409ac788662469c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): candle-transformers/src/models/clip/text_model.rs:290-299 | candle-transformers/src/models/clip/vision_model.rs:134-145 | candle-transformers/src/models/stable_diffusion/clip.rs:289-300 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62c1f694d53f66927cca820bbe14363d50111b688d42cc9ccdce2276b15a92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): candle-transformers/src/models/bert.rs:281-295 | candle-transformers/src/models/bert.rs:370-384 | candle-transformers/src/models/chinese_clip/text_model.rs:187-201 | candle-transformers/src/models/chinese_clip/text_model.rs:351-369 | candle-transformers/src/models/debertav2.rs:741-754 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f68f5169d4485d52eec9cfe1bd9322b9b161bee147f4d9925d93f17aadd754f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:298-306 | candle-transformers/src/models/clip/text_model.rs:248-256 | candle-transformers/src/models/openclip/text_model.rs:208-216 | candle-transformers/src/models/stable_diffusion/clip.rs:321-329 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b84f664160c9ae4d6b4393ef092dd466394a63549a8fa70aac5b606675f953"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/encodec.rs:279-286 | candle-transformers/src/models/mimi/quantization.rs:136-144 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba6e24003ba5574362595eaad5b47a68c930b0e6bf18765abe5306c3000c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/quantized_t5.rs:478-486 | candle-transformers/src/models/t5.rs:608-616 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e752f171acd252f2ed9cce306aed6513f05a7c2b446052a77d3092f8e126a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:348-355 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:456-463 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d2740d63d2f7c3a47962d24f47ebf4c573656f317d23dec20714449589b943"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/mixtral.rs:251-263 | candle-transformers/src/models/z_image/transformer.rs:224-229 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be6b5aa90a0aa5a44dcef6092cde5d616ddd9e9334868f741de26dd8172dc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/mmdit/embedding.rs:127-141 | candle-transformers/src/models/mmdit/embedding.rs:183-190 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/embedding.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24ab65713e41aa65798b0b0da974a52ed19163b800e038f3c2a83b4bf97df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:25-43 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:73-81 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e123d50d62d17a2a9ef79699fa16818f2255dee1efb587e9cd2a1369852ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): candle-nn/src/kv_cache.rs:263-273 | candle-nn/src/kv_cache.rs:617-631 | candle-transformers/src/models/parler_tts.rs:459-472 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/kv_cache.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42fbf89d09634b9452b7efad2a17c4d56488695778f92d988f3cfa74823deff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): candle-flash-attn/src/lib.rs:889-908 | candle-flash-attn/src/lib.rs:949-965 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80478f5917961c4c5f806d29e8970ba201c14b2833d1ed771124458696e9406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/efficientvit.rs:438-444 | candle-transformers/src/models/hiera.rs:259-265 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a886503d5bd8226c91063e19c445073b3f0196e060cc24be68852dd967a535d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): candle-transformers/src/models/mixformer.rs:365-372 | candle-transformers/src/models/phi.rs:295-302 | candle-transformers/src/models/quantized_mixformer.rs:280-287 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a47411f950fb851350a4929fb57e1cf19ce21f4dfaea78fe82c270b916b85c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/modernbert.rs:413-422 | candle-transformers/src/models/modernbert.rs:471-485 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/modernbert.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7553790adc79dcd3209217d07ede7edbf1182b24f90cf95f0f8281a9ade5ec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/accelerate.rs:354-361 | candle-core/src/accelerate.rs:364-371 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb51ef2e711ca1f63189acfd33b3b7e9c533512a36f98bb1cc37854b152ac95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-nn/src/embedding.rs:29-36 | candle-transformers/src/models/mimi/quantization.rs:146-155 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/embedding.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a0a519a2420b4354d044ebbfbd2fb3a35ab60ff7a9522de1921c934f035688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-nn/src/ops.rs:22-29 | candle-nn/src/ops.rs:31-38 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba81babb50a644117577b1207ee0270bb1bcae3dc97f07731977754c71b4bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/mamba.rs:208-216 | candle-transformers/src/models/mamba2.rs:618-625 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc4e9ae84923d95dade8d399c074f51a9b26c16615715f9faf9f6d18c625d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/quantized_stable_lm.rs:53-58 | candle-transformers/src/models/stable_lm.rs:157-162 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2b697b04282aa710b82a9c69b82a071ab97a99a20806eb8da84d95a5219d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/qwen3_moe.rs:250-257 | candle-transformers/src/models/yi.rs:282-290 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3_moe.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf567744ea4cccfbef8169279085807192cba27cd86575854912a6148a0aba8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/whisper/model.rs:357-365 | candle-transformers/src/models/whisper/quantized_model.rs:361-369 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db92612e461d2d958f3471f2c06aeb6c5f5b3d76c1cb48127dbf76d2243245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/z_image/vae.rs:497-506 | candle-transformers/src/models/z_image/vae.rs:586-594 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/vae.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3ec069be3700d072c47372d00a4bad38321a1e018058798a8c9036dbdb5c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/mamba2.rs:58-67 | candle-transformers/src/models/mamba2.rs:69-78 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba2.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6788e46b6fe49f0c396df5f2919e1379c869458b9b378403af2e13d6e3257330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): candle-core/src/accelerate.rs:183-199 | candle-core/src/accelerate.rs:217-233 | candle-core/src/mkl.rs:97-113 | candle-core/src/mkl.rs:131-147 | candle-core/src/mkl.rs:165-181 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"545980abb4bb94bc5130f598857ffb2b60995815c660bc3693ba428f7002afc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): candle-transformers/src/models/beit.rs:394-402 | candle-transformers/src/models/dinov2reg4.rs:296-304 | candle-transformers/src/models/eva2.rs:422-430 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"821aec2e2082182c3a66866397690fa0585d0abcfa95e47c4ec84b64cf375c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/dac.rs:325-331 | candle-transformers/src/models/encodec.rs:324-333 | candle-transformers/src/models/snac.rs:680-688 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cd050ee094b1d884ce8f16039896f79d447212b69ec6f1dfbe4ba2de1f9b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/flux/model.rs:203-212 | candle-transformers/src/models/flux/quantized_model.rs:42-51 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d291c7ebd3b5ca626f4864462b84ee771f8ee438be17139afefc603cb2f4fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/moondream.rs:122-132 | candle-transformers/src/models/quantized_moondream.rs:56-65 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c45d34454a5b81ac0831b36853527c31bd45fc1d5a3120e94639a599bd30e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/mpt.rs:152-157 | candle-transformers/src/models/quantized_mpt.rs:129-134 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29b3133955cb2df5a89779ec9a6b6696c4fba1e3830d371d6a028e04f7c361d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-nn/src/batch_norm.rs:104-115 | candle-nn/src/batch_norm.rs:143-154 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/batch_norm.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"502d44dbd47c05ca9dcf5ff61d785d600ca1b0da84f2e03b4f0f43ef7d57cd6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/mimi/seanet.rs:279-286 | candle-transformers/src/models/mimi/seanet.rs:440-447 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdee878c3680279f042e487920a1d8c918eba1ef440d83dccac6a9120c424c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-core/src/quantized/utils.rs:11-25 | candle-core/src/quantized/utils.rs:33-48 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/utils.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c35bf91ab8926f3f321efbb704ed9dd7056a739e5d1589a11343ebcb50f3b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-transformers/src/models/bert.rs:314-322 | candle-transformers/src/models/bert.rs:404-414 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0d8b2dd33eddf257bfa143d59bccfae06a8c720d82f6887b2ef0716e829e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/colpali.rs:32-39 | candle-transformers/src/models/colpali.rs:41-46 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/colpali.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e9fc80c335db777a2763ca0b7531b5d0347e64187ff5ad2af7c7ebb9fd4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/flux/model.rs:23-38 | candle-transformers/src/models/flux/model.rs:41-56 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a803156f351a6ca39196aedf71641b429bcbeea8594b096538a6d0bdb27a056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/llama2_c_weights.rs:45-51 | candle-wasm-examples/llama2-c/src/worker.rs:44-50 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"907d44e56405ae548e6221ddffca7c592aab61783d160e0e834a3ecf232a58ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/whisper/quantized_model.rs:13-19 | candle-transformers/src/quantized_nn.rs:84-88 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/quantized_model.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"538c098f16c4ca2767fd290d9cc45de6bc920bd00e25f0e73cb05c9b334dab06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-core/src/cpu/simd128.rs:106-112 | candle-core/src/cpu/simd128.rs:156-162 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/simd128.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd28bb48826cfb9d50a3426e29235c1ae4659d2635f2a9d1a326d24d28b2f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-core/src/mkl.rs:284-291 | candle-core/src/mkl.rs:294-301 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/mkl.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"0280fe391305c27e4dc730450adc977219b1c5be5768cb838120f034ba204650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-nn/src/ops.rs:674-685 | candle-nn/src/ops.rs:932-945 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efd3d001a644555dd0ec99dec398c82f12bd71ff04471ae9c6cd09a8a20b38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/bert.rs:237-244 | candle-transformers/src/models/chinese_clip/text_model.rs:245-252 | candle-transformers/src/models/jina_bert.rs:161-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb75004acd43be7183ef6f8708f1ff1e649be68faa1aeb998dedfa9e170513c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-transformers/src/models/chinese_clip/text_model.rs:289-297 | candle-transformers/src/models/chinese_clip/text_model.rs:389-399 | candle-transformers/src/models/jina_bert.rs:226-234 | candle-transformers/src/models/jina_bert.rs:292-300 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/text_model.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe04bb074a915bbf42f44bc42be91c6fe2f8462a8732a47837bfcd4f6105ec4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-transformers/src/models/xlm_roberta.rs:305-320 | candle-transformers/src/models/debertav2.rs:854-870 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/xlm_roberta.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fbcc105bfb284f135fa6d40aa04e59f0bd4cd00474ac180c856e011d16bebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): candle-transformers/src/models/encodec.rs:770-779 | candle-transformers/src/models/flux/autoencoder.rs:413-424 | candle-transformers/src/models/z_image/vae.rs:639-651 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"4960f93244aa3b581890bd98df9e9f1ac21f90c717102af83efd1a5f47963256"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): candle-transformers/src/models/nvembed_v2/model.rs:105-110 | candle-transformers/src/models/nvembed_v2/model.rs:112-117 | candle-transformers/src/models/stable_diffusion/attention.rs:131-136 | candle-transformers/src/models/stable_diffusion/attention.rs:138-143 | candle-transformers/src/models/wuerstchen/attention_processor.rs:58-63 | candle-transformers/src/models/wuerstchen/attention_processor.rs:65-70 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9df6f4f3b011f13c8e648d930b5befa85a63a5347da6e9941203ee24140e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): candle-transformers/src/models/bert.rs:543-556 | candle-transformers/src/models/blip_text.rs:365-373 | candle-transformers/src/models/jina_bert.rs:201-209 | candle-transformers/src/models/quantized_blip_text.rs:361-369 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3dae192b6a7ba2be4051f034abdad5baef4e889b8d0fa5c8e60c6244b7f6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/moondream.rs:226-233 | candle-transformers/src/models/quantized_moondream.rs:155-161 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"10edec50ae20abfa6c9261552dd543d799f172f071aba6123e2f83c481022417"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/stella_en_v5.rs:96-114 | candle-transformers/src/models/stella_en_v5.rs:117-134 \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":"candle-transformers/src/models/stella_en_v5.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"978ed3634d72ea4740b952c95d134c552a53b41d00a8d90e84e7353c87d3383d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): candle-transformers/src/models/codegeex4_9b.rs:128-133 | candle-transformers/src/models/falcon.rs:186-193 | candle-transformers/src/models/glm4.rs:149-154 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8e48acd4692e3cf69647b44be2b0ae3662c1cbe9ed44c824f074890970e123"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): candle-flash-attn-v3/src/lib.rs:755-771 | candle-flash-attn-v3/src/lib.rs:864-880 | candle-flash-attn/src/lib.rs:349-361 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"a268e715d5e082cee0293423efac1ab0e7a97e1abf564dfd677d8fd35c439243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/debertav2.rs:798-815 | candle-transformers/src/models/xlm_roberta.rs:244-249 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5c6c5606fa66d51f001d7104ff40961124adf962a659bbb86db3ac35cb5870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/mixformer.rs:230-234 | candle-transformers/src/models/quantized_mixformer.rs:155-159 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f267c328b92cdecfd8dae5f1c87c06a45e92aff8d28cbfff06707bfa140b48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/qwen3.rs:81-88 | candle-transformers/src/models/glm4_new.rs:88-98 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8379e5e97bbeb298ef239d1bbb2976c002f238c4e094ece0f84c70f3a4709c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): candle-flash-attn-v3/src/lib.rs:925-938 | candle-flash-attn/src/lib.rs:1006-1022 | candle-flash-attn/src/lib.rs:1180-1196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a95d77f05b54ca3a00ba94cb25ef750ce2a9acdafb01869ce2597401041964"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): candle-nn/src/sequential.rs:55-63 | candle-transformers/src/models/chinese_clip/vision_model.rs:321-329 | candle-transformers/src/models/clip/text_model.rs:270-278 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/sequential.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ce47be3817999920da69f6925aaa746381ae6d448f7cae1fc4459f09f2521a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/bert.rs:341-348 | candle-transformers/src/models/chinese_clip/text_model.rs:318-329 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7cc49b77f68d5b27bc33a31f822f816e8ab573500cb497cf4ee59edceb2bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/bert.rs:386-391 | candle-transformers/src/models/chinese_clip/text_model.rs:371-376 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e31393b8eb1b3ef28eb96be839fd48adb7c3545a1099387571b61bfa6a9725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): candle-transformers/src/models/smol/quantized_smollm3.rs:244-253 | candle-transformers/src/models/z_image/text_encoder.rs:187-196 | candle-transformers/src/utils.rs:91-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe4ccc5612f77e8f9fbeb4b020a0a12c536fe59c52b0dd81d7e44c611a0947d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/quantized_nn.rs:19-24 | candle-transformers/src/models/with_tracing.rs:17-22 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/quantized_nn.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1897491db82211c3dc795672810384ad6bfe5dc87007a2f3a6f897088799cb3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-core/src/quantized/mod.rs:155-161 | candle-core/src/storage.rs:36-42 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1129429146e9a590f67fd8eec33b2a5527b8c76a0b20c673794dc90f2e80218c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 9\u002B corresponding lines): candle-transformers/src/models/blip.rs:240-248 | candle-transformers/src/models/blip_text.rs:308-316 | candle-transformers/src/models/mimi/quantization.rs:216-224 | candle-transformers/src/models/pixtral/vision_model.rs:217-225 | candle-transformers/src/models/quantized_blip.rs:201-209 | candle-transformers/src/models/quantized_blip_text.rs:304-312 | candle-transformers/src/models/vit.rs:363-371 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b01294a382a3ba423190f5c477f1cfa639e148fb254f846d45d1daece41741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/moondream.rs:269-278 | candle-transformers/src/models/quantized_moondream.rs:196-200 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6933114d892a668c541b0fce15616ceee2fa8986f4ddf426467defe364acdaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): candle-transformers/src/models/based.rs:69-73 | candle-transformers/src/models/blip.rs:180-188 | candle-transformers/src/models/phi.rs:100-110 | candle-transformers/src/models/quantized_blip.rs:141-149 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e5608615b8ab216f48b52534f8d26bd24f4e0d7c20f8c6537ea4cebea8d714"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-transformers/src/models/beit.rs:251-261 | candle-transformers/src/models/segment_anything/image_encoder.rs:18-27 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa504d79063f35dddbc8ebb5efdd5f054373139abfae5fd00d40a1a82093fa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): candle-flash-attn-v3/src/lib.rs:298-310 | candle-flash-attn/src/lib.rs:276-288 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d71b5d2f19983a6b1b3f41a7cee9cf76e8ea822a8073b7c00265aa40bd47d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/clip/text_model.rs:89-95 | candle-transformers/src/models/openclip/text_model.rs:58-65 | candle-transformers/src/models/siglip.rs:689-695 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f733fd16b3456bcaab29ecd025254674dccad873e075c575215d7945d7513f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-transformers/src/models/mixtral.rs:48-65 | candle-transformers/src/models/stable_lm.rs:44-61 \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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6148d63ab02e10caad4a4ffdd9a38fb14bdce256cb1333604b88a45b974f8923"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/deepseek2.rs:726-730 | candle-transformers/src/models/gemma4/vision.rs:303-307 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa40c20ba703df9b6853ea88613b1d0d05a4dd7ebd247b87bb9528ef5f44d868"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:162-169 | candle-transformers/src/models/z_image/vae.rs:238-246 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0691013de36198bcb79d1f2c940eaa32f4cea11c3ef05c8f23d1fcbd3bf151"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:186-193 | candle-transformers/src/models/z_image/vae.rs:323-330 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f53db4c17c9586edab978507a894429fdad4bd6bb78b3e45412b404b1d2f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/flux/model.rs:180-187 | candle-transformers/src/models/flux/quantized_model.rs:19-26 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c569d578600d9e7c378920d4dd21c5785a514fa89746b54e81a09becd767bc26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/dac.rs:140-146 | candle-transformers/src/models/snac.rs:438-444 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f51c1ee2fa3ea63affc5691b4b29160a1764100c4e91275e8835d348e8ebaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/flux/model.rs:342-346 | candle-transformers/src/models/flux/quantized_model.rs:181-185 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4d46d16cd8574ab1ed08c52c27f4cca8de3545518197df1eeef921bcc492c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/snac.rs:370-377 | candle-transformers/src/models/dac.rs:224-230 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/snac.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c947ffb0e87e8ad532540ae268e2bc981ed356474551f99ab1e1fda8b4ef170"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-transformers/src/models/chinese_clip/mod.rs:39-46 | candle-transformers/src/models/stable_diffusion/clip.rs:19-25 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f41a4adb21155f35bedc080b77ce0547dc6ff82b8de862534d05e780bf0246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/chinese_clip/text_model.rs:442-447 | candle-transformers/src/models/xlm_roberta.rs:473-481 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/text_model.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2b0e9d647c65d6aa57037e6a5d9ee4d9267516eccb61e05175cfc2db1b80e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/segformer.rs:623-630 | candle-transformers/src/models/xlm_roberta.rs:490-497 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segformer.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f89498f2537dbbb5b4e56a6b87a5158ef8c9bebd18941aec1c7deeba59c4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): candle-transformers/src/models/csm.rs:83-89 | candle-transformers/src/models/lfm2.rs:156-162 | candle-transformers/src/models/voxtral/voxtral_llama.rs:73-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"60599686d4f8533ad9323bc679233a489a081301b2360f2db15c9cec3496f283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/segformer.rs:230-240 | candle-transformers/src/models/vit.rs:271-275 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segformer.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac67efac6dc71666e7e929afa612559fd7da1a758df9937d953990f51e71db27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/distilbert.rs:339-346 | candle-transformers/src/models/jina_bert.rs:400-405 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cbcf0e61256b4469acefd2b11b92c1b0db15b805a0a964904ee63f1f159986"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/nvembed_v2/model.rs:17-21 | candle-transformers/src/models/stable_diffusion/attention.rs:13-17 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b694bcaa97287e9cfa73ccafa923758e9e2a9be9240d22eb902cfe4e422f5e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-transformers/src/models/quantized_t5.rs:124-131 | candle-transformers/src/models/t5.rs:253-260 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b765231171b66fbe60e4db810b48d8636ba16663efab694d5a2c54296310ce7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/t5.rs:74-79 | candle-transformers/src/models/with_tracing.rs:50-54 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/t5.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160d38a44acbc7bf97188d22f3069457e76a47b22b91f25bd6fb71dc0727552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): candle-transformers/src/models/llama2_c.rs:274-277 | candle-transformers/src/models/quantized_llama2_c.rs:161-164 | candle-wasm-examples/llama2-c/src/model.rs:188-191 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f7e3970b6589e3474c6465c818ecc1684f0e14947767ca67448d0ffcd9698b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:197-200 | candle-transformers/src/models/z_image/vae.rs:334-337 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfb9832eab381239f667af4e640f5bb032ca0c32fc645599423f46a3ea47b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/flux/model.rs:329-332 | candle-transformers/src/models/flux/quantized_model.rs:168-171 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"203f7e0a1da416287b13988212e77b702a526f8ba171978d3410b01c1af4065e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): candle-transformers/src/models/pixtral/vision_model.rs:162-165 | candle-transformers/src/models/quantized_recurrent_gemma.rs:55-58 | candle-transformers/src/models/recurrent_gemma.rs:172-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5243fdb29f45fac5e0729180f637ad7d6868adebc9bdd75e9dbe4c05ebe07a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-nn/src/conv.rs:335-343 | candle-nn/src/linear.rs:97-101 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf8d3157d94433f542b23e6c659c406dd3dfde1c065f5e48d71040839775589"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): candle-transformers/src/models/bert.rs:297-302 | candle-transformers/src/models/chinese_clip/text_model.rs:203-208 | candle-transformers/src/models/jina_bert.rs:211-215 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c5f15685d5aa281ce348097566226c63a5efb37687491e93c87977ab500718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-transformers/src/models/bigcode.rs:27-31 | candle-transformers/src/models/whisper/model.rs:12-16 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b521b3284c71f4256802c17d7c7a56784a55df5dae3e144fb2d31e32c38695"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/mixformer.rs:217-220 | candle-transformers/src/models/moondream.rs:282-285 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b336da96cfeceb210e1a9d8fd4d3185b89e38dd3c6fc629fd6e0542f3a64f2fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-transformers/src/models/stable_diffusion/ddim.rs:39-50 | candle-transformers/src/models/stable_diffusion/euler_ancestral_discrete.rs:36-46 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/ddim.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef420f000f34b48dafc4942274eca0b547aea4c138c7c568b1da516734f214d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): candle-nn/src/sequential.rs:29-35 | candle-transformers/src/models/openclip/text_model.rs:218-224 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/sequential.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1c58f69cde834b8060d941d8c1b427a9cc82ae4e7ec22fe975c7ffca8fce04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): candle-flash-attn-v3/src/lib.rs:420-429 | candle-flash-attn/src/lib.rs:392-401 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c53a4e40bf40bb3e809f3b0841d24d068abf4710b82d77d962eb5820d8f7653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:426-429 | candle-transformers/src/models/z_image/vae.rs:656-659 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cccae54b033fa73861341f6354f92eb1ebcaa79d05895c51bde4f538e1a660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): candle-transformers/src/models/openclip/text_model.rs:23-34 | candle-transformers/src/models/stable_diffusion/clip.rs:114-126 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/openclip/text_model.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c935c303655200deaff67f910519e15dd27e0a5cc8003e254f38d3a01925c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/quantized_glm4.rs:28-31 | candle-transformers/src/models/quantized_qwen3.rs:31-34 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2686bc2735e25217bf324407bff5c783beabae14f64086782cc688f04c8772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-transformers/src/models/quantized_qwen3_moe.rs:34-39 | candle-transformers/src/models/qwen3_moe.rs:187-193 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3_moe.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2987df919b3b648fae2261d48fc3b4d1efd4ccfed91ed6519d9f8a35a6b8e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/quantized_glm4.rs:33-36 | candle-transformers/src/models/quantized_qwen3.rs:36-39 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27cd5067c6b4ca03acbaf33ac05f697b1ff3bda61feadc630391ef975596f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/quantized_recurrent_gemma.rs:25-28 | candle-transformers/src/quantized_nn.rs:90-93 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf433baeb9036237e14922477ace6b1d74affe86a806525a6c92e3fc5dba72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-nn/src/ops.rs:44-47 | candle-transformers/src/models/based.rs:78-81 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d024071db5102e2a575e84890223dd928658aefe628669049d272d2bdccffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): candle-transformers/src/models/chinese_clip/vision_model.rs:242-245 | candle-transformers/src/models/clip/text_model.rs:200-203 | candle-transformers/src/models/stable_diffusion/clip.rs:274-277 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a4f4a2f7a7e05e29bb8106878c3354c414333dcbebd91344a428e393a6574d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): candle-transformers/src/models/chinese_clip/mod.rs:206-209 | candle-transformers/src/models/clip/mod.rs:149-152 | candle-transformers/src/models/mobileclip.rs:98-101 | candle-transformers/src/models/nomic_bert.rs:483-486 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"150c04adbcc47e1e154306f60c1a8ceda8903a2ef8a756a368177ceb6fb59a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/mixformer.rs:124-127 | candle-transformers/src/models/quantized_mixformer.rs:29-32 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"766a37009eb66f9af923940aa3de626316f6bb775959c02306e32a7b6da773bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): candle-core/src/cpu_backend/mod.rs:1091-1093 | candle-core/src/cuda_backend/mod.rs:208-210 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ff04ad5d13e6a31af03a3858dbdb18a1680becb585bc22be13a0836b296c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): candle-transformers/src/models/blip_text.rs:342-345 | candle-transformers/src/models/quantized_blip_text.rs:338-341 | candle-transformers/src/models/vit.rs:252-255 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e5a7a04ecb66e4d2e4c88ccaf30c481319d7d1300685a3f0a34ebeed6d343d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/flux/model.rs:59-62 | candle-transformers/src/models/flux/quantized_model.rs:7-10 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"757bd649e3796fde05fa4b49bf6e183148330bedd97f58ed789237f782e2ed69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/flux/autoencoder.rs:430-433 | candle-transformers/src/models/z_image/vae.rs:664-667 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9525ced890464050e5d13ea107854a22ef47617905614c05cd92d79bce0ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-transformers/src/models/quantized_t5.rs:600-603 | candle-transformers/src/models/t5.rs:730-733 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f12f60a9acde21989d6835ef041e725cf804ea4d24fc5c197d47d68aaf5821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/mod.rs:307-375 | candle-transformers/src/models/paddleocr_vl/mod.rs:425-493 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d15f099bced9b2a230c1a5d7e30be35834b1c737ccde6a687ccabc9e18b579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:330-419 | candle-transformers/src/models/t5.rs:459-548 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4c7ccaa37e0df4ffc05c26b63cbf6a15e3413a901d9d1797b29df3afb43909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): candle-onnx/src/eval.rs:1324-1380 | candle-onnx/src/eval.rs:1433-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:1324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9533a39745b017c7b75eb4f462e7ab6f68f0dd2c3cb42a1293ac5024301ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201352 lines \u00D7 4): candle-transformers/src/models/mobilenetv4.rs:97-134 | candle-transformers/src/models/mobilenetv4.rs:140-186 | candle-transformers/src/models/mobilenetv4.rs:192-233 | candle-transformers/src/models/mobilenetv4.rs:239-290 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mobilenetv4.rs:97\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobilenetv4.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"333ce95270efc966833a88292cb85e7160b892760ef1ce3723551fa39da17643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:242-331 | candle-transformers/src/models/codegeex4_9b.rs:263-352 | candle-transformers/src/models/glm4.rs:284-373 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38214261bd222ce1b9939e0a24a75f86bca3b8bfdd327e14bfef72069eb37a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): candle-transformers/src/models/encodec.rs:192-238 | candle-transformers/src/models/mimi/quantization.rs:22-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5685f6fd53395746a6657bdd538f5df826733f6b139b03ca49d0b3cbba4009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): candle-transformers/src/models/beit.rs:345-390 | candle-transformers/src/models/dinov2.rs:332-377 | candle-transformers/src/models/eva2.rs:373-418 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e029002857695db55678475c3deae6bf795df60f0cff992fa965d75b99b83112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201343 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:718-760 | candle-transformers/src/models/paddleocr_vl/vision.rs:793-832 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/vision.rs:718\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc09a79e98924f70430ce1f2ef005ab37f9ddc8683409d8b8005ddcc01adb9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): candle-transformers/src/models/marian.rs:298-341 | candle-transformers/src/models/trocr.rs:212-255 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/marian.rs\u0060 and \u0060candle-transformers/src/models/trocr.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/marian.rs:343\u0060 calls \u0060reset_kv_cache\u0060 and \u0060candle-transformers/src/models/trocr.rs:256\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f335cd193eebaa3e8818dbb42dad6cbc6f17e06d5451ae0d28d98e582e963c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:381-418 | candle-transformers/src/models/codegeex4_9b.rs:402-439 | candle-transformers/src/models/glm4.rs:423-460 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d848496d63ae75a8a70f97c07321a4ee2c7ec2f31e9065b876d2bdb1dce92c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:2888-2925 | candle-core/src/cuda_backend/mod.rs:1967-2003 \u2014 \u0060candle-core/src/cpu_backend/mod.rs\u0060 and \u0060candle-core/src/cuda_backend/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 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:2888\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"5699b86924568e674858d36671433e6053e4456c01872f543d31eed42ca907cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): candle-onnx/src/eval.rs:1876-1913 | candle-onnx/src/eval.rs:2086-2123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:1876\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd8d876737413296c04a32df842c0af877091418ed259e09616070465e3e4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 4): candle-flash-attn-v3/src/lib.rs:110-146 | candle-flash-attn-v3/src/lib.rs:555-591 | candle-flash-attn/src/lib.rs:90-126 | candle-flash-attn/src/lib.rs:650-686 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"317e9fcc49ed2fff5fc4a0dc8f566987cae78cb3e78b8d741a92b48ef54f6622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1512-1556 | candle-core/src/quantized/k_quants.rs:1777-1821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1512\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afed08eec63ed880d1233ea99fb57e59133ee0e2da366894bd00bec3882d8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): candle-core/src/quantized/neon.rs:2351-2387 | candle-core/src/quantized/neon.rs:2492-2528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b256e679a95479b40384644030c4d581d00e0f458d008b91e6c5084c6fe83315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): candle-transformers/src/models/quantized_glm4.rs:392-428 | candle-transformers/src/models/quantized_qwen3.rs:500-536 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_glm4.rs:392\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_glm4.rs:391\u0060 calls \u0060Some\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs:499\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":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b047728efc1325944650e1055b153bd3c86c832f3c743bf0d0b2a7e25bd5435a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:18-60 | candle-wasm-examples/whisper/src/audio.rs:12-54 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d383505aa5e9648280abdbee61bf9d0f4ba51db6a626920d6fad185384b9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): candle-core/src/cuda_backend/cudnn.rs:90-124 | candle-core/src/cuda_backend/cudnn.rs:191-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/cudnn.rs:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/cudnn.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"093a18110c576d8566597105551c079471f3c8b5cb0d409263a244d57c9d59c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1235-1277 | candle-core/src/quantized/k_quants.rs:1333-1375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1235\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1436da5e55b2e1d945691272c085332ee81726e83db1c2ec2b433bc3b0ebeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201335 lines \u00D7 3): candle-core/src/quantized/neon.rs:1046-1080 | candle-core/src/quantized/neon.rs:1500-1534 | candle-core/src/quantized/neon.rs:2239-2242 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1046\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:1046\u0060 calls \u0060vmlaq_s32\u0060 and \u0060candle-core/src/quantized/neon.rs:2239\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"b450d1236d8be3b36b4378377a5172617e66e7a941b6f2b3b4287c7126265924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): candle-transformers/src/models/qwen3.rs:130-164 | candle-transformers/src/models/z_image/text_encoder.rs:220-253 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/qwen3.rs\u0060 and \u0060candle-transformers/src/models/z_image/text_encoder.rs\u0060 as WHOLE FILES: this scan already matched 19 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/qwen3.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04d3594e04ffa7f55137bacffdbe1d15d93e15aa20aeba400dcef9a9c5c1e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 4): candle-transformers/src/models/granite.rs:232-287 | candle-transformers/src/models/granitemoehybrid.rs:281-336 | candle-transformers/src/models/llama.rs:278-333 | candle-transformers/src/models/voxtral/voxtral_llama.rs:192-247 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3b6af591ae6cc67f64ec6be420ff6a5106a3bc3aa5b8c6cd5f220151d6e785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): candle-transformers/src/models/granite.rs:126-158 | candle-transformers/src/models/granitemoehybrid.rs:169-201 | candle-transformers/src/models/llama.rs:170-202 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bd8878b4399cc65557728102a72978a5113449887c92f19965b176ea9fd38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201352 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:2151-2201 | candle-core/src/quantized/k_quants.rs:2230-2281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:2151\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7bdd97ef5e0babea6fcb587b3c14c1f8e2bfb112aea4a17943e1b7ffc5e7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): candle-core/src/safetensors.rs:228-265 | candle-core/src/safetensors.rs:332-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/safetensors.rs:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8065124549fe6287733467793a10a8a14add3c154b1ad2c02934c313e44cd9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/ddim.rs:75-107 | candle-transformers/src/models/stable_diffusion/euler_ancestral_discrete.rs:76-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/ddim.rs:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DDIMSchedulerConfig\u0060 in one and \u0060EulerAncestralDiscreteSchedulerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/ddim.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbde3a578a1e54dc30bc4cf145c659d1fee8761ada880b5db4409e922cdfcf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:460-491 | candle-transformers/src/models/codegeex4_9b.rs:481-512 | candle-transformers/src/models/glm4.rs:502-533 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6949f0e29befe1afc67fba933f6d73b8e904123eb936bb36e9da11235c1801c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): candle-transformers/src/models/qwen2_moe.rs:278-312 | candle-transformers/src/models/qwen3_moe.rs:138-170 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/qwen2_moe.rs\u0060 and \u0060candle-transformers/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 7 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/qwen2_moe.rs:278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen2_moe.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46ec9e064cf243555f9f5d5100e06283a0cf327e48efc129bcf1515ce348a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/mod.rs:171-202 | candle-transformers/src/models/stable_diffusion/mod.rs:254-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/mod.rs:171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4612061cdd8a36d57ba371be5263b6bbae641076546c9d47e6cb914834deb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): candle-core/src/cpu/avx.rs:261-291 | candle-core/src/cpu/neon.rs:468-498 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90fc95f6f66cd257d8757d86785f19a37e8b9f24e92e642c882087230c10329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): candle-core/src/quantized/neon.rs:1896-1926 | candle-core/src/quantized/neon.rs:2683-2713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1896\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3efa8e34225ed90ae54ff804eb2f9300cdb55823274b800bc6015adb5083cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:635-664 | candle-nn/src/attention/cpu_flash/causal.rs:917-941 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:635\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad09a1747b06b5e4e47c863cb156319e28ef805e03a4d573b262813af379319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/uni_pc.rs:412-441 | candle-transformers/src/models/stable_diffusion/uni_pc.rs:525-554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/uni_pc.rs:412\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"715fc6c3251d83dacc7c7fe9fcd25f3ed33837efd1c9b08c74091ee686b03851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:124-162 | candle-transformers/src/models/quantized_blip_text.rs:120-158 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"399231ce3e334d7725126a1d47eaab1c7553a141938c6f0f897de9e0cf964128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): candle-nn/src/rotary_emb.rs:115-149 | candle-nn/src/rotary_emb.rs:420-454 | candle-nn/src/rotary_emb.rs:694-728 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/rotary_emb.rs:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"083bd50fd09735aefa625752058f5d99d1348f26c82c9b0851be59d2237c2cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 2): candle-core/src/quantized/avx.rs:191-210 | candle-core/src/quantized/avx.rs:402-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"595b93ca6ba00bb802afa608f130c60813783a4fe7beda7e213047f42f7edd55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:223-274 | candle-transformers/src/models/recurrent_gemma.rs:456-507 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs:223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9e727f0611624082aec51b15f5f9ce99d6662b813426416c9aab052b1fe1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): candle-transformers/src/models/stable_diffusion/mod.rs:231-256 | candle-transformers/src/models/stable_diffusion/mod.rs:300-325 | candle-transformers/src/models/stable_diffusion/mod.rs:399-424 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/stable_diffusion/mod.rs:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dcf73b87361959397a84d85d60b6830a140dd2fa553ab810b35383d6f4364c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1873-1898 | candle-core/src/quantized/k_quants.rs:1956-1981 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1873\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8d1ec3f9513ae4dfd2c89cda037418b5c98082da11a1704154ae5bb538758d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): candle-nn/src/attention/cpu_flash/varlen.rs:232-257 | candle-nn/src/attention/cpu_flash/varlen.rs:324-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/varlen.rs:232\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1451503e84a7ce7d02b8e7dcecf89c6c05cf44cb60e3507a85f5bb4c469140b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:88-113 | candle-transformers/src/models/t5.rs:186-211 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b364eecb13863b0326ccadb88a932c9bdef0c26b0dd21fdd842a42577df497d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:67-92 | candle-transformers/src/models/whisper/quantized_model.rs:64-89 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6b7378a67d029117e54baa6b24924ac7752296cd40f65f95af6d6129da2d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): candle-transformers/src/models/wuerstchen/diffnext.rs:167-191 | candle-transformers/src/models/wuerstchen/diffnext.rs:211-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/wuerstchen/diffnext.rs:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"145720026b2ada54c32fc1e38dc248047178895dee4ce6da6d50744aeca3a321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201325 lines \u00D7 4): candle-core/src/quantized/neon.rs:642-666 | candle-core/src/quantized/neon.rs:818-842 | candle-core/src/quantized/neon.rs:2818-2820 | candle-core/src/quantized/neon.rs:3102-3104 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:642\u0060 it begins part-way through the construct above it, so those exact 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72a3f2d489230c1d07d43103c5be66d5f470c86137206ba797e3b0ea3ecb9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-metal-kernels/src/kernels/reduce.rs:40-64 | candle-metal-kernels/src/kernels/reduce.rs:100-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/reduce.rs:40\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-metal-kernels/src/kernels/reduce.rs:99\u0060 calls \u0060as_slice\u0060 and \u0060candle-metal-kernels/src/kernels/reduce.rs:39\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a8ec1910f4d385e6e2698daf033b2edd01ed0e1bc5e784ddd4fe3de3c3de31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): candle-nn/src/ops.rs:458-480 | candle-nn/src/ops.rs:706-730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:458\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"44725de94398c260fd3e4c89b3fbf1533167817b766759b1f60ddfe118be85d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/bert.rs:156-180 | candle-transformers/src/models/xlm_roberta.rs:35-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff5a92fc2cb694d372ff388bc8ec8a7fd6cee5d5fee940447e0418b37c60bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:574-598 | candle-transformers/src/models/t5.rs:704-728 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3536cfe2397d75771ab6e2dc92fcde6c09301ce150f74504528f5093c96c54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:760-784 | candle-transformers/src/models/t5.rs:914-938 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1b32cc5fad8e45ff15dd7d235faafd3ffe6c8b761785da4dc98e6134605210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): candle-nn/src/rotary_emb.rs:263-286 | candle-nn/src/rotary_emb.rs:556-579 | candle-nn/src/rotary_emb.rs:831-854 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d472898a8127414a11019e89c4d5fc36e7e8eb249f5a28f46b649e40246347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): candle-core/src/quantized/cuda.rs:140-163 | candle-core/src/quantized/cuda.rs:200-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/cuda.rs:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2ab13726ee4e8c95d1419f94bcab4a86427e991cc866a6aec63397e97be203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:932-955 | candle-core/src/quantized/k_quants.rs:991-1014 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:932\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"04473af9d1d811b0cdb61ac6e2b80764ce900cbc325163ead05a70a04d4af1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): candle-transformers/src/models/codegeex4_9b.rs:224-247 | candle-transformers/src/models/glm4.rs:245-268 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/codegeex4_9b.rs:224\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e017ce8ea27288ff28e181f08986a66862782e024ccc9b28a0165249f2eb5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): candle-transformers/src/models/gemma2.rs:301-324 | candle-transformers/src/models/gemma3.rs:340-363 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma2.rs\u0060 and \u0060candle-transformers/src/models/gemma3.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 235 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma2.rs:301\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdea746fd748720c1ba5155bb0ba319c4e1095ee7d0660216365b7ccdc8f9253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): candle-transformers/src/models/gemma3.rs:478-501 | candle-transformers/src/models/gemma4/text.rs:589-609 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma3.rs\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"749e1343d1c723ce0652c51e023588d0b75ce7809f9e642518c7be6be86844dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): candle-transformers/src/models/stable_diffusion/mod.rs:159-180 | candle-transformers/src/models/stable_diffusion/mod.rs:242-263 | candle-transformers/src/models/stable_diffusion/mod.rs:311-333 | candle-transformers/src/models/stable_diffusion/mod.rs:410-431 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/mod.rs:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/stable_diffusion/mod.rs:158\u0060 calls \u0060bc\u0060 and \u0060candle-transformers/src/models/stable_diffusion/mod.rs:241\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":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"446e571e82968b1338225c4c20decb205f9ff45213c325f302fdeb37ce67ebc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:1531-1553 | candle-core/src/metal_backend/mod.rs:1580-1602 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:1531\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7f7d400de0d869b92a29bc10c0031767d0651268c46f1036a7efe95ab670e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-core/src/quantized/neon.rs:1212-1234 | candle-core/src/quantized/neon.rs:1977-1999 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:1976\u0060 calls \u0060vdupq_n_s8\u0060 and \u0060candle-core/src/quantized/neon.rs:1211\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fdbd159f1b6ca1a92393628b105354ad60c41de95ed261d660e4895d0fe3e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:86-108 | candle-flash-attn-v3/src/lib.rs:520-542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf16d962d949fd29eef8672b80466d0c61713bc56bfd51ca380a02985208b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:457-479 | candle-flash-attn/src/lib.rs:477-499 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e8ce6a4653b65b81a2fa901388a0079f75def7679b4037fd1094e5953f74eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:291-319 | candle-transformers/src/models/t5.rs:420-448 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:291\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7aa15303c57a8349a3d4e70cafee7602254bbf518297098cb5fdf7816cfa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:712-734 | candle-transformers/src/models/t5.rs:862-884 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:712\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c6f90aa5ca190e7e5cf1a6bdfdf7d70c04e10e9ac480602b4a951efcf13745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-transformers/src/models/qwen3_vl/mod.rs:94-116 | candle-transformers/src/models/qwen3_vl/mod.rs:143-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/qwen3_vl/mod.rs:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3_vl/mod.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19155f7d44a6671731ed0d251995a3315627bd1068e9d329659879b4b871ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/mod.rs:78-100 | candle-transformers/src/models/stable_diffusion/mod.rs:147-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/mod.rs:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbfedef7d50bee40dc2ce2905dfdca17eba44bd9e61e2744419c3c1bf1981e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:64-86 | candle-wasm-examples/whisper/src/audio.rs:58-80 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6605fd0e95b04bc5b69cb93282830503c969a23ade1a9f59e255dfae622a4020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): candle-nn/src/attention/cpu_flash/standard.rs:181-202 | candle-nn/src/attention/cpu_flash/standard.rs:282-303 | candle-nn/src/attention/cpu_flash/standard.rs:357-378 | candle-nn/src/attention/cpu_flash/standard.rs:464-485 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/standard.rs:181\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c64004b2bd9783c3c53cba9ff9086a06cb7cddd7cf76ff39ad2f59bd2ae974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): candle-core/src/quantized/neon.rs:1095-1116 | candle-core/src/quantized/neon.rs:1549-1570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1095\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ac383877fec8d278aef5fb02f09e6af05a0d00c24b4f27e30816e1a088a3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201322 lines \u00D7 2): candle-core/src/quantized/neon.rs:3859-3874 | candle-core/src/quantized/neon.rs:3885-3906 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:3859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16c1b5b875c36c4d675acba46c3df348c146e174ffb1664f4ea2f245ffe965f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:258-279 | candle-nn/src/attention/cpu_flash/causal.rs:663-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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1184cda136d7af22435ea181ebee28dd905101a15fc5d5b86ee7a2949f790950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:80-101 | candle-transformers/src/models/quantized_blip_text.rs:76-97 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dafc5f5c8c3396ecc8da6418bbc9a1cffe6d5680f9859367ba8c61d97d1be34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/codegeex4_9b.rs:166-190 | candle-transformers/src/models/glm4.rs:187-211 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/codegeex4_9b.rs:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4711118ac07799072724c4db234bb58c2e52f36c749ba520a534f5ab6f436905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:542-577 | candle-transformers/src/models/flux/quantized_model.rs:381-416 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/flux/model.rs:542\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9693b8fcc8ccb1aede0409e31a936f7b0097ee39bce03e87f44f841d4d9c361e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): candle-transformers/src/models/gemma4/text.rs:425-446 | candle-transformers/src/models/gemma4/vision.rs:328-349 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma4/text.rs\u0060 and \u0060candle-transformers/src/models/gemma4/vision.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma4/text.rs:425\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66c851cd9680d84d030757ceda43e4b8473e4b0d9d403a6195c8c31ae1bb8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): candle-core/src/quantized/neon.rs:603-623 | candle-core/src/quantized/neon.rs:764-784 | candle-core/src/quantized/neon.rs:2765-2785 | candle-core/src/quantized/neon.rs:3054-3074 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:603\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:601\u0060 calls \u0060vdupq_n_u8\u0060 and \u0060candle-core/src/quantized/neon.rs:762\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05542f190a655dadb9af1943919f55cd7db174e310165c16f49906282c862f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): candle-core/src/quantized/neon.rs:696-716 | candle-core/src/quantized/neon.rs:869-889 | candle-core/src/quantized/neon.rs:2987-3007 | candle-core/src/quantized/neon.rs:3129-3149 \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"562ef03c89def8080b8b0f0f5c6d99d103bb5916b524e659f7bc6da1ce08c90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): candle-metal-kernels/src/kernels/reduce.rs:159-179 | candle-metal-kernels/src/kernels/reduce.rs:218-238 | candle-metal-kernels/src/kernels/reduce.rs:281-301 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-metal-kernels/src/kernels/reduce.rs:159\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e31a16959662261791822c4e64721dab5e0c0664f0858e6c3ae406e981dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): candle-transformers/src/models/glm4_new.rs:333-352 | candle-transformers/src/models/qwen3_moe.rs:303-322 | candle-transformers/src/models/smol/smollm3.rs:397-417 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67007732840b7efbf1203daf4903358db5e14b9f899d0eef120604460e03ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1541-1574 | candle-core/src/cpu_backend/mod.rs:1632-1665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1541\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd7c3a9939261ba507f61facba49e64d01edd849a32e154051d5d24ff15f282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:1283-1303 | candle-core/src/metal_backend/mod.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:1283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc57fa0a8c3cce8f629413bf14d81056af7e8321b27f3d125f0031e4d0d093f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-transformers/src/models/qwen3_vl/mod.rs:118-138 | candle-transformers/src/models/qwen3_vl/mod.rs:167-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/qwen3_vl/mod.rs:118\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen3_vl/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a561ed4670bc9e5afae73bbdb73d052ebb278c0cab8df2f5b8aa376df4f8e837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:107-131 | candle-transformers/src/models/whisper/quantized_model.rs:104-128 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1128e83bdde450951d2ae050b68009057ca8a81d2d249da8ce0ddbf822c5c1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:240-267 | candle-transformers/src/models/whisper/quantized_model.rs:236-263 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"967ce1c716544ea87f034c9a410901d2ed76b52822f63e42e4c352a307b2cff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 3): candle-nn/src/rotary_emb.rs:28-55 | candle-nn/src/rotary_emb.rs:328-355 | candle-nn/src/rotary_emb.rs:619-642 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/rotary_emb.rs:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f007a2aa2bff4eb2d5c781e03aee147c48e0d7a0be9966ea3360d2e03e28ff36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201320 lines \u00D7 6): candle-core/src/quantized/avx.rs:475-494 | candle-core/src/quantized/avx.rs:562-581 | candle-core/src/quantized/k_quants.rs:1518-1519 | candle-core/src/quantized/k_quants.rs:1783-1784 | candle-core/src/quantized/neon.rs:3505-3508 | candle-core/src/quantized/simd128.rs:223-224 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/k_quants.rs\u0060 and \u0060candle-core/src/quantized/simd128.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b853f36f8d3a403f255b2f6eab77150cd642ae44369d5a19a2a8875b88b05f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:345-364 | candle-core/src/quantized/k_quants.rs:556-574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:345\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8d2e433e91553941f01e4615700785c08f1984a23efad47c982fbf89032ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): candle-core/src/quantized/repack_x86.rs:101-120 | candle-core/src/quantized/repack_x86.rs:628-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack_x86.rs:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27929448107a7ae28510f1a8e321412014b2aca57939e61948aab6b2c84dbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:170-189 | candle-flash-attn/src/lib.rs:147-166 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b25d067010d3601416835f76b4c1bbbf19c7b00ca3dc5e16dd3419b3acce67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:614-632 | candle-flash-attn/src/lib.rs:710-729 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:614\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d850354043e9c4004c96a168e66e2f1c5d693b089f5ad4cc296d5967f15288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-transformers/src/models/chatglm.rs:35-54 | candle-transformers/src/models/codegeex4_9b.rs:44-63 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ca43a204f591b8cb644053da8664ff36bb51130ff359bf28e5ce220cb85b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-transformers/src/models/falcon.rs:51-70 | candle-transformers/src/models/falcon.rs:91-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/falcon.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b263cca737eac806d6a1a3d373047a1c7520bcb5be899546402858ca8fab39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:272-291 | candle-transformers/src/models/flux/quantized_model.rs:111-130 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c5d56c6a067e771b35ae06c3364bc998554c40ea1d3107b8e54bf58918c4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:130-169 | candle-transformers/src/models/recurrent_gemma.rs:363-402 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b611a5b2b8f8c8f974580627169f8373d21f2d106f33346bfd43c47bdf20c738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v6.rs:136-194 | candle-transformers/src/models/rwkv_v6.rs:114-172 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 and \u0060candle-transformers/src/models/rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v6.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5508af3827c3b28ada7c31e070158eb52f2caa45782ec53cb8db5359724bbfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:224-243 | candle-transformers/src/models/t5.rs:353-372 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3075c4777557fcae92bf62920ed6ad61baeaf1ede7649402f647da0fb98ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-transformers/src/object_detection.rs:39-58 | candle-wasm-examples/yolo/src/model.rs:794-813 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/object_detection.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc99300b0ae1d2ce880bc21cc62bd68afbdb1c0e4fa10d68753234cdc0867b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:430-448 | candle-transformers/src/models/codegeex4_9b.rs:451-469 | candle-transformers/src/models/glm4.rs:472-490 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"476f2baadc334a0a646500e9c7cdec935e038abfda5223998c832a45ef25e5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): candle-transformers/src/models/stable_diffusion/ddim.rs:100-117 | candle-transformers/src/models/stable_diffusion/ddpm.rs:56-74 | candle-transformers/src/models/stable_diffusion/euler_ancestral_discrete.rs:101-118 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DDIMSchedulerConfig\u0060 in one and \u0060DDPMSchedulerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/stable_diffusion/ddpm.rs:78\u0060 calls \u0060min\u0060, \u0060rev\u0060, \u0060collect\u0060 and \u0060candle-transformers/src/models/stable_diffusion/ddim.rs:118\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":"candle-transformers/src/models/stable_diffusion/ddim.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f2159f48cf1ec9edb213c43995f5538c71d96e125c6c4e15acc16a41093f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:2290-2308 | candle-core/src/metal_backend/mod.rs:2330-2348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:2290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7e031d7b4a21d3aa9f2116df63cb2c0b9beca5c2f1a29f4e8a9e5f9a82a7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-core/src/quantized/fast_mmq.rs:259-277 | candle-core/src/quantized/fast_mmvq.rs:170-188 \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":"candle-core/src/quantized/fast_mmq.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97c075a89c5382826850a129bff49d97b96eb4fc452d4c58b3c2231e017a1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-onnx/src/eval.rs:1724-1743 | candle-onnx/src/eval.rs:1752-1771 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:1724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca1ec72fca94f8c1ce8f2b80f73d0be52e139afdaa264ea1ea724534a9fe42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/bert.rs:80-98 | candle-transformers/src/models/bert.rs:104-122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"29de59577b2406a12557117a8d9d644d7d6ed6b790077d6a9f91be204174b2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/chinese_clip/text_model.rs:48-66 | candle-transformers/src/models/chinese_clip/text_model.rs:72-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/text_model.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58ea9152d33d2206b9f423008bbcb8cfd49f92ccf3fd8daaf54b2dac58a3f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:86-110 | candle-wasm-examples/llama2-c/src/worker.rs:167-191 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c_weights.rs:86\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd94285d9d424261bb7215478cc7e5c6be6da00e118a97c3afd53f42b4017d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/quantized_glm4.rs:218-236 | candle-transformers/src/models/quantized_qwen3_moe.rs:137-155 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3_moe.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a6192faa69ca427470b5e8b7e27270742c7823228c049084ca5a3847cc08cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:410-428 | candle-transformers/src/models/recurrent_gemma.rs:641-659 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"9866556d02a29a1c2a9e76c57a2a74eb6e8bea60af1d55fc573d3a32d4553842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/resnet.rs:99-117 | candle-transformers/src/models/resnet.rs:211-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/resnet.rs:99\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41622fecc614f95255b814d5d558c1536f46e283a0f4ecabd5dee42684e594d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/attention.rs:175-193 | candle-transformers/src/models/wuerstchen/attention_processor.rs:89-107 \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 \u0060candle-transformers/src/models/stable_diffusion/attention.rs:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/attention.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5444a26412a3fb4e58c0d16b3651c79ff9ba5fd7e72c9ba5c0e3dbb2be4ef64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): candle-transformers/src/models/vgg.rs:154-170 | candle-transformers/src/models/vgg.rs:200-217 | candle-transformers/src/models/vgg.rs:250-267 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/vgg.rs:154\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/vgg.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cb86621e1cc00dac1701106dc15820a36e601387fb49cc478ac86256c0ddd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-core/src/cpu/avx.rs:295-312 | candle-core/src/cpu/neon.rs:501-518 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d155bf821b74a86d6e14e0a4557016e44969032d5716ecc6e824f3de11f63b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-core/src/cpu/avx.rs:374-391 | candle-core/src/cpu/simd128.rs:261-278 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/simd128.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead7cb6e771068e4c00ce7e06ccce208173d88a55611179f7144dcbb151f3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1590-1609 | candle-core/src/cpu_backend/mod.rs:1708-1727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1590\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6fd1897c4a94a948ebc7a28aecc0cfa6512412f9b42457b84654bce1c28717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:2628-2645 | candle-core/src/quantized/k_quants.rs:2654-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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b8a07d713d9514bfeb688d65ed32192649472655fc566fcc891f014befc47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:348-365 | candle-nn/src/attention/cpu_flash/causal.rs:764-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:762\u0060 calls \u0060min\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:346\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09a2ec0257e9bded6971fbadfc48b1ab465e07ad1d9f9c35439b4431879e0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): candle-transformers/src/models/fastvit.rs:260-275 | candle-transformers/src/models/mobileone.rs:191-208 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/fastvit.rs\u0060 and \u0060candle-transformers/src/models/mobileone.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mobileone.rs:191\u0060 it begins part-way through the construct above it, so those exact 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":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"de927014763caa92e066e9f2f5bf24d74be57afa37646b8320f70f62b05dbbf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:404-439 | candle-transformers/src/models/flux/quantized_model.rs:243-278 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce22448ae4bf1f6336e5b5b287bdaee41f56ba0de9615c500bfd8298736e4909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201318 lines \u00D7 4): candle-transformers/src/models/gemma.rs:242-244 | candle-transformers/src/models/gemma2.rs:239-256 | candle-transformers/src/models/gemma3.rs:262-279 | candle-transformers/src/models/gemma4/text.rs:359-361 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:242\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/gemma2.rs:238\u0060 calls \u0060flash_attn\u0060, \u0060is_some\u0060, \u0060transpose\u0060 and \u0060candle-transformers/src/models/gemma.rs:242\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5628ddb14f9bc716fba41e55c846d1ba9fff2d819bbb70a949e9e5daa894fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): candle-transformers/src/models/quantized_glm4.rs:438-455 | candle-transformers/src/models/quantized_qwen3.rs:546-561 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_glm4.rs:438\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"983297764e974af449114bfe7c838c92baa5ef2a587c1c29427c7776b3620f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:315-332 | candle-transformers/src/models/recurrent_gemma.rs:548-565 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs:315\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e72ac212d408afe9d246aa900a92e983466e668f06ba70bf9fb79053baac32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): candle-transformers/src/models/segment_anything/sam.rs:66-83 | candle-transformers/src/models/segment_anything/sam.rs:98-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/segment_anything/sam.rs:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f1622b7cf024d02204d7ae4cdace14650e635e864122c78da3261891da791d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): candle-transformers/src/models/glm4_new.rs:333-348 | candle-transformers/src/models/quantized_glm4.rs:432-447 | candle-transformers/src/models/qwen3_moe.rs:303-318 | candle-transformers/src/models/smol/smollm3.rs:397-413 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:333\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_glm4.rs:431\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/glm4_new.rs:332\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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2f0a87796bb852aca54a62d1440d40f3ae2711fce7ecf6a3337df84dc0e94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): candle-transformers/src/models/paddleocr_vl/mod.rs:526-541 | candle-transformers/src/models/paddleocr_vl/mod.rs:586-602 | candle-transformers/src/models/paddleocr_vl/mod.rs:651-666 | candle-transformers/src/models/paddleocr_vl/mod.rs:856-871 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:526\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:873\u0060 calls \u0060apply_repetition_penalty\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:543\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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"54398094dfd527c5e52219e7a2212cdb91102e97a22ffcb8a0fe292ea9802be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:226-243 | candle-transformers/src/models/quantized_rwkv_v6.rs:273-290 | candle-transformers/src/models/rwkv_v5.rs:273-290 | candle-transformers/src/models/rwkv_v6.rs:247-264 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0165dabc46f95cfb7e5bfb02fd52c3ddc987c1ac8d23b655074e847a75a24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:272-288 | candle-transformers/src/models/quantized_rwkv_v6.rs:319-335 | candle-transformers/src/models/rwkv_v5.rs:319-335 | candle-transformers/src/models/rwkv_v6.rs:293-309 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:272\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb082320ab4085b268358cd844ca095ea5e4c3b9bc4bab932d2878c0cc895487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): candle-core/src/cpu/avx.rs:316-332 | candle-core/src/cpu/neon.rs:521-537 | candle-core/src/cpu/simd128.rs:206-222 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9dad1d56cb5e45d84d46c0799facbaeec83a036494b0c1846943e07c905d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:214-230 | candle-transformers/src/models/codegeex4_9b.rs:235-251 | candle-transformers/src/models/glm4.rs:256-272 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:214\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"692a2501b796a7ffd423a8cfd17528e2f37ec851bd6a962cf94aa41cbadf55b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:343-359 | candle-transformers/src/models/codegeex4_9b.rs:364-380 | candle-transformers/src/models/glm4.rs:385-401 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bf3153433a3b135de50356536ed66dd7e8c8c18183c1e95856bb6525200b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-core/src/cpu/avx.rs:336-352 | candle-core/src/cpu/simd128.rs:225-241 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/simd128.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e791430c3534368d26852a4ecc73ae5e57bcfa19625c0825f1761864213adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-metal-kernels/src/kernels/affine.rs:125-141 | candle-metal-kernels/src/kernels/affine.rs:191-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/affine.rs:125\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0e5752e4acd57176816a511eec1d4901e19df627c1b9386cce98595b6a1e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:40-56 | candle-transformers/src/models/quantized_blip_text.rs:36-52 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f634c0936800f1811bfa1d80a6c810a8ad48a97142514069f571e9c79d82b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/gemma3.rs:399-417 | candle-transformers/src/models/gemma4/text.rs:487-505 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma3.rs\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma3.rs:399\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ce946d6c3d6bcfb68f84f36b099411ae3bd408ba14421a72afe6a290a92cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:431-447 | candle-transformers/src/models/t5.rs:561-577 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:431\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"946b9ed7cf83a62cb299328e90fad1a6642a563cd539bc7b09b871b77960fc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): candle-transformers/src/models/paddleocr_vl/mod.rs:543-558 | candle-transformers/src/models/paddleocr_vl/mod.rs:604-619 | candle-transformers/src/models/paddleocr_vl/mod.rs:668-683 | candle-transformers/src/models/paddleocr_vl/mod.rs:874-889 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:543\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:873\u0060 calls \u0060apply_repetition_penalty\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:542\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4570a43f57017dca93b87bce6ccc7e740f56b4b28deee0862e4196819b5a0c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): candle-core/src/quantized/fast_mmvq.rs:237-252 | candle-core/src/quantized/fast_mmvq.rs:271-286 | candle-core/src/quantized/fast_mmvq.rs:305-320 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/fast_mmvq.rs:237\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/fast_mmvq.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca8c2b996e7a6edb3cc2da36809bd71012bc58125fb9757cc1dd3c612ac251e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): candle-transformers/src/models/beit.rs:319-335 | candle-transformers/src/models/dinov2.rs:306-322 | candle-transformers/src/models/eva2.rs:347-363 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebf4722344a1e66c060edd5064ff265117a6aea59087e8b44f885ddc5024bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:558-572 | candle-transformers/src/models/codegeex4_9b.rs:579-594 | candle-transformers/src/models/glm4.rs:600-615 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19b86bbbc31b8ea7c3ff9833513cb651960e1ad09848a31ccdcea3c5c93c711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): candle-transformers/src/models/mistral.rs:49-64 | candle-transformers/src/models/mistral.rs:69-84 | candle-transformers/src/models/mistral.rs:88-103 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e170d68a07082663f837708939ebfdc2e3ef68af94f9db674f42c89fd75859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/quantized/cuda.rs:819-834 | candle-core/src/quantized/metal.rs:238-253 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/cuda.rs\u0060 and \u0060candle-core/src/quantized/metal.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":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"d771b820c256fc9593c1dfd15d0620130645da56c1c5b27791a12c6ef460a5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1602-1617 | candle-core/src/quantized/k_quants.rs:1668-1683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1602\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"43228dc2195e6d7efda4b26013bbbaa7ae6eda0d134fa64dae4de91f89077b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/quantized/neon.rs:1250-1265 | candle-core/src/quantized/neon.rs:1997-2012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba0b21e9e8fd0a66636e4e7aae92342a283575c0effc5119cbf9fd1f1ad43ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/quantized/simd128.rs:36-51 | candle-core/src/quantized/simd128.rs:76-91 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/simd128.rs:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"081db09cd314e5817b992354d294226651e0d179f7a70334aab11237fa0168b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/tensor.rs:1639-1654 | candle-core/src/tensor.rs:1828-1843 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:1639\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"008e2acff49a116e1b09ab3bdaa568d28b63dca03875c639069269e90560bd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-flash-attn/src/lib.rs:893-908 | candle-flash-attn/src/lib.rs:950-965 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn/src/lib.rs:893\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"0116d00d3d093957e73c7d944f8997cb89c6a27ae77f9c9fddcb21a4f8564a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-flash-attn/src/lib.rs:1061-1076 | candle-flash-attn/src/lib.rs:1120-1135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn/src/lib.rs:1061\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4816214d105927dbcdf5707242b71cd7e7d0df3398235c6b7041912aedb2112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): candle-metal-kernels/src/kernels/sdpa.rs:316-330 | candle-metal-kernels/src/kernels/sdpa.rs:433-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":"candle-metal-kernels/src/kernels/sdpa.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b33f51fe4ea32b1ecfd2f51e003750a0ec041981b56ba6b18d992e11b471c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:224-239 | candle-nn/src/attention/cpu_flash/standard.rs:400-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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"860cbbb92c03d8dcdc2e0fd7562920f83daa279db79f4fd41ce871c13edb8ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-onnx/src/eval.rs:157-172 | candle-onnx/src/eval.rs:175-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acb1fcd9c5e87eb2a27fb45d9d681d664dbc84ea28a6ad262c8e2c1633da817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/bert.rs:483-498 | candle-transformers/src/models/distilbert.rs:322-337 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:483\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b051b1738275af83fc518f99111cfc14aa5e63ce88396c68733eae2269b63694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/encodec.rs:498-513 | candle-transformers/src/models/mimi/conv.rs:295-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"1610379a11c8f61b6b76dbc995ecff09ab12987af625bd5f2797280117e333c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:57-72 | candle-wasm-examples/llama2-c/src/worker.rs:116-131 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c_weights.rs:57\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a1bc61c2ffa69f28c0df74b1fd02ed6c066b10a40de73db56b40e29ca09fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:389-404 | candle-transformers/src/models/quantized_mixformer.rs:304-319 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba2cb0e78e5122d4743b7c76520bf470c81afc076a9116902583f5b8da74023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): candle-transformers/src/models/mpt.rs:88-128 | candle-transformers/src/models/quantized_mpt.rs:65-105 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mpt.rs:88\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c9310c504b8c891d3ca26f9b2c1e58119edbf025808cfdf61381fa56749c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:101-116 | candle-transformers/src/models/siglip.rs:544-555 \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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12a948fe1d7c4ab7d0aa5ae9239d25025681d5f168c89d61a4c4ae3aef0820b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201316 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:132-147 | candle-transformers/src/models/quantized_rwkv_v6.rs:183-184 | candle-transformers/src/models/rwkv_v5.rs:183-198 | candle-transformers/src/models/rwkv_v6.rs:161-162 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:132\u0060 calls \u0060reshape\u0060, \u0060transpose\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs:183\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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1466421d376f5b4229a30384a73ac771c17859932afffcd245694ed69c867d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201316 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:183-198 | candle-transformers/src/models/quantized_rwkv_v6.rs:230-245 | candle-transformers/src/models/rwkv_v5.rs:233-234 | candle-transformers/src/models/rwkv_v6.rs:207-208 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:183\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:183\u0060 calls \u0060linear\u0060, \u0060pp\u0060 and \u0060candle-transformers/src/models/rwkv_v5.rs:233\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b914f61a4d81369f3c379494920b4100f9ce7883717314236070729c1b427fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): candle-transformers/src/models/quantized_stable_lm.rs:81-107 | candle-transformers/src/models/stable_lm.rs:202-229 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_stable_lm.rs:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e4a45cebc99172b20f8818a7a243471c32cda4296a8d6afae052956bd214ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): candle-transformers/src/models/quantized_stable_lm.rs:130-159 | candle-transformers/src/models/stable_lm.rs:253-282 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_stable_lm.rs:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb14fad86ea82b129a3b1826cbff2d4a83fb5cfd5fdccf1bac3b5d4c77d423e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201316 lines \u00D7 3): candle-transformers/src/models/mixtral.rs:300-303 | candle-transformers/src/models/qwen2_moe.rs:264-279 | candle-transformers/src/models/qwen3_moe.rs:126-139 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/qwen2_moe.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/qwen2_moe.rs:264\u0060 calls \u0060reshape\u0060 and \u0060candle-transformers/src/models/mixtral.rs:300\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a91e78d13aa3d7315cd969a21a61150e957b5977b0fe2e8173df30516ec84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/mod.rs:342-357 | candle-transformers/src/models/stable_diffusion/mod.rs:437-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/mod.rs:342\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51362d4466e7f9f62d668a1bc1b07cc1f057314e6f99cbaadf80085db04fe32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): candle-core/src/quantized/neon.rs:724-738 | candle-core/src/quantized/neon.rs:897-911 | candle-core/src/quantized/neon.rs:1173-1187 | candle-core/src/quantized/neon.rs:1931-1945 | candle-core/src/quantized/neon.rs:2718-2732 | candle-core/src/quantized/neon.rs:3015-3029 | candle-core/src/quantized/neon.rs:3156-3170 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecc4ca842a1017f0e1a9dbec1404af7dc485b0eadfc0578ce143aab3f3ec1d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): candle-transformers/src/models/quantized_mistral.rs:126-140 | candle-transformers/src/models/qwen2.rs:139-153 | candle-transformers/src/models/qwen2_moe.rs:146-160 | candle-transformers/src/models/yi.rs:178-192 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_mistral.rs\u0060 and \u0060candle-transformers/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 210 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_mistral.rs:126\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mistral.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"002f275233277a5beeaf70bc25e003a8177f296925981f27bd91b17fcb2c3b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): candle-core/src/cpu/avx.rs:356-370 | candle-core/src/cpu/neon.rs:561-575 | candle-core/src/cpu/simd128.rs:244-258 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce85e2089ac84120888c4051baba358f52df4d56d92b2a97451d26481c4afc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:164-178 | candle-transformers/src/models/codegeex4_9b.rs:182-196 | candle-transformers/src/models/glm4.rs:203-217 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ef6b5fa40ce138935989df92ad4ce258e92f328193d34e30ee2cbdeaa65c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): candle-transformers/src/models/granite.rs:406-422 | candle-transformers/src/models/llama.rs:453-469 | candle-transformers/src/models/voxtral/voxtral_llama.rs:377-393 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026VoxtralLlamaConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b4f4d36a244502b36e9e8486cbc1aaf731afbfd9caa11c19507265b902343d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1065-1076 | candle-core/src/cpu_backend/mod.rs:1293-1307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1065\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cbbfe2127c97e64758bd58858b5bbe05b7c4a2255ef9f38df8dd5774800fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-core/src/cuda_backend/cudnn.rs:38-52 | candle-core/src/cuda_backend/cudnn.rs:137-151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/cudnn.rs:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/cudnn.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f207295e93e321530496ae70cdc084ff0a73314837b6bcb0e4de05ef55dc7fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): candle-core/src/quantized/neon.rs:159-172 | candle-core/src/quantized/neon.rs:191-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:159\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1405a720d6e05c82d19dfa1c02ae46c991fb69d57715036890b1345644f2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): candle-core/src/quantized/neon.rs:2323-2344 | candle-core/src/quantized/neon.rs:2460-2481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b3c9023a6cb8d5a06b1de94b4f1d1f0693d2123771dac47ff8613561f7780d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): candle-core/src/sort.rs:25-38 | candle-core/src/sort.rs:40-54 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/sort.rs:40\u0060 it begins part-way through the construct above it, so those exact 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":"candle-core/src/sort.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c7e7440f769e952b84ff46f0bf6c296e8ebe8decac6dffc9b6f9692b05f1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-datasets/src/batcher.rs:73-87 | candle-datasets/src/batcher.rs:122-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/batcher.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25fb73927625dfd1254c05ba458ee40164e923f324e569ede3d9aca93e797b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/fused_moe.rs:96-110 | candle-transformers/src/fused_moe.rs:233-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/fused_moe.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff5ff90d65085bfabebd9c7c1df3c84c0468b0c8069d1ba1ab383d5fdea7b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:263-277 | candle-transformers/src/models/quantized_blip_text.rs:259-273 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c64096aae7146fe2ca2ca7c4b14ff1e00805416b1722f6c3b7f72354d75fc7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): candle-transformers/src/models/chinese_clip/vision_model.rs:186-200 | candle-transformers/src/models/clip/text_model.rs:153-166 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chinese_clip/vision_model.rs:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0761e4f2c0c537ebc3bd8432ba8d2120bb8b6d3702432d4195406c7960d87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:371-395 | candle-transformers/src/models/flux/quantized_model.rs:210-234 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"445f6a1f76b8b216bbaca86c97dd77540023328244bf8656f172bebb224ee4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:592-625 | candle-transformers/src/models/flux/quantized_model.rs:431-464 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4fe682ae2fe009400e8e693608855426103b1e303ad1d1c1a05819b98ed3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/mmdit/blocks.rs:41-56 | candle-transformers/src/models/mmdit/blocks.rs:127-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mmdit/blocks.rs:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5570df214f4e5dc5c4520ac50cc4da0c3593a3bf67b089d56f849657a8bd0d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:393-407 | candle-transformers/src/models/paddleocr_vl/text.rs:644-658 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/text.rs:393\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fced800791aa58e39e16f96ddc4ffc302034755c1e32952794e7c258d795a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:1007-1022 | candle-transformers/src/models/qwen3_vl/text.rs:214-229 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 and \u0060candle-transformers/src/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 4 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"95147aea72b0595f7bce9461b9a4b52a6bca566d23611f19b9b749ed3c471c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:188-208 | candle-transformers/src/models/recurrent_gemma.rs:421-441 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1423d4c1e376550291e11602dee3a38d88ff8ffebf6e12eff55b084d5d4f455f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:736-749 | candle-transformers/src/models/t5.rs:889-903 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:736\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17719063859f9906c623908d911e33680c02a575dc29808754346ddfda2e37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/uni_pc.rs:394-410 | candle-transformers/src/models/stable_diffusion/uni_pc.rs:507-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/uni_pc.rs:394\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70919c52398870489cabe1c85c59952e6ecc1f5ffbb4697baa1da013e2a33a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:129-149 | candle-wasm-examples/whisper/src/audio.rs:120-139 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/whisper/audio.rs:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9800c0b2cc8ad6845bbfa31c7fa64de2cdddb1795d5df08ddcb2c366179d9e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:40-58 | candle-transformers/src/models/whisper/quantized_model.rs:37-55 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"88985ec96149b32ea7d5348b3570fc04b537ec6a58cbca5bc8f583bc9ee8b8a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tensor-tools/src/main.rs:185-199 | tensor-tools/src/main.rs:305-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tensor-tools/src/main.rs:185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tensor-tools/src/main.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61c2f539d189428dd77c0c0cc5c15b8063cbac0e54ec0bba272ee0b1e553870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): candle-transformers/src/models/csm.rs:196-208 | candle-transformers/src/models/helium.rs:203-215 | candle-transformers/src/models/mistral.rs:252-264 | candle-transformers/src/models/nvembed_v2/embedding.rs:134-147 | candle-transformers/src/models/quantized_mistral.rs:151-163 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a4c586c1ff4e0fa82378a9ebd68df0810ce28cfa056de662edeeddec1d8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): candle-transformers/src/models/glm4_new.rs:337-350 | candle-transformers/src/models/quantized_glm4.rs:436-449 | candle-transformers/src/models/quantized_qwen3.rs:544-556 | candle-transformers/src/models/qwen3_moe.rs:307-320 | candle-transformers/src/models/smol/smollm3.rs:402-415 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:337\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b5d43e9309f76c22f72fa2f15e062ee0fcde8fab83ee9518da10bcb2b56841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): candle-transformers/src/models/mixformer.rs:36-49 | candle-transformers/src/models/mixformer.rs:52-65 | candle-transformers/src/models/mixformer.rs:68-81 | candle-transformers/src/models/mixformer.rs:85-98 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15beaa7ab48afba89bead5262eef448635f5b02bc02123f372e1abea875254b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): candle-core/src/cpu/avx.rs:223-236 | candle-core/src/cpu/neon.rs:432-445 | candle-core/src/cpu/simd128.rs:170-183 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/avx.rs:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1daf8ff90b1aeef8d1209c6c2745474328daaef1650048187c89b3fe3c6906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): candle-core/src/quantized/simd128.rs:308-321 | candle-core/src/quantized/simd128.rs:326-339 | candle-core/src/quantized/simd128.rs:345-358 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/simd128.rs:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfad4c4d313299f6a38b6626681fb92c362d7c0c632f25a08046daf78f3b2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): candle-nn/src/rotary_emb.rs:160-184 | candle-nn/src/rotary_emb.rs:465-489 | candle-nn/src/rotary_emb.rs:739-763 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/rotary_emb.rs:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9577eba946c55792a45d2bf54912ac43afc63b31fe9dd0856f3d39f428dea4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): candle-transformers/src/models/chinese_clip/vision_model.rs:178-191 | candle-transformers/src/models/clip/text_model.rs:145-157 | candle-transformers/src/models/stable_diffusion/clip.rs:225-237 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chinese_clip/vision_model.rs:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0af0c4cb912c381eb363de30e3099ae930189e6a78d78322810d1cdb7706e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): candle-transformers/src/models/efficientvit.rs:315-328 | candle-transformers/src/models/fastvit.rs:162-175 | candle-transformers/src/models/mobileone.rs:90-103 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/fastvit.rs\u0060 and \u0060candle-transformers/src/models/mobileone.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36d97c9597773e26075b0a4dd58e9eee2e618b5ef5c56cdb2cb0fceaac8b0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:867-885 | candle-core/src/cuda_backend/mod.rs:915-934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:867\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c8b2733d8be55e9cb8a0234f70856942705f8d331d925c13755d70f8d85cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:227-240 | candle-core/src/metal_backend/mod.rs:283-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:227\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11be3a4420d2dfc4b8fb653f3796fbc47ccf8f5b78ab52fa731d5433ee21d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:665-678 | candle-core/src/quantized/k_quants.rs:774-787 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:665\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8436337d69a6132d7e0aba0cfdc107ba16ba86ccc9b20af5e10300a485f7bb91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): candle-core/src/quantized/mod.rs:575-588 | candle-core/src/quantized/mod.rs:619-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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"3760d298d989cafdae209aa57c7ff5e8f86f164ce75de7ebe3022717ceb653cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): candle-core/src/quantized/neon.rs:1029-1053 | candle-core/src/quantized/neon.rs:1483-1507 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1029\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15393abf1ac4f404be923105f3807c7cc6110508f01bde3fef4e4b9e739a46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-core/src/quantized/neon.rs:2043-2056 | candle-core/src/quantized/neon.rs:2065-2078 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e97b8145d7674c9b6fb81f088dccb8e8d5cf07bf8fcaf4f252a69dfa12ea76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:605-618 | candle-nn/src/attention/cpu_flash/causal.rs:719-732 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"0315a9c88a7fa237fba4227d92951b21c337b84772df77a69561ded596ab51fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:911-923 | candle-nn/src/attention/cpu_flash/standard.rs:419-432 \u2014 before extracting anything, compare \u0060candle-nn/src/attention/cpu_flash/causal.rs\u0060 and \u0060candle-nn/src/attention/cpu_flash/standard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:911\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"718ac73e4a1bc6abddafcac2876caa02eb8325aee547e1933691014eb45ecf84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-nn/src/ops.rs:561-574 | candle-nn/src/ops.rs:800-813 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:561\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ed34b78a8bc27903fe01b015cc7d7063ad74cf62a783d5f1f7b8a6e887efa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-nn/src/var_builder.rs:420-433 | candle-nn/src/var_builder.rs:465-478 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/var_builder.rs:420\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64e9d38eb833b6c9f9396cff3a1262ab1311cbf29deafd6024892f4b59d24fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-transformers/src/models/blip.rs:148-168 | candle-transformers/src/models/quantized_blip.rs:109-129 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be5a82d3672c5aea366f300c473d6b259258093e153c2cdc6eb501320fe468e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): candle-transformers/src/models/clip/text_model.rs:116-129 | candle-transformers/src/models/stable_diffusion/clip.rs:198-210 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/clip/text_model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/clip.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/clip/text_model.rs:116\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f522a4c3efa055c9e9d176226eb28be66a91a94c5e6e63169269981ddc23840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:244-257 | candle-transformers/src/models/flux/quantized_model.rs:83-96 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"327d214b722f6ba64d7a900bc8c6064795728e5371d4a9d310e8aebf2601f548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:461-474 | candle-transformers/src/models/flux/quantized_model.rs:300-313 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/flux/model.rs:461\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c69b34181d3a71e5e2b94f0cdc4e2aca1cc28f010977c7b04fd2db0f1675e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/granite.rs:66-79 | candle-transformers/src/models/llama.rs:68-81 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 309 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/llama.rs:82\u0060 calls \u0060unwrap_or\u0060 and \u0060candle-transformers/src/models/granite.rs:80\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be9ff60067632b4ec2370e9055b47704a7f1db739a84425fd3a2a6d894e310a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/granite.rs:325-338 | candle-transformers/src/models/llama.rs:372-385 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 309 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:325\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75ff7e4cd68a259a7c0f1b6494adc17c8ccf72de82948c864111824ef6757f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/marian.rs:473-486 | candle-transformers/src/models/marian.rs:527-540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/marian.rs:473\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de635a1705241cbb3389e6b08cf72fe20dc4aad4966885dbab79889b574c422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:790-831 | candle-transformers/src/models/quantized_metavoice.rs:93-134 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"476ebfa721afc1e4e88e35d97317252e1d83304ae24c03586fdb990c16cecc67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:931-951 | candle-transformers/src/models/quantized_metavoice.rs:233-253 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060candle-transformers/src/models/quantized_metavoice.rs:254\u0060 calls \u0060contiguous\u0060 and \u0060candle-transformers/src/models/metavoice.rs:952\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0a9be0e63a30cf4439c487ac124897ed2265acf2f4b4f7a5de2fe046caf360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/mimi/conv.rs:81-94 | candle-transformers/src/models/mimi/conv.rs:163-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mimi/conv.rs:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/conv.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"def63508c51131439edc2b67870cf8e0a6f5c649a7cf99fc6b06ec948e8be232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/models/moondream.rs:138-152 | candle-transformers/src/models/quantized_moondream.rs:70-84 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/moondream.rs:138\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/moondream.rs:137\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs:69\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6bc0cd48bcf9628b50fd95edd398235c24da9849c6acc90427c407d0bc4980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/olmo.rs:295-308 | candle-transformers/src/models/olmo2.rs:290-303 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/olmo.rs\u0060 and \u0060candle-transformers/src/models/olmo2.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 205 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/olmo.rs:295\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cb90607b4d52f456892f4d8d07c3ea0f0b62fb2a591df9988ad4f7d2ec8555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/mod.rs:196-209 | candle-transformers/src/models/paddleocr_vl/mod.rs:935-945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf055e4e41ec01d72116aa597cc09cf52f89d89ef189201e34f1c8c67ca0de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:861-873 | candle-transformers/src/models/paddleocr_vl/text.rs:953-966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/paddleocr_vl/text.rs:948\u0060 calls \u0060dim\u0060, \u0060narrow\u0060, \u0060insert\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/text.rs:858\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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"4311a5018e94cce72a665330eaf977a068258e43953d726746e1eb0743e7c2c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): candle-transformers/src/models/quantized_lfm2.rs:158-170 | candle-transformers/src/models/quantized_qwen2.rs:122-135 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_lfm2.rs:158\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b864f675c779c55872a30aa864bd2c47e213583480d79f6c7e94fd911ce304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/quantized_llama.rs:574-587 | candle-transformers/src/models/quantized_qwen2.rs:323-336 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_llama.rs:574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8effd9acab49df66c43e6ccd068a71aeb63f58cb8238321602fe405c411f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 14): candle-transformers/src/models/gemma.rs:300-312 | candle-transformers/src/models/helium.rs:278-290 | candle-transformers/src/models/mistral.rs:327-339 | candle-transformers/src/models/mixtral.rs:370-382 | candle-transformers/src/models/nvembed_v2/embedding.rs:187-199 | candle-transformers/src/models/phi3.rs:314-326 | candle-transformers/src/models/quantized_mistral.rs:218-230 | candle-transformers/src/models/qwen2.rs:230-242 | candle-transformers/src/models/qwen2_moe.rs:363-375 | candle-transformers/src/models/qwen3.rs:372-383 | candle-transformers/src/models/qwen3_moe.rs:236-248 | candle-transformers/src/models/smol/smollm3.rs:323-334 | candle-transformers/src/models/yi.rs:264-275 | candle-transformers/src/models/z_image/text_encoder.rs:336-347 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:300\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextEncoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8668b2b7869514873c164e034751db3dc4c74694c82962d125d8eb91424999a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): candle-transformers/src/models/mixtral.rs:161-173 | candle-transformers/src/models/quantized_mistral.rs:126-138 | candle-transformers/src/models/qwen2.rs:139-151 | candle-transformers/src/models/qwen2_moe.rs:146-158 | candle-transformers/src/models/yi.rs:178-190 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/quantized_mistral.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecdff136dbf6e54db4a2d56ee5a208e8e390f91c20e6831474461e62bb28049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): candle-transformers/src/models/stable_diffusion/mod.rs:111-123 | candle-transformers/src/models/stable_diffusion/mod.rs:186-198 | candle-transformers/src/models/stable_diffusion/mod.rs:269-281 | candle-transformers/src/models/stable_diffusion/mod.rs:341-353 | candle-transformers/src/models/stable_diffusion/mod.rs:436-448 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/stable_diffusion/mod.rs:433\u0060 calls \u0060default\u0060 and \u0060candle-transformers/src/models/stable_diffusion/mod.rs:110\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":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6949d12233f0ac2092986ac8dfa3e27253e605c38fa3c11b581899eb0a411ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): candle-flash-attn-v3/src/lib.rs:47-62 | candle-flash-attn-v3/src/lib.rs:481-496 | candle-flash-attn/src/lib.rs:38-53 | candle-flash-attn/src/lib.rs:520-535 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"551894ce552f2421ae131b94df1cb6c3b5a442940b15f5767f05013b3504cdc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): candle-nn/src/attention/cpu_flash/causal.rs:274-286 | candle-nn/src/attention/cpu_flash/causal.rs:360-372 | candle-nn/src/attention/cpu_flash/causal.rs:679-691 | candle-nn/src/attention/cpu_flash/causal.rs:776-788 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"111850fe503b0cd7c473eff3f93fa3eeff653eded7f431401c724cc28c6a4ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): candle-transformers/src/models/based.rs:550-562 | candle-transformers/src/models/mistral.rs:403-415 | candle-transformers/src/models/quantized_mistral.rs:292-304 | candle-transformers/src/models/starcoder2.rs:307-319 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd9a0f4a23717e831a8763b3e1737ea45984c516e2067265dcfd6a460df161b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): candle-transformers/src/models/beit.rs:266-278 | candle-transformers/src/models/dinov2.rs:217-229 | candle-transformers/src/models/dinov2reg4.rs:210-222 | candle-transformers/src/models/eva2.rs:250-262 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d23789ea3510f7eeaaec779d8f360c7abd6bf42114b25c35de7f193ed1c61c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): candle-transformers/src/models/quantized_gemma3.rs:210-222 | candle-transformers/src/models/quantized_lfm2.rs:151-163 | candle-transformers/src/models/quantized_llama.rs:220-232 | candle-transformers/src/models/quantized_qwen2.rs:115-127 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f06a3dddf010e72ce58774f6d4b8aba816264af6d0f8be8fd80879165505c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): candle-core/src/cuda_backend/mod.rs:2605-2617 | candle-core/src/cuda_backend/mod.rs:2665-2676 | candle-core/src/cuda_backend/mod.rs:2724-2735 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/cuda_backend/mod.rs:2605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd8e8d1ad673c88f0cf679e3d7f7fa65c4528be94e59e405cd79b579c1e307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): candle-core/src/quantized/neon.rs:1062-1074 | candle-core/src/quantized/neon.rs:1376-1387 | candle-core/src/quantized/neon.rs:1516-1528 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1062\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"6699ad165d24160336155a33001c49dbc7d523e7b20de3701997c4f61630b396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:644-656 | candle-nn/src/attention/cpu_flash/causal.rs:752-764 | candle-nn/src/attention/cpu_flash/causal.rs:924-934 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/attention/cpu_flash/causal.rs:644\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9d047ec139bc98680837f7739ecb073ba82247171b7c8a45d570360887936c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:200-212 | candle-transformers/src/models/codegeex4_9b.rs:221-233 | candle-transformers/src/models/glm4.rs:242-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaa07c735c65d862905058e9b34e8b9a6084ea51511de5c833efdecaf4449e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): candle-transformers/src/models/granite.rs:324-336 | candle-transformers/src/models/granitemoehybrid.rs:374-386 | candle-transformers/src/models/llama.rs:371-383 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026GraniteMoeHybridInternalConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a0d88e162ec1ec84bd96760d9156ab4854ecb122681a3bfef9e36ca786194e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): candle-transformers/src/models/quantized_phi.rs:259-270 | candle-transformers/src/models/quantized_phi3.rs:291-302 | candle-transformers/src/models/quantized_qwen2.rs:282-294 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_phi.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_phi.rs:259\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_phi.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bca9238b1aad5e21321dca8cd5022f2846d9ea49d12aac83a2b42fddce6ff0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/backprop.rs:238-250 | candle-core/src/backprop.rs:277-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/backprop.rs:238\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e472968fc1ccb5541325d96cbfdee61435cecc601387660d00e73a7790ba99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): candle-core/src/backprop.rs:672-680 | candle-core/src/backprop.rs:684-696 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/backprop.rs:672\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ef522e0eb608a07f0bf0b5116636d5697d4e3f6039f241036cad853e10ebce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-core/src/cpu/avx.rs:126-141 | candle-core/src/cpu/avx.rs:203-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/avx.rs:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0670726b1fbf11bea4b4260a7ce950a87027a90a4c6858387b725040a67d36cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:595-607 | candle-core/src/cpu_backend/mod.rs:610-622 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cc6d555b9a8691b78bb15a057389d8b32932f78f63653decbb0825f3905e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/cuda_backend/device.rs:466-478 | candle-core/src/cuda_backend/device.rs:620-632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/device.rs:466\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71503d7bdb40698b59288483bcf1389168423469646f5aae9f326037a103161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:208-220 | candle-core/src/metal_backend/mod.rs:264-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:208\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fc88ddf491fe7bb365fd88226282cc578ce862fcee4418d533c150e0719024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): candle-core/src/quantized/cuda.rs:416-428 | candle-core/src/quantized/cuda.rs:485-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/cuda.rs:416\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"2983f3ccb74a7eb4d83ec4a9d5974ac54ec96bfcaf6b46a13cfbe5082b9a24b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/quantized/metal.rs:311-323 | candle-core/src/quantized/metal.rs:378-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":"candle-core/src/quantized/metal.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e884464d3fcb27d0ad6ff7ae17df087e6d52f5028c1310caa8e10c80472896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/quantized/neon.rs:547-559 | candle-core/src/quantized/neon.rs:2922-2934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20e53d0eb6ece39057a5cacf87edd24ef375dee8033308838615538e91bf2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/quantized/neon.rs:1828-1840 | candle-core/src/quantized/neon.rs:2615-2627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d8b3760f16e2ae27d791dcc8fd002ca394bbb54e26f2405b013e915df024fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-metal-kernels/src/kernels/reduce.rs:329-341 | candle-metal-kernels/src/kernels/reduce.rs:415-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/reduce.rs:329\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17740c4e5833deed30ac36ddf56c8a051dc285fdccf20aa85b850e589d32169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): candle-nn/src/moe.rs:66-78 | candle-nn/src/moe.rs:238-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/moe.rs:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/moe.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ccd189ec24ab5e542b9edd24b5199e96084484846f51dced875ce7fc26b4e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/bert.rs:521-533 | candle-transformers/src/models/chinese_clip/text_model.rs:532-544 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b6e1d1cda3f083485204dbcb06ce54f5775044c6892d39fa7cc986c4d51181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/blip.rs:133-145 | candle-transformers/src/models/quantized_blip.rs:94-106 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c35f85bce8618af87761a27336180c28fa6638821265093d603f72555eadb2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/gemma2.rs:436-448 | candle-transformers/src/models/gemma3.rs:517-529 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma2.rs\u0060 and \u0060candle-transformers/src/models/gemma3.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 235 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma2.rs:436\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7988f1664278838ef73a6566dbd4c2d0cd19dbe8f46da0f9c88ca52ea2c9ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/gemma4/mod.rs:104-116 | candle-transformers/src/models/gemma4/mod.rs:154-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma4/mod.rs:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5f2608a88ba3bb71e6743e11f405acddc357ccdfacce97273f6f9dcb90ddff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:160-172 | candle-wasm-examples/llama2-c/src/worker.rs:234-246 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c_weights.rs:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"606f591449c2ff378d3a8ce0032c0fdb8dc21c334646645eaa27cbdbc4662c8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/mimi/seanet.rs:175-187 | candle-transformers/src/models/mimi/seanet.rs:333-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mimi/seanet.rs:175\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d1898bdf770bc105b5dbca290891182da0bb5ccc878861312698a43017e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/mimi/transformer.rs:200-212 | candle-transformers/src/models/mimi/transformer.rs:300-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":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf5a743be0374d0ba3e49fd49059539a90a64e10c450a4eecaeffde0fa2630f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): candle-transformers/src/models/mobilenetv4.rs:378-390 | candle-transformers/src/models/mobilenetv4.rs:617-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mobilenetv4.rs:378\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobilenetv4.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee6578bea028e6e81738c5026ff7a8d4dfd53c4e8da3b9841bf529e9b66b561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/moondream.rs:204-216 | candle-transformers/src/models/quantized_moondream.rs:134-146 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/moondream.rs:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57257a67a1b994971d03128094a8b043a8719b07c862a83c894b4c70fe8087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/mpt.rs:73-85 | candle-transformers/src/models/quantized_mpt.rs:50-62 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mpt.rs:73\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2659b113bb8650fd5bc39a8ca00997a1092d10c7406fdb88d889ae7d14df40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/mpt.rs:130-142 | candle-transformers/src/models/quantized_mpt.rs:107-119 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mpt.rs:130\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec47a5102559600f36c6806cd1cb614fee21455368d81837dbf0f71fc390762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/embedding.rs:157-169 | candle-transformers/src/models/starcoder2.rs:197-208 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 and \u0060candle-transformers/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df4689ce67c792b078e6a9cf3a8fcc1a9c9f8142405d16984c68d5518da3b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201313 lines \u00D7 3): candle-transformers/src/models/olmo.rs:138-150 | candle-transformers/src/models/olmo2.rs:129-130 | candle-transformers/src/models/starcoder2.rs:141-153 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/olmo.rs\u0060 and \u0060candle-transformers/src/models/olmo2.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 205 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/olmo.rs:138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/olmo.rs:136\u0060 calls \u0060linear_b\u0060, \u0060pp\u0060 and \u0060candle-transformers/src/models/olmo2.rs:127\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":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4796744976a1405a89bf11725e08ae1695204029810cd45842cbdd095a5bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): candle-transformers/src/models/quantized_gemma3.rs:417-429 | candle-transformers/src/models/quantized_phi.rs:252-262 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:417\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf2e21fe6d32d5f23f00a15ce785fc344ca311cf496d65bb9b5e50052df1132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): candle-transformers/src/models/quantized_qwen3.rs:114-125 | candle-transformers/src/models/smol/quantized_smollm3.rs:188-200 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/smol/quantized_smollm3.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_qwen3.rs:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2974cb94e1df002909547bb18a003336ee9d98e1c36a350ddb7d71633280c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v5.rs:65-77 | candle-transformers/src/models/quantized_rwkv_v6.rs:80-90 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_rwkv_v6.rs:91\u0060 calls \u0060get\u0060, \u0060dequantize\u0060, \u0060device\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:78\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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"15656bd9e1229a2b0367a24d9caeb6da62a49427910e11e0b0e7e361e811732a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:616-630 | candle-transformers/src/models/t5.rs:746-760 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"831935e7632d5ad850d526a4881d843256369ffe49e9e751cf19c863132a780a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/smol/quantized_smollm3.rs:29-41 | candle-transformers/src/models/smol/quantized_smollm3.rs:48-60 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/smol/quantized_smollm3.rs:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"18db6248506f18071981a7ceee1e808a5515bb3c3c1d11c5d3b62c47b1a81643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:310-322 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:404-416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ce1d20aa47123dde337bd0060f1e4ae1041b0b2a8f8fd745eb5c6abccd31b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 18): candle-transformers/src/models/gemma.rs:299-310 | candle-transformers/src/models/granite.rs:409-419 | candle-transformers/src/models/granitemoehybrid.rs:474-484 | candle-transformers/src/models/helium.rs:277-288 | candle-transformers/src/models/llama.rs:456-466 | candle-transformers/src/models/mistral.rs:326-337 | candle-transformers/src/models/mixtral.rs:369-380 | candle-transformers/src/models/nvembed_v2/embedding.rs:186-197 | candle-transformers/src/models/phi3.rs:313-324 | candle-transformers/src/models/quantized_mistral.rs:217-228 | candle-transformers/src/models/qwen2.rs:229-240 | candle-transformers/src/models/qwen2_moe.rs:362-373 | candle-transformers/src/models/qwen3.rs:371-381 | candle-transformers/src/models/qwen3_moe.rs:235-246 | candle-transformers/src/models/smol/smollm3.rs:322-332 | candle-transformers/src/models/voxtral/voxtral_llama.rs:380-390 | candle-transformers/src/models/yi.rs:263-273 | candle-transformers/src/models/z_image/text_encoder.rs:335-345 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:299\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026GraniteMoeHybridInternalConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ea49e2d920914f260b1b49c87c5356232cf6d37c95ee0513568659da897ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 10): candle-transformers/src/models/mixtral.rs:230-239 | candle-transformers/src/models/olmo.rs:212-221 | candle-transformers/src/models/olmo2.rs:200-209 | candle-transformers/src/models/quantized_mistral.rs:189-198 | candle-transformers/src/models/quantized_stable_lm.rs:168-177 | candle-transformers/src/models/qwen2.rs:201-210 | candle-transformers/src/models/qwen2_moe.rs:208-217 | candle-transformers/src/models/stable_lm.rs:298-307 | candle-transformers/src/models/stella_en_v5.rs:412-423 | candle-transformers/src/models/yi.rs:239-248 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/olmo.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:230\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/olmo.rs:223\u0060 calls \u0060clear_kv_cache\u0060 and \u0060candle-transformers/src/models/mixtral.rs:240\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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4deae1df0755ece9e2138ad14d4c9d455b987c43559b2bfb733c848b0fe1c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): candle-transformers/src/models/mixtral.rs:161-172 | candle-transformers/src/models/nvembed_v2/embedding.rs:110-121 | candle-transformers/src/models/quantized_mistral.rs:126-137 | candle-transformers/src/models/qwen2.rs:139-150 | candle-transformers/src/models/qwen2_moe.rs:146-157 | candle-transformers/src/models/yi.rs:178-189 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 as WHOLE FILES: this scan already matched 9 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff42b9fa6040697c7779d939cca9cfbb1fafff6b493ce6e0ec4b2b32d2e27b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): candle-core/src/quantized/neon.rs:708-719 | candle-core/src/quantized/neon.rs:881-892 | candle-core/src/quantized/neon.rs:1157-1168 | candle-core/src/quantized/neon.rs:2999-3010 | candle-core/src/quantized/neon.rs:3141-3152 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:708\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebbcf1320cf30edeff94c7e216e0f048c8d5f8ca07e2bfae0cba6dcc09723d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): candle-nn/src/attention/cpu_flash/causal.rs:210-221 | candle-nn/src/attention/cpu_flash/causal.rs:595-606 | candle-nn/src/attention/cpu_flash/causal.rs:815-825 | candle-nn/src/attention/cpu_flash/causal.rs:896-906 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:207\u0060 calls \u0060causal_decode_f32_lean\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:814\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f79fad4b16136db06506bff2887942955964c237a0f4f979dfb97f2c927b724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): candle-transformers/src/models/granite.rs:288-301 | candle-transformers/src/models/lfm2.rs:381-394 | candle-transformers/src/models/llama.rs:334-347 | candle-transformers/src/models/voxtral/voxtral_llama.rs:248-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/lfm2.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:288\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f9ed3616845578e036463b4aab4570f93fce1076d8d213bb762c048e35e5ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): candle-transformers/src/models/quantized_gemma3.rs:420-431 | candle-transformers/src/models/quantized_llama.rs:508-518 | candle-transformers/src/models/quantized_phi.rs:255-264 | candle-transformers/src/models/quantized_phi3.rs:286-296 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:420\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_phi.rs:253\u0060 calls \u0060clone\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs:285\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":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"55478ba1830b251950ac52a435da55237de362ca93a9ce98d0edd1f4f7cd60ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): candle-core/src/cpu/avx.rs:244-255 | candle-core/src/cpu/neon.rs:452-463 | candle-core/src/cpu/simd128.rs:190-200 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/avx.rs:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-core/src/cpu/avx.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae6da8c4382c984eb49ff9d7035f366fe1d24658753095b907a0bfcc2475d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): candle-core/src/cpu_backend/conv2d.rs:147-157 | candle-core/src/cpu_backend/conv2d.rs:294-304 | candle-core/src/cpu_backend/mod.rs:1338-1349 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cpu_backend/conv2d.rs:293\u0060 calls \u0060zero\u0060 and \u0060candle-core/src/cpu_backend/mod.rs:1337\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":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d103bedd43507fec99aa2e4ba4eab8980f73765668f14652511a5f7e0e17b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 4): candle-core/src/quantized/k_quants.rs:1107-1118 | candle-core/src/quantized/k_quants.rs:1120-1131 | candle-core/src/quantized/k_quants.rs:1133-1144 | candle-core/src/quantized/k_quants.rs:1145-1153 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/k_quants.rs:1143\u0060 calls \u0060zip\u0060, \u0060for_each\u0060, \u0060iter_mut\u0060 and \u0060candle-core/src/quantized/k_quants.rs:1107\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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a04afddb4ae4d77b91d5581f6e59acafd92f498cdafeead0b14262f2e14f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): candle-core/src/quantized/neon.rs:1076-1098 | candle-core/src/quantized/neon.rs:1530-1552 | candle-core/src/quantized/neon.rs:2246-2268 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1076\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3375dd13bb1466417df97e489c44a81245bd7f2c6d08fcf928fa081b7828b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/convnext.rs:321-332 | candle-transformers/src/models/efficientvit.rs:471-482 | candle-transformers/src/models/mobileone.rs:315-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/convnext.rs:321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/convnext.rs:320\u0060 calls \u0060apply\u0060 and \u0060candle-transformers/src/models/efficientvit.rs:470\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":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dd204b4c3095c1f7be9a215d0594a7bda4f056de25f8c1033286ec5af13f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/dinov2.rs:201-212 | candle-transformers/src/models/dinov2reg4.rs:194-205 | candle-transformers/src/models/eva2.rs:234-245 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"48112eabae82bb163430bf84387dfccbf5c0c4524b1657583bdc06365790c806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/gemma3.rs:414-425 | candle-transformers/src/models/gemma4/text.rs:502-513 | candle-transformers/src/models/quantized_gemma3.rs:167-178 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma3.rs\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma3.rs:414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f6de5303ad7843f061b71d5bb69662147d0ff81db6e53fb6d460ba38ceb9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/llama2_c.rs:218-229 | candle-transformers/src/models/quantized_llama2_c.rs:105-116 | candle-wasm-examples/llama2-c/src/model.rs:132-143 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6053382e801093394f8a3ea460a8410ebda0780e1aff98298d88a5c5fdb14865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/mixtral.rs:445-456 | candle-transformers/src/models/qwen2.rs:304-315 | candle-transformers/src/models/qwen2_moe.rs:440-451 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 187 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72568d7c790e309b1b9864eff1aae66dc457b79a823ee809d5d64ed95fb683b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): candle-transformers/src/models/repvgg.rs:295-306 | candle-transformers/src/models/resnet.rs:110-121 | candle-transformers/src/models/resnet.rs:222-233 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/repvgg.rs:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/repvgg.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"752ed78e0fc843c6d4deb311941f5cdb97294f623e8931987ff8cc80d1529712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:900-911 | candle-core/src/cpu_backend/mod.rs:921-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:900\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"da45a8e6177df01cfc725e1c757132c8fb085ae8ad813ddcc36d2167b230c6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1126-1137 | candle-core/src/cpu_backend/mod.rs:1199-1210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f69dbcf57f3904b3e22d97372a132229e25738a348d59ea74d74e4d157cc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1611-1622 | candle-core/src/cpu_backend/mod.rs:1729-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1611\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82df3664d9fddea24bb64c83abf293314c7e33d5bd92cac2dffccd2f9839762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): candle-core/src/display.rs:13-21 | candle-core/src/display.rs:540-551 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/display.rs:540\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/display.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4647768860702c7c059ba6a391dce389e66c21f7fd383e7b075d605da4f99ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:357-368 | candle-core/src/metal_backend/mod.rs:416-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1135d5ce1b9b3c434cc1491156a35e63af1d6d1cff6fd0d25914dfbfee20ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): candle-core/src/quantized/avx.rs:602-612 | candle-core/src/quantized/avx.rs:615-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1b57ba1f9add928a249a378e1a8e55093bfe1d2ddabe62dbe487645f70d539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1569-1598 | candle-core/src/quantized/k_quants.rs:1835-1861 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1569\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"29373f32eabcfdcf61f9eab92e6f679ed2aa11b34868c8040fe304b3937ccb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/quantized/neon.rs:3491-3502 | candle-core/src/quantized/neon.rs:3575-3586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:3491\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060\u0026[BlockQ5K]\u0060 in one and \u0060\u0026[BlockQ4K]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:3489\u0060 calls \u0060vdupq_n_u8\u0060 and \u0060candle-core/src/quantized/neon.rs:3574\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3491}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a2486f391b230950343c8979c3063742549e5fceccd14787415ba011a07f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/safetensors.rs:124-135 | candle-core/src/safetensors.rs:155-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/safetensors.rs:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b077160707531110017eb3cdd0b766d7d9618ec0ad5b1196b195396d8020e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/safetensors.rs:274-285 | candle-core/src/safetensors.rs:375-386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/safetensors.rs:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"48595e98d8b97db8a9908f141f86f528eeb6abaadc18db52ab6858c708b215b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:168-179 | candle-flash-attn-v3/src/lib.rs:612-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fdbfcde2ad8faea95ad83fc5088b69e0b4602dfb4b881c58e2232144115b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-flash-attn/src/lib.rs:890-901 | candle-flash-attn/src/lib.rs:1058-1069 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn/src/lib.rs:890\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn/src/lib.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d580bb539a2611644558f4155e9f45655257af537949a4082287ec8493b99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:432-443 | candle-nn/src/attention/cpu_flash/causal.rs:513-524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:526\u0060 calls \u0060vec_dot\u0060, \u0060as_ptr\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:444\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f06c46c072f7066d2e8f2f5dcf385fe87dc1a9c76ba824be62194687090ac9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:531-542 | candle-nn/src/attention/cpu_flash/causal.rs:544-555 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d885e3345f539bbe808702464b24dba9ed3824d4983e804651b04b8fd41d5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-nn/src/attention/cpu_flash/varlen.rs:205-216 | candle-nn/src/attention/cpu_flash/varlen.rs:297-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/varlen.rs:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fabe04f51b57672076e6431e380a7fb5ecb5ef2d7e9351a58cc4b65f04cbdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-nn/src/moe.rs:121-132 | candle-nn/src/moe.rs:314-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/moe.rs:121\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/moe.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b144e0c64feba7b0b40d7ae6c108814ad4a272bfcfd18acd76b4e630b71274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-nn/src/ops.rs:590-601 | candle-nn/src/ops.rs:835-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:590\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/ops.rs:834\u0060 calls \u0060arg\u0060 and \u0060candle-nn/src/ops.rs:589\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":"candle-nn/src/ops.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"15835f05a8483d9a1a7d761efd32950ac3c7a9527a7754c5d302aa00b523c893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-onnx/src/eval.rs:1919-1930 | candle-onnx/src/eval.rs:2129-2140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfd6ffb2958b8350b3c49eb9811196f45d3b135090f2638ff7266442a99be4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/clip/text_model.rs:308-319 | candle-transformers/src/models/stable_diffusion/clip.rs:368-379 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/clip/text_model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/clip.rs\u0060 as WHOLE FILES: this scan already matched 8 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":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66722202aae0dbcfc5d2f5666777a74ae88561e847a7d97056912b9954bd33f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/codegeex4_9b.rs:138-149 | candle-transformers/src/models/glm4.rs:159-170 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/codegeex4_9b.rs:138\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"56443365fe2cd46c79b642da67fc64589508b465e679a83d3ac0661c21c797de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/dac.rs:75-86 | candle-transformers/src/models/snac.rs:283-294 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"955e03e827932562bde32c357f997c5c37275f828e206dac6c90c693ed98a326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/dinov2.rs:281-292 | candle-transformers/src/models/eva2.rs:318-329 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/eva2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/dinov2.rs:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11456c69f19bc725d08abe68c9c10b7d952743a8278699a579b6fe548af8d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/gemma.rs:181-192 | candle-transformers/src/models/helium.rs:178-189 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:181\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3333ce8fb4a54ccc994b603d59a557644024d3e2fbd9cb6606cfbdb9002905d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 4): candle-transformers/src/models/llama2_c.rs:200-211 | candle-transformers/src/models/quantized_llama2_c.rs:87-98 | candle-wasm-examples/llama2-c/src/model.rs:118-120 | candle-wasm-examples/llama2-c/src/model.rs:125-127 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/llama2_c.rs:211\u0060 calls \u0060matmul\u0060, \u0060contiguous\u0060, \u0060transpose\u0060 and \u0060candle-wasm-examples/llama2-c/src/model.rs:127\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"943728baa7a18ac5302dc6b22524ec80551cd705e7d58fbf7d1d45e97114e2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:890-901 | candle-transformers/src/models/quantized_metavoice.rs:193-204 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"21326afd1a00936cc87742f112685c8734270010c12debe7d5347fe9a519ccaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/mpt.rs:272-283 | candle-transformers/src/models/quantized_mpt.rs:207-218 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mpt.rs:272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2eda21983b5b04fe9fe15495c1eb9da3d6ad417167fae5e45be8360a3a1f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/model.rs:90-101 | candle-transformers/src/models/stable_diffusion/attention.rs:113-124 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/attention.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/nvembed_v2/model.rs:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a846801d6d0ffd0adbb2640a065b1cf83f58d72778dee38d1a5d8543c8ea2202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v5.rs:51-67 | candle-transformers/src/models/quantized_rwkv_v6.rs:58-74 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c28b6565fe59344732ec6dda7c08559a2ab2e3e4b90f7fbbca2106f8fb802a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:122-124 | candle-transformers/src/models/quantized_rwkv_v6.rs:164-175 | candle-transformers/src/models/rwkv_v5.rs:173-175 | candle-transformers/src/models/rwkv_v6.rs:142-153 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ac549951c9393e16c9fb421dd8705c94cd95b0772f2b3937e9b8962458f580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): candle-transformers/src/models/segment_anything/image_encoder.rs:301-312 | candle-transformers/src/models/segment_anything/tiny_vit.rs:416-426 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060Tensor\u0060 in one and \u0060\u0026Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/image_encoder.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0087198edc153dca5c64d72ad99455fb95f15138ec5ff6b6d6753679405cd831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:141-152 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:230-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:141\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"93246d420ceb58f9aab649e28afaa33c1c12c3238c4cf600cb00fe25eb3179df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:153-164 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:521-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":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee0a4e0e49e5c82e71ddddd2ae86db8042d91af4c05b186ea3855958bea0c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/voxtral/model.rs:516-527 | candle-transformers/src/models/voxtral/model.rs:540-551 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/voxtral/model.rs:516\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/voxtral/model.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa90832a12fde333af31e8bf4173a43adac7e66d9e50d73723feff3735062633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:192-203 | candle-wasm-examples/whisper/src/audio.rs:171-182 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b9641de274286ddbc07ca539c822c542f840061fc3775b78cd299efb33ad43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:255-266 | candle-wasm-examples/whisper/src/audio.rs:188-199 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/whisper/audio.rs:255\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d79b99d5917005b36544c4ca27001c9dd94c0eda6dc54c2362aa1fb17cb24fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 6): candle-transformers/src/models/blip_text.rs:484-486 | candle-transformers/src/models/marian.rs:632-634 | candle-transformers/src/models/quantized_blip_text.rs:480-482 | candle-transformers/src/models/trocr.rs:505-507 | candle-transformers/src/models/whisper/model.rs:332-343 | candle-transformers/src/models/whisper/quantized_model.rs:336-347 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/whisper/model.rs:332\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"804bc2531229fe7c052fc3a0a6d73a7e5bdcf0a2c0335a7a6784494e74b19fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 15): candle-transformers/src/models/csm.rs:230-240 | candle-transformers/src/models/gemma.rs:245-255 | candle-transformers/src/models/gemma4/text.rs:362-372 | candle-transformers/src/models/helium.rs:244-254 | candle-transformers/src/models/mistral.rs:293-303 | candle-transformers/src/models/mixtral.rs:225-235 | candle-transformers/src/models/olmo.rs:207-217 | candle-transformers/src/models/olmo2.rs:195-205 | candle-transformers/src/models/phi3.rs:247-257 | candle-transformers/src/models/quantized_mistral.rs:184-194 | candle-transformers/src/models/quantized_stable_lm.rs:163-173 | candle-transformers/src/models/qwen2.rs:196-206 | candle-transformers/src/models/qwen2_moe.rs:203-213 | candle-transformers/src/models/stable_lm.rs:293-303 | candle-transformers/src/models/yi.rs:234-244 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/csm.rs:230\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e201e13e3c763e8d6e9b80f5188439f8f910a16fba6d55b975bb705e8df97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 14): candle-transformers/src/models/based.rs:323-329 | candle-transformers/src/models/gemma.rs:92-98 | candle-transformers/src/models/gemma2.rs:85-91 | candle-transformers/src/models/gemma3.rs:90-96 | candle-transformers/src/models/gemma4/text.rs:75-81 | candle-transformers/src/models/glm4_new.rs:54-60 | candle-transformers/src/models/modernbert.rs:69-75 | candle-transformers/src/models/nvembed_v2/embedding.rs:28-34 | candle-transformers/src/models/olmo.rs:53-59 | candle-transformers/src/models/olmo2.rs:45-51 | candle-transformers/src/models/quantized_glm4.rs:120-126 | candle-transformers/src/models/qwen2.rs:56-62 | candle-transformers/src/models/qwen2_moe.rs:64-70 | candle-transformers/src/models/stella_en_v5.rs:177-187 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b2f2bddaf4a77d5df842cf039a347597565522013d3cfbcfa0d9d448f1f58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): candle-transformers/src/models/based.rs:573-583 | candle-transformers/src/models/mixtral.rs:468-478 | candle-transformers/src/models/olmo.rs:332-342 | candle-transformers/src/models/olmo2.rs:327-337 | candle-transformers/src/models/phi3.rs:407-417 | candle-transformers/src/models/quantized_stable_lm.rs:286-296 | candle-transformers/src/models/qwen2_moe.rs:463-473 | candle-transformers/src/models/stable_lm.rs:418-428 | candle-transformers/src/models/starcoder2.rs:330-340 | candle-transformers/src/models/yi.rs:349-359 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:285\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/based.rs:572\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5a17028d3989ea5c21a3f8fc25b9681184c0ca81d0cb00a93b4a91a459eede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): candle-nn/src/attention/cpu_flash/causal.rs:282-292 | candle-nn/src/attention/cpu_flash/causal.rs:368-378 | candle-nn/src/attention/cpu_flash/causal.rs:448-458 | candle-nn/src/attention/cpu_flash/causal.rs:687-697 | candle-nn/src/attention/cpu_flash/causal.rs:784-794 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:282\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a8b6412b7305aef3bcc9046677faf26f0b03af14bbcbb016fea219987e80b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 5): candle-transformers/src/models/mistral.rs:224-236 | candle-transformers/src/models/mixtral.rs:153-170 | candle-transformers/src/models/nvembed_v2/embedding.rs:102-119 | candle-transformers/src/models/quantized_mistral.rs:118-135 | candle-transformers/src/models/yi.rs:170-187 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd5511817bb89fb3c1da2cfddd7630c59528d433c7c91b1e00aed05f920fb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): candle-flash-attn-v3/src/lib.rs:67-77 | candle-flash-attn-v3/src/lib.rs:501-511 | candle-flash-attn/src/lib.rs:58-68 | candle-flash-attn/src/lib.rs:546-556 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ae4aa25cb0bfccf97c48b45a60043432a463b365f3ee88dfc559c543d111e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): candle-transformers/src/models/glm4_new.rs:221-230 | candle-transformers/src/models/qwen3.rs:342-352 | candle-transformers/src/models/smol/smollm3.rs:288-298 | candle-transformers/src/models/z_image/text_encoder.rs:308-318 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:221\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/glm4_new.rs:232\u0060 calls \u0060pub\u0060, \u0060clear_kv_cache\u0060, \u0060reset\u0060 and \u0060candle-transformers/src/models/z_image/text_encoder.rs:319\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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"60df447c15f1404a53051d50b41d302525abff7842e9c75d19d5125daa774c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 3): candle-core/src/quantized/avx.rs:192-198 | candle-core/src/quantized/avx.rs:403-413 | candle-core/src/quantized/avx.rs:628-634 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c005bf9d2210557e9de8750c96fb87effe0e237792526b8ffe2094896dd95a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:723-733 | candle-core/src/quantized/k_quants.rs:753-763 | candle-core/src/quantized/k_quants.rs:2343-2352 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/k_quants.rs:723\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5c0bf00fbf80c22ca4d1f59d55cc5e264414ce2c0ad166a896a6e5ef031fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-core/src/quantized/neon.rs:1145-1155 | candle-core/src/quantized/neon.rs:1894-1904 | candle-core/src/quantized/neon.rs:2681-2691 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62948733caac9663bcfd3e9b5a1e950901a317ca117980f15380c57424a11f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): candle-core/src/tensor.rs:2610-2619 | candle-core/src/tensor.rs:2648-2658 | candle-core/src/tensor.rs:3002-3012 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/tensor.rs:2648\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/tensor.rs:2619\u0060 calls \u0060Ok\u0060, \u0060Tensor\u0060, \u0060clone\u0060 and \u0060candle-core/src/tensor.rs:3012\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":"candle-core/src/tensor.rs"},"region":{"startLine":2610}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dbc4efa54a0462908517071e0be3aa7e6fce2bdf55f03e962c1c4a4bb003f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:221-231 | candle-nn/src/attention/cpu_flash/causal.rs:314-324 | candle-nn/src/attention/cpu_flash/causal.rs:403-413 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:232\u0060 calls \u0060as_ptr\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:415\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a042e696668dddd9649452ab3179a0bc46096fffff39c409fc16093c4c2986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-nn/src/rotary_emb.rs:214-224 | candle-nn/src/rotary_emb.rs:519-529 | candle-nn/src/rotary_emb.rs:793-803 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/rotary_emb.rs:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f862af1f408e7fdab098ea438d3cc3af9738ee563add52934ead67533992df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): candle-nn/src/var_builder.rs:380-390 | candle-nn/src/var_builder.rs:428-437 | candle-nn/src/var_builder.rs:473-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/var_builder.rs:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f4b91c3c14e6b5b7685470af6c153732fac8de95382a8c18186ddf4eb583ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-nn/src/var_builder.rs:510-520 | candle-nn/src/var_builder.rs:540-550 | candle-nn/src/var_builder.rs:570-580 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab131829ab4b663cb1841f90dd03e65fd202548747737847b111d3a2c4952d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): candle-transformers/src/models/beit.rs:212-226 | candle-transformers/src/models/dinov2.rs:154-168 | candle-transformers/src/models/dinov2reg4.rs:147-161 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6609cc0d28edbd0ed97e73990e1419c4ebbb25e5b2df0ef5b43c5a62ca6fdff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/beit.rs:231-241 | candle-transformers/src/models/dinov2.rs:173-183 | candle-transformers/src/models/dinov2reg4.rs:166-176 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0de7e5a11d2936d24d7bd5a89c6dc07810d99962888d583d521b34d7d254f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): candle-transformers/src/models/bert.rs:247-260 | candle-transformers/src/models/chinese_clip/text_model.rs:255-268 | candle-transformers/src/models/jina_bert.rs:170-183 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7ca12338534715f46ffc7f6d1ec8542044e6624984e739452ec42a96ae9419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:153-163 | candle-transformers/src/models/codegeex4_9b.rs:170-180 | candle-transformers/src/models/glm4.rs:191-201 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2945697d41843694fc5496e6fe4877ef2676f7f29c054fb6bf34fc428055fa9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:579-589 | candle-transformers/src/models/codegeex4_9b.rs:601-611 | candle-transformers/src/models/glm4.rs:622-632 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7434bac098c3df113950356ca27900265a6daa7e21e2a558852bfa5dd3588534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201319 lines \u00D7 4): candle-transformers/src/models/gemma.rs:172-190 | candle-transformers/src/models/gemma2.rs:166-184 | candle-transformers/src/models/gemma3.rs:180-189 | candle-transformers/src/models/helium.rs:169-187 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:172\u0060 it does not close everything it opens, so those exact 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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e97ffcaf5161e766108e4ef1af98d5ed4e6edadf6ee8ddf70e278d648f9cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): candle-transformers/src/models/gemma4/text.rs:422-432 | candle-transformers/src/models/gemma4/vision.rs:326-335 | candle-transformers/src/models/glm4_new.rs:252-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma4/text.rs\u0060 and \u0060candle-transformers/src/models/gemma4/vision.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma4/text.rs:422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Gemma4VisionConfig\u0060 in one and \u0060\u0026Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc5c4a4b1797f92df3a58cf1c3ac5b3bf69f464778419272d894e754005f2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/granite.rs:160-170 | candle-transformers/src/models/granitemoehybrid.rs:203-213 | candle-transformers/src/models/llama.rs:206-216 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c15a492e4c8d4bd0467670294fa164c7cdc93c595b8f819ed8799ba63f9c622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/granite.rs:450-460 | candle-transformers/src/models/llama.rs:523-533 | candle-transformers/src/models/voxtral/voxtral_llama.rs:458-468 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 309 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:450\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026VoxtralLlamaConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e4f36d0d4cee30021b30373ef9a677f57e28c51c1ec960403199caaef50e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/helium.rs:374-384 | candle-transformers/src/models/mistral.rs:430-440 | candle-transformers/src/models/quantized_mistral.rs:315-325 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060candle-transformers/src/models/quantized_mistral.rs:327\u0060 calls \u0060contiguous\u0060 and \u0060candle-transformers/src/models/helium.rs:386\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":"candle-transformers/src/models/helium.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0c4ddfbeaf3714ae51bbf5625722a1fbab8d16afdecd53a04ee29cd8f35754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/mistral.rs:385-395 | candle-transformers/src/models/mixtral.rs:426-436 | candle-transformers/src/models/qwen2_moe.rs:421-431 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:385\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ec19fa759fd93e7f1bcbf3675208557fafcd4e25c37c00cde692f39105d194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/mmdit/blocks.rs:44-54 | candle-transformers/src/models/mmdit/blocks.rs:130-140 | candle-transformers/src/models/mmdit/blocks.rs:226-236 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/mmdit/blocks.rs:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c29b7a368eb96dd48fc075c0c5cbabac2ced6ab53f605f6f2ffdec9c4efb4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:184-195 | candle-core/src/cuda_backend/mod.rs:315-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:184\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"99563b21995be60ff8892ebcd75ca2928e693e3f061ce03607bdbcbfc41b4d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:501-511 | candle-core/src/cuda_backend/mod.rs:554-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:501\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:500\u0060 calls \u0060builder_arg\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:553\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf32065478fb47ad385235d698eca08e31118db4517e3cfc24feddda26ae10ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1862-1871 | candle-core/src/cuda_backend/mod.rs:2045-2055 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1862\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"802bfe88831793dee8593044c8bb6ebda2ab85dc900fc46f92a3e3fcd4ffcc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-core/src/quantized/avx.rs:302-312 | candle-core/src/quantized/avx.rs:438-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:302\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7a82aa820c888c8df15edf15bd922da3ba960a868599b2b5e2dc6fa7b30062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): candle-core/src/quantized/avx.rs:500-508 | candle-core/src/quantized/avx.rs:591-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:500\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/avx.rs:588\u0060 calls \u0060_mm256_loadu_si256\u0060, \u0060as_ptr\u0060 and \u0060candle-core/src/quantized/avx.rs:498\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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4bb004df762c5a6263cc619f6c11dd25997c3a9e5469d38317387579fbac8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1477-1487 | candle-core/src/quantized/simd128.rs:180-189 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/k_quants.rs\u0060 and \u0060candle-core/src/quantized/simd128.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d675d7b5baac11595f40074b4f3cf9f4fcb4bf288f129a4c2fd1705d42cd61d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1654-1665 | candle-core/src/quantized/k_quants.rs:1935-1946 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1654\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ea8f5cb6200553af5867e233e0fef34cc9b21fab899681bd7c2edb7739dcfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): candle-core/src/quantized/neon.rs:1673-1691 | candle-core/src/quantized/neon.rs:1775-1794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1673\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce593df854f1fb09e7fb04c9ad71495533f0f1c14a5d3eebf26d33bf94c02691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 3): candle-core/src/safetensors.rs:445-455 | candle-core/src/safetensors.rs:475-485 | candle-core/src/safetensors.rs:593-596 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/safetensors.rs:444\u0060 calls \u0060open\u0060, \u0060map_err\u0060, \u0060from\u0060 and \u0060candle-core/src/safetensors.rs:593\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e800d40486399d2a60b23400cbef64fe5184faa4543cc41af253d5a7a3dcb82f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-datasets/src/vision/cifar.rs:104-117 | candle-datasets/src/vision/mnist.rs:104-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-datasets/src/vision/cifar.rs:104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/cifar.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"456b39b0c8c2043555a2c35730e8a29c21bc2c3c53133b6456c52a2fc5afb9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-metal-kernels/src/kernels/mlx_gemm.rs:296-306 | candle-metal-kernels/src/kernels/mlx_gemm.rs:504-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/mlx_gemm.rs:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/mlx_gemm.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d7c14a64ebe55df917ec4ec60d243e03fee7f83022fa191e36325269418170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-metal-kernels/src/kernels/reduce.rs:20-30 | candle-metal-kernels/src/kernels/reduce.rs:78-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/reduce.rs:20\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-metal-kernels/src/kernels/reduce.rs:93\u0060 calls \u0060iter\u0060, \u0060collect\u0060 and \u0060candle-metal-kernels/src/kernels/reduce.rs:35\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":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec2f29a3a021399effb6458baff6a87737d63acc1e5413bbf917487918ff88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:165-175 | candle-nn/src/attention/cpu_flash/standard.rs:252-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/standard.rs:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e720d9af6203087c8799428d13b9a475481596b3565e76da7dfcf8fe5734017c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:341-351 | candle-nn/src/attention/cpu_flash/standard.rs:434-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/standard.rs:341\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2e4a5455bedd4789eefefc7221222ff884d474f04243875e9d8461786d9989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-nn/src/conv.rs:58-68 | candle-nn/src/conv.rs:220-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/conv.rs:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0860671734f79e253ce675444f7017fb95b72be3c5a07d51422062f7a71032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): candle-nn/src/ops.rs:575-585 | candle-nn/src/ops.rs:818-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. 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":"candle-nn/src/ops.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef9e360c2f05242b88f22583e3a150f19ff5d2f8d95e1f4ca907b0278be82bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/bert.rs:225-235 | candle-transformers/src/models/chinese_clip/text_model.rs:233-243 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:225\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026ChineseClipTextConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"194b2bf4724e0ad8ab00f209274e09d9c2c34d9eac8057d4b42a9e769b45103c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): candle-transformers/src/models/bert.rs:417-427 | candle-transformers/src/models/chinese_clip/text_model.rs:402-410 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c804d2d876ee877ec31fec5f62de552eb22d1ab3cf91e34dc16afb2ac497af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/blip.rs:109-120 | candle-transformers/src/models/quantized_blip.rs:70-81 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"676a915dbf1bcd990997d153c142dc97f94c20e381dc7c187221483191c043a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/gemma2.rs:377-387 | candle-transformers/src/models/gemma3.rs:457-467 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma2.rs\u0060 and \u0060candle-transformers/src/models/gemma3.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 235 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma2.rs:377\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb0eea2aba8e26697f59cccfab3793fac7f2f3db9a9c1629b16eec91378f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/llama2_c.rs:238-248 | candle-transformers/src/models/quantized_llama2_c.rs:125-135 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:238\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b554b831dad5f0b31439a558d43970126d38890f63b7bd4f99197069965e909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/llama2_c.rs:362-372 | candle-transformers/src/models/quantized_llama2_c.rs:249-259 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:362\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9112c01a69d51f44cd991730bf203a428ef80601a7dde08fc4e55e57a46544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/mamba2.rs:514-524 | candle-transformers/src/models/mamba2.rs:527-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":"candle-transformers/src/models/mamba2.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ebf2aa6b034c052acc2ed5a057da713a8d4cf0ae359cbbc9efc264cf009d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/marian.rs:489-499 | candle-transformers/src/models/marian.rs:549-559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/marian.rs:489\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"6242fa2699c84858b41027d101be9c3f70258c91eaba8976ec4fc5bae99c1910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:771-784 | candle-transformers/src/models/quantized_metavoice.rs:74-87 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/metavoice.rs:771\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b959ddd2a59d518ca5a8f668b3aed070163d0353cc54dac61cc4c4092117c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/mmdit/blocks.rs:64-74 | candle-transformers/src/models/mmdit/blocks.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mmdit/blocks.rs:64\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/mmdit/blocks.rs:180\u0060 calls \u0060modulate\u0060, \u0060pre_attention\u0060 and \u0060candle-transformers/src/models/mmdit/blocks.rs:76\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5127040aedeae75649efe3d4c51f0778ebcad00991e92ec34f5a65f6ccc2b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): candle-transformers/src/models/mobileone.rs:203-212 | candle-transformers/src/models/repvgg.rs:201-211 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mobileone.rs\u0060 and \u0060candle-transformers/src/models/repvgg.rs\u0060 as WHOLE FILES: this scan already matched 4 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mobileone.rs:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobileone.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d6ac77e4ccfcdcfcc86fc22310e88888a52fe88d140df56b2707541de26f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/modernbert.rs:289-299 | candle-transformers/src/models/xlm_roberta.rs:517-527 \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":"candle-transformers/src/models/modernbert.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e99df953bc6b7f513b7da1dd6dc9b41ea9f5096f5732069c4a32d682f4d31d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:294-303 | candle-transformers/src/models/paddleocr_vl/text.rs:429-439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/text.rs:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"94501ac66ba370c7eb4d174650752a8dd4d273c306ddddef13a5a6e5c73aec58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:910-920 | candle-transformers/src/models/qwen3_vl/vision.rs:492-500 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af0380d6d58938b0bc37353ee6e93de488d8bd16cb9701c2e44d4388abb403b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:960-972 | candle-transformers/src/models/qwen3_vl/vision.rs:544-556 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67d9bd3c3dfb259fce0ab02366f2f0c05195965068e4ced7aa7ba278660ffa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): candle-transformers/src/models/quantized_qwen3.rs:367-374 | candle-transformers/src/models/quantized_qwen3_moe.rs:205-215 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_qwen3.rs:367\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e0c045a2b89f4b11e3f1313321b4a7d6efa6092f96d5232e5faa4ba02cca58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v5.rs:105-130 | candle-transformers/src/models/rwkv_v5.rs:156-181 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/rwkv_v5.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"016edf3e07bdf7f6a12ffd38e1a1336fd3b4a4d8d60f4a10dae276420df9c198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:518-528 | candle-transformers/src/models/t5.rs:648-658 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3ee49064d4944cd34ab717f6384cab2978e611389d40d4c84f92ff97c2d241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/rwkv_v5.rs:234-245 | candle-transformers/src/models/rwkv_v6.rs:208-219 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 10 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/rwkv_v5.rs:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v5.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"17744f85049b9db49b6e819853e75bb49f39008613fb42a3fdce7b90a30315ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:620-630 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:827-837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:620\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0eee4f502e27b9e5b948613fe735dfcc48d1bdfccc1c5ef11ef0bb57cd8d3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:282-300 | candle-transformers/src/models/whisper/quantized_model.rs:278-296 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d618c1b0024dcec30f0c13bc8eec2971add77e41b0c70ed69625dbd8dcf742ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 17): candle-transformers/src/models/gemma.rs:206-213 | candle-transformers/src/models/gemma2.rs:201-208 | candle-transformers/src/models/gemma3.rs:227-234 | candle-transformers/src/models/glm4_new.rs:198-205 | candle-transformers/src/models/mixtral.rs:187-194 | candle-transformers/src/models/paddleocr_vl/text.rs:798-805 | candle-transformers/src/models/paddleocr_vl/text.rs:901-910 | candle-transformers/src/models/quantized_qwen3.rs:244-251 | candle-transformers/src/models/quantized_stable_lm.rs:122-129 | candle-transformers/src/models/qwen2.rs:164-171 | candle-transformers/src/models/qwen2_moe.rs:171-178 | candle-transformers/src/models/qwen3.rs:197-205 | candle-transformers/src/models/smol/smollm3.rs:247-255 | candle-transformers/src/models/stable_lm.rs:245-252 | candle-transformers/src/models/starcoder2.rs:167-174 | candle-transformers/src/models/yi.rs:203-210 | candle-transformers/src/models/z_image/text_encoder.rs:276-284 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:118\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/gemma.rs:202\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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb5ed64c12b2f83f06aba98c26a1d3736b6815a1c56a3b35471ad284f600262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): candle-core/src/cuda_backend/mod.rs:2374-2388 | candle-core/src/cuda_backend/mod.rs:2390-2404 | candle-core/src/cuda_backend/mod.rs:2406-2420 | candle-core/src/cuda_backend/mod.rs:2422-2436 | candle-core/src/cuda_backend/mod.rs:2438-2452 | candle-core/src/cuda_backend/mod.rs:2454-2468 | candle-core/src/cuda_backend/mod.rs:2470-2484 | candle-core/src/cuda_backend/mod.rs:2486-2500 | candle-core/src/cuda_backend/mod.rs:2502-2516 | candle-core/src/cuda_backend/mod.rs:2518-2532 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d0649883c73c9e97de8778c48fb127772c26a899d31d0796af3e686779cd48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): candle-transformers/src/models/gemma.rs:250-259 | candle-transformers/src/models/gemma2.rs:250-259 | candle-transformers/src/models/gemma3.rs:273-282 | candle-transformers/src/models/gemma4/text.rs:367-376 | candle-transformers/src/models/phi3.rs:252-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:250\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"288c401a32f7b73e699f4c8c8ee1449e7ff259d65d78f712cafab8549540bee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): candle-transformers/src/models/quantized_lfm2.rs:601-610 | candle-transformers/src/models/quantized_llama.rs:569-577 | candle-transformers/src/models/quantized_phi.rs:284-292 | candle-transformers/src/models/quantized_phi3.rs:316-324 | candle-transformers/src/models/quantized_qwen2.rs:318-326 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_lfm2.rs:601\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7536482277cae25d20040ea64a0f8652765cb25f0c292a746f6b929a039913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): candle-core/src/quantized/mod.rs:548-557 | candle-core/src/quantized/mod.rs:584-592 | candle-core/src/quantized/mod.rs:627-636 | candle-core/src/quantized/mod.rs:656-665 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/mod.rs:548\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/quantized/mod.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5474b7646111147f3c2ea9533f2718325bc9d70a3fb9aa6b976359a545445c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): candle-nn/src/attention/cpu_flash/causal.rs:227-236 | candle-nn/src/attention/cpu_flash/causal.rs:320-329 | candle-nn/src/attention/cpu_flash/causal.rs:614-623 | candle-nn/src/attention/cpu_flash/causal.rs:728-737 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4779efe3b00690e998a348ac5aa64f7a34e4f55649c11745bd0263bf8fa90d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): candle-transformers/src/models/quantized_gemma3.rs:193-200 | candle-transformers/src/models/quantized_lfm2.rs:134-141 | candle-transformers/src/models/quantized_llama.rs:203-210 | candle-transformers/src/models/quantized_phi3.rs:124-133 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_phi3.rs:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c845ebe897819bd32ee2922a830e3af79bee4e09a3fd4615dd836d9a3723cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:246-255 | candle-transformers/src/models/quantized_rwkv_v6.rs:293-302 | candle-transformers/src/models/rwkv_v5.rs:293-302 | candle-transformers/src/models/rwkv_v6.rs:267-276 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ab579e41fce4fa23d4f8da8e7a90c7e70fef9dd43bbec64cfa7d4460b93cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:291-302 | candle-transformers/src/models/quantized_rwkv_v6.rs:338-349 | candle-transformers/src/models/rwkv_v5.rs:338-349 | candle-transformers/src/models/rwkv_v6.rs:312-323 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d333319ff66f66e180069def6536e652dcea3b1373750b4c5a72bfff0f2e5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:972-982 | candle-core/src/quantized/k_quants.rs:1635-1645 | candle-core/src/quantized/k_quants.rs:1916-1926 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/k_quants.rs:972\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3630ffca43929b84eeace9fd202c08a339b6b6044b2ccf58c7397ac5b75ff71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:1597-1607 | candle-core/src/quantized/k_quants.rs:1663-1673 | candle-core/src/quantized/k_quants.rs:1944-1954 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f05630e3b599fb5c2e71e2ebca354649204267f7573b1347fa1f08d93d1c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:909-918 | candle-nn/src/attention/cpu_flash/standard.rs:330-339 | candle-nn/src/attention/cpu_flash/standard.rs:417-426 \u2014 before extracting anything, compare \u0060candle-nn/src/attention/cpu_flash/causal.rs\u0060 and \u0060candle-nn/src/attention/cpu_flash/standard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:909\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c468fbf3545a80cced32bda9ad59e1fe210de410cc4f2eeed9f95e1c4648df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/beit.rs:142-152 | candle-transformers/src/models/dinov2.rs:85-95 | candle-transformers/src/models/dinov2reg4.rs:78-88 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e5660aaae43bfcd8e6c64ca6cb8e2ffdc8769d8c3ccc809f6c431d8022ef35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:83-106 | candle-transformers/src/models/codegeex4_9b.rs:95-118 | candle-transformers/src/models/glm4.rs:116-139 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8302fec1dfc236e46534dfee8d3a65b20409fe96bf9b09225648df95153be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/chinese_clip/vision_model.rs:280-289 | candle-transformers/src/models/clip/text_model.rs:230-239 | candle-transformers/src/models/stable_diffusion/clip.rs:303-312 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060causal_attention_mask\u0060 to \u0060Option\u003C\u0026Tensor\u003E\u0060 in one and \u0060\u0026Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9783f568cb0895101c23a6da70d113293393ed5600d6bdf67f48ef9bf75b3036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): candle-transformers/src/models/gemma.rs:356-364 | candle-transformers/src/models/gemma2.rs:375-383 | candle-transformers/src/models/gemma3.rs:454-463 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:356\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aef25fdbbcbd539d3c27d1fe89b84ca4bafc0e8e153f6f9e54fb99e907f175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): candle-transformers/src/models/granite.rs:364-376 | candle-transformers/src/models/llama.rs:411-423 | candle-transformers/src/models/voxtral/voxtral_llama.rs:335-347 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026VoxtralLlamaConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f02228204699f699a048b856be5722872e37abf5cce043155c032b53a8f46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): candle-transformers/src/models/llama2_c.rs:232-246 | candle-transformers/src/models/quantized_llama2_c.rs:119-133 | candle-wasm-examples/llama2-c/src/model.rs:146-160 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-wasm-examples/llama2-c/src/model.rs:161\u0060 calls \u0060clone\u0060 and \u0060candle-transformers/src/models/llama2_c.rs:247\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa9bbc432fbd3a5e148448adfbc16d1f5d48015b789adadac36aa17d362b8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/paddleocr_vl/mod.rs:371-380 | candle-transformers/src/models/paddleocr_vl/mod.rs:489-498 | candle-transformers/src/models/paddleocr_vl/mod.rs:788-797 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:371\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd8da7f460b6ba9416d42eccd7bb5c0c4d77fe6b717a0b07a1d20fba3ae5cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): candle-transformers/src/models/quantized_gemma3.rs:315-324 | candle-transformers/src/models/quantized_llama.rs:431-439 | candle-transformers/src/models/quantized_qwen2.rs:203-211 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:315\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"832311e18f67c3c2d2bbb3c0fee3b7e6f1c51901b798f31a5b46c27d146df95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 4): candle-transformers/src/models/nomic_bert.rs:96-99 | candle-transformers/src/models/quantized_lfm2.rs:106-115 | candle-transformers/src/models/quantized_phi3.rs:211-220 | candle-transformers/src/models/quantized_qwen2.rs:169-178 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/nomic_bert.rs:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/nomic_bert.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ae54bf5a277f55c5de31a604b853558e3339c2599a0a9225f619ba5cc91f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/quantized_lfm2.rs:170-179 | candle-transformers/src/models/quantized_phi.rs:148-157 | candle-transformers/src/models/quantized_qwen2.rs:135-144 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_lfm2.rs:170\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8202269effb1597baf3a5c05c0847fadc5bd505c5a6ddea447ab0d2be51a7e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1577-1588 | candle-core/src/cpu_backend/mod.rs:1695-1706 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1577\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"f373ed71ef0464a3229c87ecbb91616099298dbb01ef5cace92380fd0d5ef757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 4): candle-core/src/cpu_backend/mod.rs:214-216 | candle-core/src/cpu_backend/utils.rs:287-290 | candle-core/src/cpu_backend/utils.rs:308-317 | candle-core/src/cpu_backend/utils.rs:341-350 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/utils.rs:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef55361573ecac70b0a8a11adb3aa0e6aac5fee0af6f351b7687aa80577838cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:234-243 | candle-core/src/cuda_backend/mod.rs:287-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"151bb61fc1afc3b6291c355d074a80508c5feeb9a30091826f19494c867b79d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): candle-core/src/display.rs:271-279 | candle-core/src/display.rs:282-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/display.rs:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/display.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce546bade2c557d76d203c83bcc9504626d33133640fb9672c2d6fbe49fdbb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/error.rs:260-269 | candle-metal-kernels/src/err.rs:49-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/error.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a8ae8b8017272bb9b9e88d5c8e09fe2b5fe92c87b359b9f8a121133ce612eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/quantized/mod.rs:932-941 | candle-core/src/quantized/mod.rs:989-998 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb999efb44747f8b0359d8370be48ad7a7a30dbc53cdb94ef0411f899bf6a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): candle-core/src/quantized/neon.rs:997-1026 | candle-core/src/quantized/neon.rs:1445-1474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:997\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4f8acb5682c3b73076487ff9d10fcbd71fa2d6d7876835896ffd70947f6a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/quantized/neon.rs:3336-3345 | candle-core/src/quantized/neon.rs:3718-3727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:3336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6761035df57692052b2fa7b440027c8aa0cee3cd873f3eb0984b7bcc3a1356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/tensor.rs:665-674 | candle-core/src/tensor.rs:1965-1974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:665\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72f335422b653c23ca97f187c6379305b051578325d5614ab85041f9e2c167a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:544-553 | candle-flash-attn/src/lib.rs:608-617 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1875d98be1f0705682201d29d755d4c8ec408018738c4deb38a88d061a38ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-metal-kernels/src/kernels/indexing.rs:24-34 | candle-metal-kernels/src/kernels/indexing.rs:73-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/indexing.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be06ae907f7a119e0ed25ec8870e5d3e2679ed172c0cb397914b142c3642614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-metal-kernels/src/metal/commands.rs:176-185 | candle-metal-kernels/src/metal/commands.rs:214-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/metal/commands.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5956aa059eceb35e1cacbf78783eed8aaff7ad171042ba59e69c90e3ce56ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:827-836 | candle-nn/src/attention/cpu_flash/standard.rs:241-250 \u2014 before extracting anything, compare \u0060candle-nn/src/attention/cpu_flash/causal.rs\u0060 and \u0060candle-nn/src/attention/cpu_flash/standard.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:827\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"280665ca9ffd660a8ca03c30fd81116437f9b328128e875861ea3c7da29f0bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:856-865 | candle-nn/src/attention/cpu_flash/causal.rs:943-952 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:856\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d07a6b644449fdf786e8b3682f34ca0005a59a63254932991f4188590afffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): candle-nn/src/batch_norm.rs:256-265 | candle-onnx/src/eval.rs:556-563 \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 \u0060candle-nn/src/batch_norm.rs:256\u0060 it does not close everything it opens, so those exact 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":"candle-nn/src/batch_norm.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fd52a448a53ed6ac751926ef72026af36e7213be87a4afeee006cc2ad9d383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/conv.rs:64-73 | candle-nn/src/conv.rs:135-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/conv.rs:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ade736b035fcdfaec1609c721145edbb437b72f40929daeb59e19df8ea4d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/conv.rs:226-235 | candle-nn/src/conv.rs:295-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/conv.rs:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc93531090be4b76997c25a3f490f5b7ae17da96923537c63db555a8bfd579fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/conv.rs:352-361 | candle-nn/src/conv.rs:373-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a8cb29f18a9bcd53e7a74a9b0f84a91da0fdf676bb7c861e1bea950f45a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/conv.rs:441-450 | candle-nn/src/conv.rs:462-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ca59f875fbda80d8bc4af1cecf8cb5c1c5565cfe80a40c46b16692855dc1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/kv_cache.rs:59-68 | candle-nn/src/kv_cache.rs:218-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":"candle-nn/src/kv_cache.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acc643d9d7859c06218ff8ef3a7547bfe49ea0261a2a74ab17a6f9face409a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-nn/src/moe.rs:80-90 | candle-nn/src/moe.rs:228-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":"candle-nn/src/moe.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"32658c4c7d8fb4a8bc5ce0ea56f785a4d47d885739f2fa6ace0a9a8597ebdacd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/moe/cutile.rs:65-74 | candle-nn/src/moe/cutile.rs:104-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c695a1796cd60d027e514fa841762776d9660c8c68ba47bcb9033f86c6a7241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/rotary_emb.rs:505-514 | candle-nn/src/rotary_emb.rs:779-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/rotary_emb.rs:505\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bccab7c40a62f2680deee4b58e52c96d7bb9bb3d1b2e55754d9c8643fddb958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/var_builder.rs:371-380 | candle-nn/src/var_builder.rs:393-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e7638835503f7e814cf28e99955be72df185e385489859b92bc187dfab7876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/var_builder.rs:440-449 | candle-nn/src/var_builder.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4811c1dd384e8e657b9efad5ab813cad551f75eda3b2610407c759f1cd6dde6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/bert.rs:283-292 | candle-transformers/src/models/bert.rs:372-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:283\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a117f4cde061b5046de5703002c87c5cf51f104178e6ee1fde08f9959316d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/bert.rs:506-515 | candle-transformers/src/models/chinese_clip/text_model.rs:511-520 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aba5041dc03764181bef18c2e5be9645e62cd4ee8de7487baf95c9d1505dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/chinese_clip/text_model.rs:189-198 | candle-transformers/src/models/chinese_clip/text_model.rs:356-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chinese_clip/text_model.rs:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/text_model.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c4abe7058aa2e36b9095ef449cf823a9be7931da91f1f4ce86fd072b27d20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): candle-transformers/src/models/chinese_clip/vision_model.rs:361-370 | candle-transformers/src/models/clip/vision_model.rs:148-156 \u2014 \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/vision_model.rs\u0060 are one unit implemented once 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 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83b888164663f708d6425976068aae15b2fa9e13f8b2dd43137b876530c8fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/chinese_clip/vision_model.rs:375-384 | candle-transformers/src/models/clip/vision_model.rs:161-170 \u2014 \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/vision_model.rs\u0060 are one unit implemented once 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 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6d567525768be6342c4e8137510491fb616b4634da532fffa2d760924a7508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/granite.rs:296-306 | candle-transformers/src/models/granitemoehybrid.rs:346-356 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52745af3dc1c28f836cdfe456dfb87b3eb89510d5be56be37e0c7fbc87af29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/llama2_c.rs:324-334 | candle-wasm-examples/llama2-c/src/model.rs:231-241 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/model.rs\u0060 as WHOLE FILES: this scan already matched 10 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:324\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f1a6a79a8da6c1e7ae30ae801d67b432c8b3af74160222a04911388db512cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:120-129 | candle-wasm-examples/llama2-c/src/worker.rs:194-203 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e410298270c8448d261c810084febd6750af0b73f1e62e063981ab4a33b5bf50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/mamba.rs:197-206 | candle-transformers/src/models/mamba2.rs:607-616 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mamba.rs:197\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/mamba.rs:209\u0060 calls \u0060dims1\u0060 and \u0060candle-transformers/src/models/mamba2.rs:619\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":"candle-transformers/src/models/mamba.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"12523c3b4669ca7c33df8a45a3cb1cf4a559f5e311624f4f9e2633d0170b6929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:284-293 | candle-transformers/src/models/quantized_mixformer.rs:204-213 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c939f83785b4617de54f03fd3172c42cad627c2eb4f7769d5dcfe32df6a80d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): candle-transformers/src/models/mixtral.rs:337-354 | candle-transformers/src/models/quantized_llama.rs:120-139 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:337\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_llama.rs:140\u0060 calls \u0060Mlp\u0060, \u0060forward\u0060 and \u0060candle-transformers/src/models/mixtral.rs:355\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":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fdff38af637966bb8eb4cde9c426a74c67a30f9a42e634ec85420304d00459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/embedding.rs:277-286 | candle-transformers/src/models/xlm_roberta.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/nvembed_v2/embedding.rs:277\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"48da88d30b35cba53360cce944e8d59e93d179d75e4d68496a1a5c1b85fbf4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:523-539 | candle-transformers/src/models/qwen3_vl/vision.rs:144-159 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/vision.rs:523\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"da214dff35d5334ae6a1c7045e164cf64518ab93cee27ae228e14095b459cdc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/quantized_qwen3.rs:336-348 | candle-transformers/src/models/smol/quantized_smollm3.rs:523-535 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/smol/quantized_smollm3.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_qwen3.rs:336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"550eaf426d31c1adc1a016bbdbc707355d5a792a0b903877bebc3f423dabd8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/quantized_qwen3.rs:381-390 | candle-transformers/src/models/smol/quantized_smollm3.rs:573-582 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/smol/quantized_smollm3.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8e43cbbdf1f3e46081cfc42a28481841547251201cb3f9d6c3e2466ce56455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/quantized_stable_lm.rs:40-49 | candle-transformers/src/models/stable_lm.rs:144-153 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_stable_lm.rs:40\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79fe032a338158d373948e69f047f25ad90defb29857e27b5b7590fbb6330c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:669-678 | candle-transformers/src/models/t5.rs:814-823 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:669\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ce7a0114ed8527313d51765d724d8fe1b8e884e0e66a9ae6058a10066b8fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): candle-transformers/src/models/rwkv_v7.rs:933-941 | candle-transformers/src/models/rwkv_v7.rs:993-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/rwkv_v7.rs:933\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v7.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbdad70aedf87b1c9823307ecf208a02689f9ae56f134f965b0663e46303498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/segment_anything/tiny_vit.rs:203-212 | candle-transformers/src/models/segment_anything/tiny_vit.rs:509-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bf01978d0995d0951df2f7d19853d8ad21a8c492d00290e1547c583af0fb17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:102-111 | candle-wasm-examples/whisper/src/audio.rs:96-105 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/whisper/audio.rs:113\u0060 calls \u0060min\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs:107\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":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf432ff31b0b552a0a148813f404ed0b96015c79e7b56e11961f7140a6f0698d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/quantized_var_builder.rs:22-33 | candle-transformers/src/quantized_var_builder.rs:37-48 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/quantized_var_builder.rs:22\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/quantized_var_builder.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd432c9389c8911d9b3daee44cf8505e0f14b06d086bb3abc6014ade3680d08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 18): candle-transformers/src/models/csm.rs:233-241 | candle-transformers/src/models/gemma.rs:248-256 | candle-transformers/src/models/gemma2.rs:248-256 | candle-transformers/src/models/gemma3.rs:271-279 | candle-transformers/src/models/gemma4/text.rs:365-373 | candle-transformers/src/models/helium.rs:247-255 | candle-transformers/src/models/mistral.rs:296-304 | candle-transformers/src/models/mixtral.rs:228-236 | candle-transformers/src/models/olmo.rs:210-218 | candle-transformers/src/models/olmo2.rs:198-206 | candle-transformers/src/models/phi3.rs:250-258 | candle-transformers/src/models/quantized_mistral.rs:187-195 | candle-transformers/src/models/quantized_stable_lm.rs:166-174 | candle-transformers/src/models/qwen2.rs:199-207 | candle-transformers/src/models/qwen2_moe.rs:206-214 | candle-transformers/src/models/stable_lm.rs:296-304 | candle-transformers/src/models/stella_en_v5.rs:410-420 | candle-transformers/src/models/yi.rs:237-245 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/csm.rs:233\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7301569e84b924194f5b49f4b290ab3bdf2e3eb9164ab046885b908edd2278a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): candle-transformers/src/models/based.rs:402-410 | candle-transformers/src/models/gemma.rs:217-225 | candle-transformers/src/models/gemma2.rs:212-220 | candle-transformers/src/models/mixtral.rs:198-206 | candle-transformers/src/models/olmo.rs:186-194 | candle-transformers/src/models/olmo2.rs:174-182 | candle-transformers/src/models/phi3.rs:226-234 | candle-transformers/src/models/quantized_mistral.rs:164-172 | candle-transformers/src/models/qwen2.rs:175-183 | candle-transformers/src/models/qwen2_moe.rs:182-190 | candle-transformers/src/models/starcoder2.rs:178-186 | candle-transformers/src/models/yi.rs:214-222 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:402\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce924e067075951547e98c1c7fc817bf94956ec788961498d158b263b253489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): candle-transformers/src/models/mistral.rs:167-175 | candle-transformers/src/models/nvembed_v2/embedding.rs:67-75 | candle-transformers/src/models/olmo.rs:92-100 | candle-transformers/src/models/olmo2.rs:84-92 | candle-transformers/src/models/quantized_mistral.rs:82-90 | candle-transformers/src/models/qwen2.rs:95-103 | candle-transformers/src/models/qwen2_moe.rs:102-110 | candle-transformers/src/models/yi.rs:134-142 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d88e489198ff830adf7c2993cb66ee713053e59bbebd93653af3c96f222ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): candle-nn/src/attention/cpu_flash/causal.rs:231-239 | candle-nn/src/attention/cpu_flash/causal.rs:324-332 | candle-nn/src/attention/cpu_flash/causal.rs:412-420 | candle-nn/src/attention/cpu_flash/causal.rs:484-492 | candle-nn/src/attention/cpu_flash/causal.rs:618-626 | candle-nn/src/attention/cpu_flash/causal.rs:732-740 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:230\u0060 calls \u0060as_ptr\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:411\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28c39f1a0b73348b5d039ec3d04d5e56cb055fd918126515cd6a71ce87a99b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): candle-nn/src/ops.rs:426-434 | candle-nn/src/ops.rs:651-658 | candle-nn/src/ops.rs:902-909 | candle-nn/src/rotary_emb.rs:239-246 | candle-nn/src/rotary_emb.rs:545-552 | candle-nn/src/rotary_emb.rs:820-827 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:426\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/ops.rs:649\u0060 calls \u0060buffer\u0060, \u0060start_offset\u0060, \u0060dtype\u0060 and \u0060candle-nn/src/ops.rs:425\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"58951ba82b2f118cd6b6975333a84ee0befc42bf52858b45ed59f130b614d754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): candle-transformers/src/models/granite.rs:173-181 | candle-transformers/src/models/granitemoehybrid.rs:216-224 | candle-transformers/src/models/lfm2.rs:189-197 | candle-transformers/src/models/llama.rs:219-227 | candle-transformers/src/models/llama2_c.rs:124-132 | candle-transformers/src/models/voxtral/voxtral_llama.rs:114-122 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c35d00aa152a2bc0ac2a6bb0cd3f10c6392bcadb9737949440d403503fca86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): candle-transformers/src/models/helium.rs:77-85 | candle-transformers/src/models/mistral.rs:128-136 | candle-transformers/src/models/mixformer.rs:157-165 | candle-transformers/src/models/qwen3.rs:51-59 | candle-transformers/src/models/smol/smollm3.rs:81-89 | candle-transformers/src/models/z_image/text_encoder.rs:123-131 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/helium.rs:77\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e66c6c2fc5200de5647a8581c4d2608428cce04fb9642632eb10ab7ceca360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): candle-transformers/src/models/mistral.rs:382-390 | candle-transformers/src/models/mixtral.rs:423-431 | candle-transformers/src/models/quantized_mistral.rs:272-280 | candle-transformers/src/models/qwen2_moe.rs:418-426 | candle-transformers/src/models/yi.rs:313-321 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/mistral.rs:393\u0060 calls \u0060dtype\u0060 and \u0060candle-transformers/src/models/quantized_mistral.rs:283\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":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b4833b09a6084c579065a8bbff0e6ad6fd619d353ab0655013224234f2acab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): candle-transformers/src/models/mixtral.rs:91-100 | candle-transformers/src/models/recurrent_gemma.rs:119-128 | candle-transformers/src/models/stable_lm.rs:101-110 | candle-transformers/src/models/starcoder2.rs:61-70 | candle-transformers/src/models/yi.rs:92-101 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:91\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbe1d741b63298151e7bb06d379eb8063e5e84121c6a141d434e3fac05dd8d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): candle-transformers/src/models/quantized_lfm2.rs:590-598 | candle-transformers/src/models/quantized_llama.rs:548-556 | candle-transformers/src/models/quantized_phi.rs:273-281 | candle-transformers/src/models/quantized_phi3.rs:305-313 | candle-transformers/src/models/quantized_qwen2.rs:297-305 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef60c0e261b0e2645f4e682a678dbf4dbbe386955f3f15e2ea9e4baa9377522c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): candle-core/src/quantized/cuda.rs:714-725 | candle-core/src/quantized/cuda.rs:742-753 | candle-core/src/quantized/cuda.rs:771-782 | candle-core/src/quantized/cuda.rs:795-806 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/cuda.rs:714\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"90372bf186b5d2cb721ed9e1e836d0bbe50fd6c560c76bf5255aab443f5443d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): candle-core/src/quantized/k_quants.rs:1582-1590 | candle-core/src/quantized/k_quants.rs:1649-1657 | candle-core/src/quantized/k_quants.rs:1847-1855 | candle-core/src/quantized/k_quants.rs:1930-1938 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1582\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"4860c8250741d762434efdcdb679a38ab74ec3afa955c743e681374764b314e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): candle-core/src/quantized/neon.rs:1579-1589 | candle-core/src/quantized/neon.rs:1696-1706 | candle-core/src/quantized/neon.rs:2311-2321 | candle-core/src/quantized/neon.rs:2448-2458 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1579\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a48b8e141eb34ffc5ee9598d345775dc7618273780108f1a657a2a7c28df61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): candle-nn/src/attention/cpu_flash/causal.rs:258-266 | candle-nn/src/attention/cpu_flash/causal.rs:349-357 | candle-nn/src/attention/cpu_flash/causal.rs:663-671 | candle-nn/src/attention/cpu_flash/causal.rs:765-773 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:762\u0060 calls \u0060min\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:346\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c51d8206c260b2ee862b40e0ff94cdcdf40cd3c274133f8b4068631000988d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): candle-nn/src/ops.rs:798-806 | candle-nn/src/rotary_emb.rs:122-130 | candle-nn/src/rotary_emb.rs:427-435 | candle-nn/src/rotary_emb.rs:701-709 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:798\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5aa1367b5973dd1dbf2398da14f00407bda3bc01dd936872be974ea0b17ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): candle-transformers/src/models/based.rs:560-570 | candle-transformers/src/models/olmo.rs:319-329 | candle-transformers/src/models/olmo2.rs:314-324 | candle-transformers/src/models/qwen2.rs:314-324 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/olmo.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:560\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d686658aeb59e64ec1b499199473aba89aa68b9670a8b9574ca93c3d6c3bd276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 5): candle-transformers/src/models/gemma.rs:233-241 | candle-transformers/src/models/gemma2.rs:228-236 | candle-transformers/src/models/gemma3.rs:251-259 | candle-transformers/src/models/gemma4/text.rs:357-359 | candle-transformers/src/models/stable_lm.rs:281-289 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/gemma.rs:241\u0060 calls \u0060transpose\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs:359\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9089dc8b911c8c2e48014fb8a98718fdf5b781980b7856d4641a116aead2ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): candle-transformers/src/models/granite.rs:323-331 | candle-transformers/src/models/granitemoehybrid.rs:373-381 | candle-transformers/src/models/llama.rs:370-378 | candle-transformers/src/models/voxtral/voxtral_llama.rs:294-302 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026GraniteMoeHybridInternalConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10b87e79eb8c4c8bca12837d1e6d6c4a17923a3b8f340dbbe8af563eb7dec27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): candle-transformers/src/models/paddleocr_vl/mod.rs:223-231 | candle-transformers/src/models/paddleocr_vl/mod.rs:370-376 | candle-transformers/src/models/paddleocr_vl/mod.rs:488-494 | candle-transformers/src/models/paddleocr_vl/mod.rs:786-793 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99c5c6f98f7d66e38dc9533a5a344322ed0206e2c5dc2478932f7de31835da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): candle-core/src/cpu_backend/mod.rs:2859-2865 | candle-core/src/cuda_backend/mod.rs:1864-1871 | candle-core/src/cuda_backend/mod.rs:2047-2055 \u2014 \u0060candle-core/src/cpu_backend/mod.rs\u0060 and \u0060candle-core/src/cuda_backend/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 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:2859\u0060 it begins part-way through the construct above it, so those exact 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2859}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d484823a52e71f7d9453ffd38a2f39d26592d971501cd2a1710b540e66e5c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-core/src/cpu_backend/mod.rs:2903-2915 | candle-core/src/cuda_backend/mod.rs:1981-1993 | candle-core/src/metal_backend/mod.rs:1027-1035 \u2014 \u0060candle-core/src/cpu_backend/mod.rs\u0060 and \u0060candle-core/src/cuda_backend/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 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:2903\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2903}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84ef7b143b84f57043bdd6d14ad1568606e7a277134f3b5cbee33c920d527d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:1480-1488 | candle-core/src/quantized/k_quants.rs:1738-1746 | candle-core/src/quantized/simd128.rs:183-190 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/k_quants.rs\u0060 and \u0060candle-core/src/quantized/simd128.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1480\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f707b22a9df006a8790410636fb9ba8cccab6dffe5cce0337dd304ca60b5d35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:248-256 | candle-nn/src/attention/cpu_flash/causal.rs:340-348 | candle-nn/src/attention/cpu_flash/causal.rs:837-845 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/attention/cpu_flash/causal.rs:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a0077ece15718fa2359331727c341d3b547c132072dc0f053328d7c6524ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): candle-nn/src/rotary_emb.rs:85-103 | candle-nn/src/rotary_emb.rs:390-408 | candle-nn/src/rotary_emb.rs:664-682 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/rotary_emb.rs:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b000b9a65070976b77e0346a5bd6f25913918a19572d928c3b67b5bf144a3659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): candle-transformers/src/models/beit.rs:297-305 | candle-transformers/src/models/dinov2.rs:255-263 | candle-transformers/src/models/dinov2reg4.rs:246-254 | candle-transformers/src/models/eva2.rs:282-285 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/beit.rs:297\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/beit.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6d2a39de69f84d5621caf97ce2264e8eb0a26059bcea002ecd8816a48b0d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:124-130 | candle-transformers/src/models/codegeex4_9b.rs:137-145 | candle-transformers/src/models/glm4.rs:158-166 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/codegeex4_9b.rs:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"961bae0fde11fb26dde8216e5c66649b2ec0f179db159bffd12f985c507fbde3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:500-508 | candle-transformers/src/models/codegeex4_9b.rs:521-529 | candle-transformers/src/models/glm4.rs:542-550 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd73b45e717811daa54a5c199118d41f414af1662275b1cad0155ce77aac717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-transformers/src/models/modernbert.rs:291-299 | candle-transformers/src/models/nvembed_v2/embedding.rs:275-283 | candle-transformers/src/models/xlm_roberta.rs:519-527 \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":"candle-transformers/src/models/modernbert.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc6f6c6e75f0e0b35fbdaa7eb27e1de52a95b18b99fa3bdb8ca0a9d57ba7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): candle-transformers/src/models/quantized_qwen3.rs:252-266 | candle-transformers/src/models/qwen3.rs:206-220 | candle-transformers/src/models/z_image/text_encoder.rs:285-299 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_qwen3.rs:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d066e0f768141d8f68f1eba64ccab1a7d7448bc89d2b599e7f24950e5d12cad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): candle-transformers/src/models/wuerstchen/common.rs:21-29 | candle-transformers/src/models/wuerstchen/common.rs:51-58 | candle-transformers/src/models/z_image/transformer.rs:693-701 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/wuerstchen/common.rs:18\u0060 calls \u0060permute\u0060 and \u0060candle-transformers/src/models/wuerstchen/common.rs:49\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":"candle-transformers/src/models/wuerstchen/common.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abc1463f77e42308c02644da55aefa1a93292a79c9c3b171f691549ddcf19e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): candle-core/src/backprop.rs:296-313 | candle-core/src/backprop.rs:326-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/backprop.rs:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/backprop.rs:314\u0060 calls \u0060Err\u0060 and \u0060candle-core/src/backprop.rs:343\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":"candle-core/src/backprop.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b542ccccc8c1f9090b239358f634fdc43ef9aa7953f0e3163fea1b1315eb59a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:689-697 | candle-core/src/cpu_backend/mod.rs:847-855 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:689\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"55de4b3aaa11ca78df6e85a15b7091df13e342c72680174f35e9124615e43a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/cuda_backend/cudnn.rs:63-73 | candle-core/src/cuda_backend/cudnn.rs:167-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/cudnn.rs:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-core/src/cuda_backend/cudnn.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7133e06749606e7be77b5f8957a161e9e491723701fa0225012e52cd445fa0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:400-408 | candle-core/src/cuda_backend/mod.rs:413-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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"76455592c7179435376c5f601d275c88b8742ebd8d2ba9e805890ce31924ed46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:247-255 | candle-core/src/quantized/k_quants.rs:462-470 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bca7ebd15852b1dea3b7736354e8ab59ad55010e64410c9fe548f21518e878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/neon.rs:235-243 | candle-core/src/quantized/neon.rs:246-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9902a9f0f06cc6ef82ed966b6e9eace10a0cad770b028dfa3775ec41f8a38a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 3): candle-core/src/quantized/neon.rs:798-800 | candle-core/src/quantized/neon.rs:807-815 | candle-core/src/quantized/neon.rs:3083-3091 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:807\u0060 it begins part-way through the construct above it, so those exact 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe7954daaf4bba2f71adab2e87a2530e2d3bd5fa583d92b3f18e03aa031bfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-core/src/quantized/neon.rs:979-995 | candle-core/src/quantized/neon.rs:1420-1436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:979\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:1418\u0060 calls \u0060vdupq_n_u8\u0060 and \u0060candle-core/src/quantized/neon.rs:978\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"a196cf940973954d4cbc6bc1a633b03d79312e33e53bd1409aeb787a8cc13604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/neon.rs:1318-1326 | candle-core/src/quantized/neon.rs:1335-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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"421fcb93eeb344a0cf837a6f753c14696a4fde5289e48c0aaa9693add48f5ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/neon.rs:1973-1981 | candle-core/src/quantized/neon.rs:2156-2164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1973\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea085862378317e805cae38f0fee233a4a4362377a3bf0c731729c5fe4731843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/repack_x86.rs:354-362 | candle-core/src/quantized/repack_x86.rs:410-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack_x86.rs:354\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43de480cb92e0b8ef3698ba088eb15aa6655cbdc33def607f968dce8e1901f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/tensor.rs:1356-1364 | candle-core/src/tensor.rs:1394-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":"candle-core/src/tensor.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"47623752cdb5d80593bb5260735ced6a72377e438af155f5cb7dd2dd7466b0e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-metal-kernels/src/kernels/unary.rs:53-61 | candle-metal-kernels/src/kernels/unary.rs:118-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/unary.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1d252c63743dce93de9c4aade4dc683c98039d4dcefcb4b02d6bb0fcd8002a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-metal-kernels/src/metal/encoder.rs:293-301 | candle-metal-kernels/src/metal/encoder.rs:318-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/metal/encoder.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"df78d2e444688f6743a34a547a46d216aa4dc0b74ececf88c109c641ee2b869c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:342-350 | candle-nn/src/attention/cpu_flash/causal.rs:428-436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e96b2c712a298c44e1392fc03e99827675cedabdcf536497004138817a3468d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:957-965 | candle-nn/src/attention/cpu_flash/varlen.rs:266-274 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:957\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0af43f7f96d0c089cff010848d9e81d1efdaab836936fb87ea62a1d9521eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-nn/src/conv.rs:317-325 | candle-nn/src/conv.rs:400-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/conv.rs:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3755b3c08bffd8f0e7a3e7e073f486c2815491c26b05b577d73ddbd8bce629b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-nn/src/rnn.rs:211-220 | candle-nn/src/rnn.rs:364-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":"candle-nn/src/rnn.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2395b89f6ad963ddf8f305f3b1a37e41bc73ee7c35bb0bdc9f08a8235d7cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-nn/src/var_map.rs:59-67 | candle-nn/src/var_map.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":"candle-nn/src/var_map.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"91045aa7a1e2d8b9ebdc2e6eec360b102f5bb14cf8d79b5b36678d1e6f5cd6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/blip.rs:209-220 | candle-transformers/src/models/quantized_blip.rs:170-181 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"476b3c91b879937bec13574796c162222195edc499665dfc4da323a43a7c83d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/blip.rs:268-277 | candle-transformers/src/models/quantized_blip.rs:229-238 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfe2634206ebe2f92ec48c44fd0073b62d444747db617ceade9f8b77ade01fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:449-457 | candle-transformers/src/models/quantized_blip_text.rs:445-453 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3163fd2a550f8cd557bbee6cf43bb14ba83593d0ceea5890221a32bf164904bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/convnext.rs:189-197 | candle-transformers/src/models/convnext.rs:208-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/convnext.rs:189\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f841e4423907d26d02e99186a4a4337a39483ad50bb63ffe674bbfaf41f54dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/dinov2.rs:71-80 | candle-transformers/src/models/dinov2reg4.rs:64-73 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e06267b0da0d3ab5f70e5efb90784ee0b4a740806f7b030fb010b6ad8f1440c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/efficientvit.rs:151-162 | candle-transformers/src/models/mobilenetv4.rs:300-311 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e893005da9b274429676f3d6f65d682656d4a131efc9e5ae35938f40a852b00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/encodec.rs:336-345 | candle-transformers/src/models/mimi/quantization.rs:227-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f83ded145133a22351e1bd137e518654e11bed4311b9dc814384de280e4afe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/gemma2.rs:124-132 | candle-transformers/src/models/gemma3.rs:129-137 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma2.rs\u0060 and \u0060candle-transformers/src/models/gemma3.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 235 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma2.rs:124\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e608eb20dec774a70f7301ffbfc4bb8fd542d5a4a242cc659a478185284075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/glm4_new.rs:312-320 | candle-transformers/src/models/qwen3.rs:421-429 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:312\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f0655f9a79e38ec834252b6d68d95247b209bdf3efee1089beb3ab1466e5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): candle-transformers/src/models/lfm2.rs:466-474 | candle-transformers/src/models/quantized_lfm2.rs:207-214 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/lfm2.rs:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcaabb9c420f1f9d440ef51ae82df7e10275a0e829c82d407ed8977dfcfa1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/mamba2.rs:235-246 | candle-transformers/src/models/mamba2.rs:474-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba2.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca43da140ddd34287029136be07a035f16a1bdd030b02121dcba19dd1104aeb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:735-745 | candle-transformers/src/models/quantized_metavoice.rs:38-48 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10c036b2d7ed384964665637ea676b662b922e89bec4f54bbf60eafe87e215a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:355-363 | candle-transformers/src/models/quantized_mixformer.rs:270-278 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:355\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c884fa0fbf0ad9fa977787efef11a064f00ef9ebffdd06966ee183d8833efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:452-460 | candle-transformers/src/models/quantized_mixformer.rs:367-375 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:452\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ad1efc7941e407c27aede0d92e04078f7339388dae284611af942cef8e61fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/mpt.rs:182-190 | candle-transformers/src/models/quantized_mpt.rs:155-163 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mpt.rs:182\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caf6441e23bd6f40ce9bfd517dc9446f06732c588d42fa798716547052a2471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/nomic_bert.rs:224-232 | candle-transformers/src/models/snac.rs:191-199 \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":"candle-transformers/src/models/nomic_bert.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ecbc7f1899cb79ce87aef768870b1c8b37962f4c7621f868980d485b0dc249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/mod.rs:855-863 | candle-transformers/src/models/paddleocr_vl/mod.rs:873-881 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:855\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad935c85a46fe41d104811d3de5b72c83c71e62e867c298dcbcf539c303a469e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:433-440 | candle-transformers/src/models/paddleocr_vl/text.rs:558-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/text.rs:433\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b454103ea4aa94d5ac4d39c20afdc00f2357bd2657f8d8f6a99b7a5400cbb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/pixtral/vision_model.rs:149-158 | candle-transformers/src/models/qwen3_vl/text.rs:76-85 \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 \u0060candle-transformers/src/models/pixtral/vision_model.rs:149\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34a2d9cc90063362ac05e5077c6a2bf69a830430e5f6bef68c7f5efc8fb7f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:40-51 | candle-transformers/src/models/recurrent_gemma.rs:157-168 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d58652e02cc4310942d8349402e7f04e87f507418cdd855aff78b64c359938b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:463-471 | candle-transformers/src/models/t5.rs:593-601 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d8ae2340d950e52a6313a1d066ffa69e16b7c5b73e95c462ec4584b7117926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:502-510 | candle-transformers/src/models/t5.rs:632-640 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a94ab50deafb2bd5e6f687d9ce1cb2b05ea0db2eae72164c21aea99d67d3ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:550-558 | candle-transformers/src/models/t5.rs:680-688 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a760b23d3b5b95a9ca1938f30273f5c927b0f0e0e6829faeaab855192e6d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/snac.rs:53-62 | candle-transformers/src/models/snac.rs:74-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/snac.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f41487e823ac68f2a1fc8c1a8b0f313f2539f5833c7a72d5d839fed316ec8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 29): candle-transformers/src/models/based.rs:412-416 | candle-transformers/src/models/chatglm.rs:292-299 | candle-transformers/src/models/codegeex4_9b.rs:313-320 | candle-transformers/src/models/csm.rs:220-224 | candle-transformers/src/models/deepseek2.rs:669-673 | candle-transformers/src/models/gemma.rs:227-231 | candle-transformers/src/models/gemma2.rs:222-226 | candle-transformers/src/models/glm4.rs:334-341 | candle-transformers/src/models/helium.rs:227-231 | candle-transformers/src/models/metavoice.rs:812-816 | candle-transformers/src/models/mistral.rs:276-280 | candle-transformers/src/models/mixformer.rs:303-307 | candle-transformers/src/models/mixtral.rs:208-212 | candle-transformers/src/models/mpt.rs:109-113 | candle-transformers/src/models/olmo.rs:196-200 | candle-transformers/src/models/olmo2.rs:184-188 | candle-transformers/src/models/paddleocr_vl/text.rs:843-847 | candle-transformers/src/models/phi.rs:233-237 | candle-transformers/src/models/phi3.rs:236-240 | candle-transformers/src/models/quantized_metavoice.rs:115-119 | candle-transformers/src/models/quantized_mistral.rs:174-178 | candle-transformers/src/models/quantized_mixformer.rs:220-224 | candle-transformers/src/models/quantized_mpt.rs:86-90 | candle-transformers/src/models/quantized_recurrent_gemma.rs:248-252 | candle-transformers/src/models/qwen2.rs:185-189 | candle-transformers/src/models/qwen2_moe.rs:192-196 | candle-transformers/src/models/recurrent_gemma.rs:481-485 | candle-transformers/src/models/starcoder2.rs:188-192 | candle-transformers/src/models/yi.rs:224-228 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:412\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/csm.rs:226\u0060 calls \u0060repeat_kv\u0060 and \u0060candle-transformers/src/models/based.rs:418\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb1b05416062ff8834f1ee9a05633928ddf334abe6e138b2ba5bb7333a22e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 22): candle-transformers/src/models/csm.rs:195-201 | candle-transformers/src/models/gemma.rs:205-210 | candle-transformers/src/models/gemma2.rs:200-205 | candle-transformers/src/models/gemma3.rs:226-231 | candle-transformers/src/models/glm4_new.rs:197-202 | candle-transformers/src/models/helium.rs:202-208 | candle-transformers/src/models/mistral.rs:251-257 | candle-transformers/src/models/mixtral.rs:186-191 | candle-transformers/src/models/nvembed_v2/embedding.rs:133-139 | candle-transformers/src/models/paddleocr_vl/text.rs:797-802 | candle-transformers/src/models/paddleocr_vl/text.rs:900-907 | candle-transformers/src/models/quantized_mistral.rs:150-156 | candle-transformers/src/models/quantized_qwen3.rs:243-248 | candle-transformers/src/models/quantized_stable_lm.rs:121-126 | candle-transformers/src/models/qwen2.rs:163-168 | candle-transformers/src/models/qwen2_moe.rs:170-175 | candle-transformers/src/models/qwen3.rs:196-202 | candle-transformers/src/models/smol/smollm3.rs:246-252 | candle-transformers/src/models/stable_lm.rs:244-249 | candle-transformers/src/models/starcoder2.rs:166-171 | candle-transformers/src/models/yi.rs:202-207 | candle-transformers/src/models/z_image/text_encoder.rs:275-281 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:118\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/csm.rs:192\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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9623d2154f8ea8f0798ba5fbbbd83d912e7cd2f15e32277ea19cad5bb5d1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 22): candle-transformers/src/models/gemma.rs:209-216 | candle-transformers/src/models/gemma2.rs:204-211 | candle-transformers/src/models/gemma3.rs:230-237 | candle-transformers/src/models/glm4_new.rs:201-208 | candle-transformers/src/models/mixtral.rs:190-197 | candle-transformers/src/models/olmo.rs:178-185 | candle-transformers/src/models/olmo2.rs:166-173 | candle-transformers/src/models/paddleocr_vl/text.rs:801-808 | candle-transformers/src/models/paddleocr_vl/text.rs:906-913 | candle-transformers/src/models/phi.rs:206-213 | candle-transformers/src/models/phi3.rs:218-225 | candle-transformers/src/models/quantized_glm4.rs:236-243 | candle-transformers/src/models/quantized_qwen3.rs:247-254 | candle-transformers/src/models/quantized_stable_lm.rs:125-132 | candle-transformers/src/models/qwen2.rs:167-174 | candle-transformers/src/models/qwen2_moe.rs:174-181 | candle-transformers/src/models/qwen3.rs:201-208 | candle-transformers/src/models/smol/smollm3.rs:251-258 | candle-transformers/src/models/stable_lm.rs:248-255 | candle-transformers/src/models/starcoder2.rs:170-177 | candle-transformers/src/models/yi.rs:206-213 | candle-transformers/src/models/z_image/text_encoder.rs:280-287 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/gemma3.rs:239\u0060 calls \u0060forward\u0060 and \u0060candle-transformers/src/models/gemma.rs:219\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e63b6d50e6b0c21d926a7be03a0fc9bb1f291e4b60cca680ef404a722fe4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): candle-transformers/src/models/mistral.rs:166-173 | candle-transformers/src/models/nvembed_v2/embedding.rs:66-73 | candle-transformers/src/models/olmo.rs:91-98 | candle-transformers/src/models/olmo2.rs:83-90 | candle-transformers/src/models/quantized_mistral.rs:81-88 | candle-transformers/src/models/quantized_stable_lm.rs:39-46 | candle-transformers/src/models/qwen2.rs:94-101 | candle-transformers/src/models/qwen2_moe.rs:101-108 | candle-transformers/src/models/stable_lm.rs:143-150 | candle-transformers/src/models/yi.rs:133-140 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f219692f4413b287ac0a0d4077a096f9268894fbe7260a85e0b49450254377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): candle-transformers/src/models/granite.rs:322-329 | candle-transformers/src/models/granitemoehybrid.rs:372-379 | candle-transformers/src/models/llama.rs:369-376 | candle-transformers/src/models/llama2_c.rs:236-243 | candle-transformers/src/models/quantized_llama2_c.rs:123-130 | candle-transformers/src/models/voxtral/voxtral_llama.rs:293-300 | candle-wasm-examples/llama2-c/src/model.rs:150-157 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:322\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd73f7e83a408ef9f6b618f67a29d8e9ff24db2f05f3c9b7dfdf00df2229e14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): candle-nn/src/attention/cpu_flash/causal.rs:281-288 | candle-nn/src/attention/cpu_flash/causal.rs:367-374 | candle-nn/src/attention/cpu_flash/causal.rs:447-454 | candle-nn/src/attention/cpu_flash/causal.rs:686-693 | candle-nn/src/attention/cpu_flash/causal.rs:783-790 | candle-nn/src/attention/cpu_flash/varlen.rs:259-266 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:444\u0060 calls \u0060vec_dot\u0060, \u0060as_ptr\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:279\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca343856c38cbf6339f60da7a2235db76ae6bb4baa7f92e55b7d1bb58e34dc25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 6): candle-transformers/src/models/olmo.rs:202-206 | candle-transformers/src/models/olmo2.rs:190-194 | candle-transformers/src/models/paddleocr_vl/text.rs:850-857 | candle-transformers/src/models/phi3.rs:242-246 | candle-transformers/src/models/qwen2.rs:191-195 | candle-transformers/src/models/qwen2_moe.rs:198-202 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/olmo.rs\u0060 and \u0060candle-transformers/src/models/olmo2.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 205 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/olmo.rs:202\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"902ccc9580af694045191755a83bf5cc1580ed36d76fbb07e59afd5980ee7a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): candle-transformers/src/models/quantized_lfm2.rs:168-176 | candle-transformers/src/models/quantized_llama.rs:250-258 | candle-transformers/src/models/quantized_phi.rs:146-154 | candle-transformers/src/models/quantized_phi3.rs:157-165 | candle-transformers/src/models/quantized_qwen2.rs:133-141 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4868939ee04a3d9b633db388ef04a3e698c721a3612a27429a3bcdb096806a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): candle-core/src/quantized/avx.rs:166-171 | candle-core/src/quantized/avx.rs:188-193 | candle-core/src/quantized/avx.rs:271-278 | candle-core/src/quantized/avx.rs:399-404 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59871bc56c720f968a723e5f37d52b1c2a285f659efca2bac6f0d4297e0e2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): candle-nn/src/attention/cpu_flash/causal.rs:249-256 | candle-nn/src/attention/cpu_flash/causal.rs:341-348 | candle-nn/src/attention/cpu_flash/causal.rs:427-434 | candle-nn/src/attention/cpu_flash/causal.rs:838-845 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36553da8e09916719fd09388ecc705ffcb9b6877595a1d86c2bf7f0c1c55337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): candle-transformers/src/models/gemma3.rs:416-422 | candle-transformers/src/models/gemma4/text.rs:504-510 | candle-transformers/src/models/quantized_gemma3.rs:169-175 | candle-transformers/src/models/qwen3_vl/mod.rs:40-48 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma3.rs\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/qwen3_vl/mod.rs:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"5833dbc024a42d09b8a64aaa768f9e42bbeb7e4f37255cd36d75b87f28d2ed99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): candle-transformers/src/models/glm4_new.rs:317-324 | candle-transformers/src/models/qwen3.rs:426-433 | candle-transformers/src/models/qwen3_moe.rs:287-294 | candle-transformers/src/models/smol/smollm3.rs:381-388 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0d29fdaae914bf2bb5c2b7f114d47c462ccf1c0258b8e5a5dc636daadc8099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:607-610 | candle-core/src/cuda_backend/mod.rs:611-618 | candle-core/src/cuda_backend/mod.rs:663-670 | candle-core/src/cuda_backend/mod.rs:715-722 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:611\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2e5316c1381fc16d63f16875128a654d64cb666aca3312ff19b4f6d4a1b223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-core/src/quantized/avx.rs:367-374 | candle-core/src/quantized/avx.rs:375-382 | candle-core/src/quantized/avx.rs:383-390 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc59c07a02d688b050e6a25458c82310f494ac0dbc3cc9146c01208ac51f613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:1184-1191 | candle-core/src/quantized/k_quants.rs:1544-1551 | candle-core/src/quantized/k_quants.rs:1809-1816 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/k_quants.rs:1184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"666d00be77f157d81276b30939dc37d0e6f70ef6ba40c4658f197e050badacbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:141-150 | candle-transformers/src/models/codegeex4_9b.rs:158-167 | candle-transformers/src/models/glm4.rs:179-188 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"43deb625dfeea21b634015117bc61218601eb1b9009d921057a0d8f43b7278be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/gemma2.rs:337-344 | candle-transformers/src/models/gemma3.rs:377-384 | candle-transformers/src/models/gemma4/text.rs:463-470 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma2.rs\u0060 and \u0060candle-transformers/src/models/gemma3.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 235 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma2.rs:337\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"63569a6ebeda53df32bb2d6774cf291b6bc3f1b0a015cb3855e16b6c776eb4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/helium.rs:231-240 | candle-transformers/src/models/mistral.rs:280-289 | candle-transformers/src/models/mixtral.rs:212-221 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/helium.rs:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af5b8835f03b45e68c59191aa6341cd329c05d088f846071953061f17eb4145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/marian.rs:329-336 | candle-transformers/src/models/parler_tts.rs:145-152 | candle-transformers/src/models/trocr.rs:243-250 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/marian.rs\u0060 and \u0060candle-transformers/src/models/trocr.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4865ed31e86c590125b7ae3204a24e3d2530c715b9e16d42692ee07e07589741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/mixtral.rs:333-340 | candle-transformers/src/models/qwen2_moe.rs:295-302 | candle-transformers/src/models/qwen3_moe.rs:156-163 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/qwen2_moe.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:333\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0405567747e1c44d5b6d80c8d069fbdc42c634afa205c162614b9c326c5bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/nvembed_v2/embedding.rs:163-171 | candle-transformers/src/models/smol/quantized_smollm3.rs:560-569 | candle-transformers/src/models/starcoder2.rs:203-210 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 and \u0060candle-transformers/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/nvembed_v2/embedding.rs:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/starcoder2.rs:212\u0060 calls \u0060clear_kv_cache\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs:172\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":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4405f99deae9405e41b902b05ab16d79915ceec95318dcbd990511eb416aadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/nvembed_v2/embedding.rs:160-168 | candle-transformers/src/models/parler_tts.rs:146-153 | candle-transformers/src/models/starcoder2.rs:200-207 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 and \u0060candle-transformers/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fbb66ff83f61c117a4dda235bcbc33aadf4e27cc3281afe02da1b7752cb0e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/quantized_gemma3.rs:75-84 | candle-transformers/src/models/quantized_llama.rs:289-298 | candle-transformers/src/models/quantized_phi.rs:180-189 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4849ab15bc37aa76273f632dd5be7401941f172574bef76df9275e06b15b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/accelerate.rs:417-424 | candle-core/src/mkl.rs:370-377 \u2014 before extracting anything, compare \u0060candle-core/src/accelerate.rs\u0060 and \u0060candle-core/src/mkl.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e67c8bca15cbc0baa62b9d6c2fb90145ea66830d974873191c90d298cbb590"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/accelerate.rs:428-435 | candle-core/src/mkl.rs:381-388 \u2014 before extracting anything, compare \u0060candle-core/src/accelerate.rs\u0060 and \u0060candle-core/src/mkl.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"7026961585ab3890c811ec43e6dfcfbd63bc05c7102a6ed3e5f256875ae7c45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1124-1131 | candle-core/src/cpu_backend/mod.rs:1189-1196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"92353f33587ee09d5a325a433021ba163730c86238bc1adbfe1ac3e5030721e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:759-766 | candle-core/src/cuda_backend/mod.rs:802-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:759\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf655b88cdbec839c12c993d49f490f8919e7dbdd40f7961237ec5bdc29c2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/metal_backend/device.rs:205-212 | candle-core/src/metal_backend/device.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":"candle-core/src/metal_backend/device.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23fde9b006e65b42203ce542858ed05da6b8e1f592ff4ef7e788de4c9203fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:1274-1281 | candle-core/src/metal_backend/mod.rs:1321-1328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:1274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd065e497555103974dddcce058a4353eb2d75ab81cfb3b2eca0024566d89206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1169-1176 | candle-core/src/quantized/k_quants.rs:1178-1185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15d6850a9f762ab6a06c8d68f7f9a5087f968e6f67d76a18928098a46fd94b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1220-1227 | candle-core/src/quantized/k_quants.rs:1324-1331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1220\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d209f8a2525ebc00e6b1097f0f5aed3b8e76896351842de79244105ae139d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/neon.rs:1209-1216 | candle-core/src/quantized/neon.rs:1418-1425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04cc66058eaacd8f893e4f625d7e3f00d273e98d5ffe3250c9600047cde9c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/neon.rs:3589-3596 | candle-core/src/quantized/neon.rs:3678-3685 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:3589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3589}}}],"partialFingerprints":{"codehealthFindingId/v1":"73647aa4c74bb9573f0f8913bae87a580f67c85f899b4160dbe0f6f9df484401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/repack_x86.rs:963-970 | candle-core/src/quantized/repack_x86.rs:1013-1020 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack_x86.rs:963\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2031b09396a3417005411363a8387c932ca62ee4d437489ea90a61808bfbd6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/tensor.rs:2007-2014 | candle-core/src/tensor.rs:2048-2055 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:2007\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/tensor.rs:2046\u0060 calls \u0060push\u0060 and \u0060candle-core/src/tensor.rs:2005\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":"candle-core/src/tensor.rs"},"region":{"startLine":2007}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc72781f69c7309b4929f9379607a8a73447bc886451343c8c5bbd8b0a52fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:76-90 | candle-flash-attn/src/lib.rs:67-81 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0f4adbe4c8948bc4392e8020643db242778b7ebf2fd70b84881adfd0516f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:192-199 | candle-flash-attn-v3/src/lib.rs:637-644 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-flash-attn-v3/src/lib.rs:192\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f430d3c34d0c56221abdc4ada19cea7ea1068adfd72f595aaae666846d2c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-metal-kernels/src/kernels/random.rs:25-32 | candle-metal-kernels/src/kernels/random.rs:56-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":"candle-metal-kernels/src/kernels/random.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa753f21388294143787b2852660bafa5668253c2620000ecddc788d7e31c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 6): candle-nn/src/attention/cpu_flash/causal.rs:242-245 | candle-nn/src/attention/cpu_flash/causal.rs:335-338 | candle-nn/src/attention/cpu_flash/causal.rs:422-425 | candle-nn/src/attention/cpu_flash/causal.rs:497-500 | candle-nn/src/attention/cpu_flash/causal.rs:629-636 | candle-nn/src/attention/cpu_flash/causal.rs:743-750 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:247\u0060 calls \u0060powf\u0060 and \u0060candle-nn/src/attention/cpu_flash/causal.rs:340\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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd03861d314d2542692d312c5611cfa18c67e134f53e385d8db09521c2b5e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:256-263 | candle-nn/src/attention/cpu_flash/standard.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/standard.rs:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccfd21dda938e493ae0bc9027a9fa72cc09709b4db36539276a9d49534e6526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-nn/src/kv_cache.rs:124-131 | candle-nn/src/kv_cache.rs:132-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":"candle-nn/src/kv_cache.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ab7200a94bac17ebcbb0727f5224258824a02401e385219179a7e1f7e10e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-nn/src/ops.rs:300-307 | candle-nn/src/ops.rs:734-741 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/ops.rs:300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d147f5298f1dd2e5e59d16b9adade80ac67dc0f7d00b589dd6c3ceece52ad7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-onnx/src/eval.rs:473-485 | candle-onnx/src/eval.rs:508-520 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3001f6e9b25d7f4b7d10ae7d629fcff9b9fef65fc2c24a8f695d6c800ee7e49b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-pyo3/src/lib.rs:1452-1459 | candle-pyo3/src/lib.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-pyo3/src/lib.rs:1452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/lib.rs"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a72ceda32465bb194d1de9631cda2ba798e8e11523adf9fa55b709455696f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/beit.rs:395-402 | candle-transformers/src/models/eva2.rs:423-430 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/eva2.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa0d68b575676e5bdf03ebc657a49a8d092d1ba6c82235bef1316a95ad48f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/blip.rs:181-188 | candle-transformers/src/models/quantized_blip.rs:142-149 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b25739556392fcaa9005774d98b25c9e2d1a43c2f1cdeb00ef947bd61fac0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/blip.rs:241-248 | candle-transformers/src/models/quantized_blip.rs:202-209 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"32087dd4a9577162d1e0a278863255791a17e70aa17cc06c45daf3f0b34851d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:309-316 | candle-transformers/src/models/quantized_blip_text.rs:305-312 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0f94eb537355ed2f6d2a9f7895fcd1480149736338f728a796f74e46200ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:366-373 | candle-transformers/src/models/quantized_blip_text.rs:362-369 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"711a05747d98724b9196582769ce41a214790f3fa3e58a38075edb494d28f5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/chinese_clip/vision_model.rs:322-329 | candle-transformers/src/models/clip/text_model.rs:271-278 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5e060c4bf2ae81dd6b378e9ad76400eb96dfff06f851735e2868038b1ce05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/codegeex4_9b.rs:76-83 | candle-transformers/src/models/glm4.rs:98-105 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b75417196d80382d0c9696f21253bd82bb81622742f11d8b23e572248e1b656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/encodec.rs:168-176 | candle-transformers/src/models/snac.rs:100-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/encodec.rs:168\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8a5cd7aed70db37db0e884df8b943b801a1df3cf437bf0cc603f02685a8ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/gemma4/audio.rs:533-541 | candle-transformers/src/models/gemma4/audio.rs:542-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":"candle-transformers/src/models/gemma4/audio.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ded9d948233dff35b0ff5477d86f3da0a783a114dfbb7a5ef987d16deeebb94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/gemma4/vision.rs:163-170 | candle-transformers/src/models/gemma4/vision.rs:171-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":"candle-transformers/src/models/gemma4/vision.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5539296cf9ad09709d8e75d9bf44da7a66ac7131283ff1f54cae427b3bb1ef49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:330-337 | candle-transformers/src/models/quantized_mixformer.rs:245-252 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:330\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc9a62480a05f6cb2b91669543e8fbc626be21a0a0cd3a067009fa8a846e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/mpt.rs:193-200 | candle-transformers/src/models/quantized_mpt.rs:166-173 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d2ca9d0b7be78774253095b5fdc4d9d82546e06f1d004a447d0fbc676815d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/mpt.rs:268-275 | candle-transformers/src/models/quantized_mixformer.rs:342-349 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_mixformer.rs:339\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/mpt.rs:265\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe25f0f59232dc1bcbcee57d9a81dd645c513db04b5a5c74578298ec9e7e284f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/embedding.rs:235-242 | candle-transformers/src/models/qwen2.rs:283-290 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 and \u0060candle-transformers/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/nvembed_v2/embedding.rs:235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e268caadcaa0323e84c151f47c64470e006d9002ca13edee3cbbe16dd336716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): candle-transformers/src/models/pixtral/vision_model.rs:122-129 | candle-transformers/src/models/siglip.rs:426-432 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/pixtral/vision_model.rs:121\u0060 calls \u0060apply_rotary_emb_qkv\u0060 and \u0060candle-transformers/src/models/siglip.rs:424\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":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"627186dcc49ca425502cf4c259f980649699c7b8f45639221be87e5ab6b3a389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/quantized_llama.rs:589-596 | candle-transformers/src/models/quantized_qwen2.rs:338-345 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_llama.rs:589\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00a4137c0124e40f46c7929e769fbe11f6670410276cab411bc79185181fa80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/quantized_mistral.rs:44-51 | candle-transformers/src/models/quantized_mixformer.rs:70-77 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_mistral.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_mistral.rs:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mistral.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecad19d446d3e71792e9a69c61bc9c3ca47779021b9eb5dea169cc9693dd4684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:340-347 | candle-transformers/src/models/recurrent_gemma.rs:573-580 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18789311c9633a942aa94d5a67e93b3273bf2eec670743fc5dbe64d88f811c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:248-256 | candle-transformers/src/models/t5.rs:377-385 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cc0f59a8bbaab5d1eb926c54dd270cd70d724f048a36a1c5a8a6534f205b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:422-429 | candle-transformers/src/models/t5.rs:551-558 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_t5.rs:422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ca3ad1e40ad4d1d85025b33594b2d58c9764a57e537c2698ae3f9a40a7418f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:479-486 | candle-transformers/src/models/t5.rs:609-616 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"520223df07281d86c40faf0f069f0cecdb81d5f805663390153d9aacd49dd7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): candle-transformers/src/models/resnet.rs:47-53 | candle-transformers/src/models/resnet.rs:156-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/resnet.rs:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/resnet.rs:163\u0060 calls \u0060apply_t\u0060, \u0060relu\u0060 and \u0060candle-transformers/src/models/resnet.rs:53\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c99138022d76fe2b60207afbcb51affe7587e91bc99cf66b6e8aa540c68560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:50-52 | candle-transformers/src/models/quantized_rwkv_v6.rs:57-59 | candle-transformers/src/models/rwkv_v5.rs:122-129 | candle-transformers/src/models/rwkv_v6.rs:67-74 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/rwkv_v5.rs:119\u0060 calls \u0060linear\u0060, \u0060pp\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:48\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":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4800337fe914e04ac607101a845fa71a4d0cba9c910617677f662adbca8ccbca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/segment_anything/tiny_vit.rs:184-191 | candle-transformers/src/models/segment_anything/tiny_vit.rs:489-497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/segment_anything/tiny_vit.rs:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"887dc26fe0ae70bbef122208bc9fabf7f75d6f5ab57637c796f6a265333b543f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/stable_lm.rs:383-390 | candle-transformers/src/models/yi.rs:316-323 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/stable_lm.rs\u0060 and \u0060candle-transformers/src/models/yi.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_lm.rs:383\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_lm.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71bdd68bd2e77d0359524b2dcab617c800aafcc1aeffe925eebc2536c26426f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:358-365 | candle-transformers/src/models/whisper/quantized_model.rs:362-369 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53cc2de9e975260db30e3cb62fe1196b9872bf737a9e8897e2a6d446d5239cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/wuerstchen/diffnext.rs:286-301 | candle-transformers/src/models/wuerstchen/prior.rs:70-85 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d96374f03b6df14b71aa69c8f725608c9e146b5a96e73c38a47e00855283a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 23): candle-transformers/src/models/csm.rs:193-199 | candle-transformers/src/models/gemma.rs:203-209 | candle-transformers/src/models/gemma2.rs:198-204 | candle-transformers/src/models/gemma3.rs:224-230 | candle-transformers/src/models/glm4_new.rs:195-201 | candle-transformers/src/models/helium.rs:200-206 | candle-transformers/src/models/lfm2.rs:329-336 | candle-transformers/src/models/mistral.rs:249-255 | candle-transformers/src/models/mixtral.rs:184-190 | candle-transformers/src/models/nvembed_v2/embedding.rs:131-137 | candle-transformers/src/models/paddleocr_vl/text.rs:795-801 | candle-transformers/src/models/paddleocr_vl/text.rs:897-906 | candle-transformers/src/models/quantized_mistral.rs:148-154 | candle-transformers/src/models/quantized_qwen3.rs:240-247 | candle-transformers/src/models/quantized_stable_lm.rs:119-125 | candle-transformers/src/models/qwen2.rs:161-167 | candle-transformers/src/models/qwen2_moe.rs:168-174 | candle-transformers/src/models/qwen3.rs:193-201 | candle-transformers/src/models/smol/smollm3.rs:243-251 | candle-transformers/src/models/stable_lm.rs:242-248 | candle-transformers/src/models/starcoder2.rs:164-170 | candle-transformers/src/models/yi.rs:200-206 | candle-transformers/src/models/z_image/text_encoder.rs:272-280 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:118\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/csm.rs:192\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62f5000b5e53bb60c319a6b472ac61c2876df2f67bf02a3639976438becf602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): candle-transformers/src/models/based.rs:418-424 | candle-transformers/src/models/csm.rs:230-236 | candle-transformers/src/models/gemma.rs:245-251 | candle-transformers/src/models/gemma4/text.rs:362-368 | candle-transformers/src/models/helium.rs:244-250 | candle-transformers/src/models/mistral.rs:293-299 | candle-transformers/src/models/mixtral.rs:225-231 | candle-transformers/src/models/nvembed_v2/embedding.rs:157-163 | candle-transformers/src/models/olmo.rs:207-213 | candle-transformers/src/models/olmo2.rs:195-201 | candle-transformers/src/models/phi3.rs:247-253 | candle-transformers/src/models/quantized_mistral.rs:184-190 | candle-transformers/src/models/quantized_stable_lm.rs:163-169 | candle-transformers/src/models/qwen2.rs:196-202 | candle-transformers/src/models/qwen2_moe.rs:203-209 | candle-transformers/src/models/stable_lm.rs:293-299 | candle-transformers/src/models/starcoder2.rs:197-203 | candle-transformers/src/models/yi.rs:234-240 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/csm.rs:226\u0060 calls \u0060repeat_kv\u0060 and \u0060candle-transformers/src/models/based.rs:416\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25b2f4a7df9b00279059b74b3e2fd44e444faf55d874f18d1349950e56c1eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): candle-transformers/src/models/based.rs:404-410 | candle-transformers/src/models/csm.rs:212-218 | candle-transformers/src/models/gemma.rs:219-225 | candle-transformers/src/models/gemma2.rs:214-220 | candle-transformers/src/models/helium.rs:219-225 | candle-transformers/src/models/mistral.rs:268-274 | candle-transformers/src/models/mixtral.rs:200-206 | candle-transformers/src/models/olmo.rs:188-194 | candle-transformers/src/models/olmo2.rs:176-182 | candle-transformers/src/models/phi3.rs:228-234 | candle-transformers/src/models/quantized_mistral.rs:166-172 | candle-transformers/src/models/qwen2.rs:177-183 | candle-transformers/src/models/qwen2_moe.rs:184-190 | candle-transformers/src/models/starcoder2.rs:180-186 | candle-transformers/src/models/yi.rs:216-222 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:404\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_mistral.rs:163\u0060 calls \u0060reshape\u0060, \u0060transpose\u0060 and \u0060candle-transformers/src/models/csm.rs:210\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5502bb4300cf8d8df9253257bb01bc28ad58b910eb0aa49ccfde31afa32e2404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): candle-nn/src/layer_norm.rs:123-129 | candle-nn/src/ops.rs:662-668 | candle-nn/src/ops.rs:913-919 | candle-transformers/src/models/gemma.rs:61-67 | candle-transformers/src/models/gemma2.rs:54-60 | candle-transformers/src/models/gemma3.rs:49-55 | candle-transformers/src/models/gemma4/audio.rs:28-34 | candle-transformers/src/models/gemma4/text.rs:29-35 | candle-transformers/src/models/gemma4/vision.rs:28-34 | candle-transformers/src/models/recurrent_gemma.rs:78-84 | candle-transformers/src/models/wuerstchen/common.rs:20-27 | candle-transformers/src/models/wuerstchen/common.rs:50-56 | candle-transformers/src/models/z_image/transformer.rs:692-698 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/ops.rs:661\u0060 calls \u0060rms_norm_slow\u0060 and \u0060candle-nn/src/layer_norm.rs:122\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":"candle-nn/src/layer_norm.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71118123b008f931eb3bff2b05ed081751e53626b104533f1d8bdb45787dac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): candle-transformers/src/models/based.rs:578-584 | candle-transformers/src/models/helium.rs:379-385 | candle-transformers/src/models/mistral.rs:435-441 | candle-transformers/src/models/mixtral.rs:473-479 | candle-transformers/src/models/olmo.rs:337-343 | candle-transformers/src/models/olmo2.rs:332-338 | candle-transformers/src/models/phi3.rs:412-418 | candle-transformers/src/models/quantized_mistral.rs:320-326 | candle-transformers/src/models/quantized_stable_lm.rs:291-297 | candle-transformers/src/models/qwen2_moe.rs:468-474 | candle-transformers/src/models/stable_lm.rs:423-429 | candle-transformers/src/models/starcoder2.rs:335-341 | candle-transformers/src/models/yi.rs:354-360 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:578\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_mistral.rs:327\u0060 calls \u0060contiguous\u0060 and \u0060candle-transformers/src/models/based.rs:585\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f5de2683a996306cc22794ee064c1f95bfa5db3e1241f8cde9bd19b8123cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): candle-transformers/src/models/based.rs:581-587 | candle-transformers/src/models/gemma.rs:405-411 | candle-transformers/src/models/helium.rs:382-388 | candle-transformers/src/models/mistral.rs:438-444 | candle-transformers/src/models/mixtral.rs:476-482 | candle-transformers/src/models/olmo.rs:340-346 | candle-transformers/src/models/olmo2.rs:335-341 | candle-transformers/src/models/phi3.rs:415-421 | candle-transformers/src/models/quantized_stable_lm.rs:294-300 | candle-transformers/src/models/qwen2_moe.rs:471-477 | candle-transformers/src/models/stable_lm.rs:426-432 | candle-transformers/src/models/starcoder2.rs:338-344 | candle-transformers/src/models/yi.rs:357-363 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/based.rs:581\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc0660cd78af3e0ef986ffb8c2ec68a48d919bb54f0d0f8a50f59974c0e6c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 12): candle-transformers/src/models/gemma.rs:322-327 | candle-transformers/src/models/helium.rs:300-305 | candle-transformers/src/models/mistral.rs:349-354 | candle-transformers/src/models/nvembed_v2/embedding.rs:210-216 | candle-transformers/src/models/olmo.rs:259-264 | candle-transformers/src/models/phi3.rs:336-341 | candle-transformers/src/models/quantized_mistral.rs:240-245 | candle-transformers/src/models/quantized_stable_lm.rs:221-226 | candle-transformers/src/models/qwen2.rs:252-257 | candle-transformers/src/models/qwen2_moe.rs:385-390 | candle-transformers/src/models/stable_lm.rs:351-356 | candle-transformers/src/models/starcoder2.rs:252-257 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:322\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/gemma.rs:329\u0060 calls \u0060clear_kv_cache\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs:217\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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4d135e3f67f394655ccbc3a616f2ed8b643c492dc7c88c27ea4ea3c88e820c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): candle-transformers/src/models/deepseek2.rs:1035-1041 | candle-transformers/src/models/gemma.rs:387-393 | candle-transformers/src/models/gemma2.rs:417-423 | candle-transformers/src/models/mixtral.rs:459-465 | candle-transformers/src/models/paddleocr_vl/text.rs:1160-1166 | candle-transformers/src/models/phi3.rs:398-404 | candle-transformers/src/models/qwen2_moe.rs:454-460 | candle-transformers/src/models/recurrent_gemma.rs:632-638 | candle-transformers/src/models/stable_lm.rs:408-414 | candle-transformers/src/models/starcoder2.rs:321-327 | candle-transformers/src/models/yi.rs:340-346 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/deepseek2.rs\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/deepseek2.rs:1035\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/stable_lm.rs:417\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/gemma.rs:396\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":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de7b8c5b57a8f5e9290f70c4f84912657f8dcd810a32cf473d368e4d1dcce0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): candle-core/src/cuda_backend/mod.rs:1606-1612 | candle-core/src/cuda_backend/mod.rs:1617-1623 | candle-core/src/cuda_backend/mod.rs:1628-1634 | candle-core/src/cuda_backend/mod.rs:1639-1645 | candle-core/src/cuda_backend/mod.rs:1650-1656 | candle-core/src/cuda_backend/mod.rs:1661-1667 | candle-core/src/cuda_backend/mod.rs:1672-1678 | candle-core/src/cuda_backend/mod.rs:1683-1689 \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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9ee71540bb2a487b43c1e4a517be404dd23f579f7cfcb62469240e91404dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 7): candle-core/src/quantized/neon.rs:715-721 | candle-core/src/quantized/neon.rs:888-894 | candle-core/src/quantized/neon.rs:1164-1170 | candle-core/src/quantized/neon.rs:1922-1928 | candle-core/src/quantized/neon.rs:2709-2715 | candle-core/src/quantized/neon.rs:3006-3012 | candle-core/src/quantized/neon.rs:3148-3153 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:715\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf20d4ccb21af5305f7a23ac6436c740664d799765cbd1cfed222f7322c571a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): candle-nn/src/attention/cpu_flash/causal.rs:261-267 | candle-nn/src/attention/cpu_flash/causal.rs:352-358 | candle-nn/src/attention/cpu_flash/causal.rs:439-445 | candle-nn/src/attention/cpu_flash/causal.rs:666-672 | candle-nn/src/attention/cpu_flash/causal.rs:768-774 \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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f0b0911a3d275d764f22f0bc981965906ed1da6e57a826f064beb2bf82a9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): candle-transformers/src/models/granite.rs:233-239 | candle-transformers/src/models/granitemoehybrid.rs:282-288 | candle-transformers/src/models/lfm2.rs:331-337 | candle-transformers/src/models/llama.rs:279-285 | candle-transformers/src/models/voxtral/voxtral_llama.rs:193-199 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e59664c5e5c00bd474c5ec31d04d916313f9cb45b38298adc47cec7bb2313f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-core/src/cpu/avx.rs:336-342 | candle-core/src/cpu/avx.rs:375-381 | candle-core/src/cpu/simd128.rs:225-231 | candle-core/src/cpu/simd128.rs:262-268 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/simd128.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/avx.rs:336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/avx.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb2549e40a50688825704d88a1e85123eddb7349a9f0fe2ee336b8c98fb40e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-core/src/tensor.rs:676-682 | candle-core/src/tensor.rs:1980-1986 | candle-core/src/tensor.rs:2011-2017 | candle-core/src/tensor.rs:2052-2058 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:676\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01633947e20fc0944c18109c7e13413f82d80de919407cb64d7a118e920c90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-transformers/src/models/convnext.rs:318-324 | candle-transformers/src/models/fastvit.rs:486-492 | candle-transformers/src/models/mobileone.rs:312-318 | candle-transformers/src/models/repvgg.rs:292-298 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/fastvit.rs\u0060 and \u0060candle-transformers/src/models/mobileone.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/convnext.rs:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1452b96504d3fe42a152892e61df94180dbc2d9b4c1f98ac4d4f61ae8c23784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): candle-transformers/src/models/glm4_new.rs:363-370 | candle-transformers/src/models/qwen3.rs:478-485 | candle-transformers/src/models/qwen3_moe.rs:333-340 | candle-transformers/src/models/smol/smollm3.rs:428-435 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abc7cbc277229b5c2ddf5e3a4a16c6412f4eda576bbe4dfc1c20a2eba0a1549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): candle-transformers/src/models/mixtral.rs:335-340 | candle-transformers/src/models/quantized_llama.rs:118-124 | candle-transformers/src/models/qwen2_moe.rs:297-303 | candle-transformers/src/models/qwen3_moe.rs:158-164 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/qwen2_moe.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 277 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"2341bdab0449e607152e8fa87380921c89ee2fc6104fe2facf37750d6a471e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): candle-transformers/src/models/quantized_rwkv_v5.rs:142-163 | candle-transformers/src/models/quantized_rwkv_v6.rs:189-210 | candle-transformers/src/models/rwkv_v5.rs:193-214 | candle-transformers/src/models/rwkv_v6.rs:167-188 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:142\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a418a138811bb2e6145b5965f4a6b2ed497638ce388a77d908620324b2e3148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-core/src/cpu_backend/mod.rs:1125-1131 | candle-core/src/cpu_backend/mod.rs:1190-1196 | candle-core/src/cpu_backend/mod.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50de1bc44bc24bde39cb3d947aae24b72c285afa16ffce21dcf4b0e07fcdb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-core/src/cuda_backend/mod.rs:784-792 | candle-core/src/cuda_backend/mod.rs:855-863 | candle-core/src/cuda_backend/mod.rs:903-911 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"273976608859efa2b6447893e669010516ff8742c5d2fa37204dca989ed1c1f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-core/src/quantized/neon.rs:1111-1117 | candle-core/src/quantized/neon.rs:1565-1571 | candle-core/src/quantized/neon.rs:2271-2277 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2d5f4a965f8ef64ffa9f4c8ee04b9757f77a8f4909b28e25e11eecb8265888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:638-645 | candle-nn/src/attention/cpu_flash/causal.rs:832-838 | candle-nn/src/attention/cpu_flash/causal.rs:919-925 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dbfb0ea42d28f0fa21576c6a6b06bdf6c1b514fd990095f1e2f24d4b693681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/csm.rs:360-366 | candle-transformers/src/models/helium.rs:361-367 | candle-transformers/src/models/mistral.rs:417-423 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/csm.rs:360\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95b0779e7a2c670f4c8621dc61a8bcd396949f1396ae904ddcbc5ae9ef2744c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-transformers/src/models/dinov2.rs:277-285 | candle-transformers/src/models/dinov2reg4.rs:268-276 | candle-transformers/src/models/eva2.rs:314-322 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67ad53b29e7163020cee5abcbabb3f361e604eaf57df802728f01cdb413258d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/mimi/transformer.rs:65-71 | candle-transformers/src/models/quantized_mistral.rs:43-49 | candle-transformers/src/models/quantized_mixformer.rs:69-75 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_mistral.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mimi/transformer.rs:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60d297476722140c76fc21844de71526b79c907e30599d72a1f6e43256f391a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): candle-transformers/src/models/quantized_gemma3.rs:398-404 | candle-transformers/src/models/quantized_llama.rs:332-337 | candle-transformers/src/models/quantized_llama.rs:491-496 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:398\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d155dd8c83b58bfe84b6569c93d3c16cb7a45280c48cd25e871e85a3a8d02b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): candle-transformers/src/models/quantized_llama.rs:331-336 | candle-transformers/src/models/quantized_llama.rs:490-495 | candle-transformers/src/models/quantized_qwen2.rs:255-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_llama.rs:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_qwen2.rs:262\u0060 calls \u0060dequantize\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs:496\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":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a168f84a2af1cc7b61ea7d3b51b04b54afc0a1d6f9bdd3c6ac044e02dfb331dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): candle-transformers/src/models/quantized_llama.rs:577-582 | candle-transformers/src/models/quantized_qwen2.rs:326-331 | candle-transformers/src/models/quantized_qwen3_moe.rs:410-416 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_llama.rs:577\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_llama.rs:585\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/quantized_qwen3_moe.rs:419\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":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a944909acf555b2ddaff866d3502fe4e8845a3b50cf8267867770d671c88b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/accelerate.rs:355-361 | candle-core/src/accelerate.rs:365-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060a\u0060 to \u0060\u0026[f32]\u0060 in one and \u0060\u0026[f64]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"041f8f18cb4b8457c0a1cb6c9d3b2fdfbe7c1f388dcc518da9991a8e18852a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:348-354 | candle-core/src/cpu_backend/mod.rs:360-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"987ab667a4247023ce96d84e310bad01041e25f162d148b345a60f2da20468a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:410-415 | candle-core/src/cpu_backend/mod.rs:449-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:410\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5029e2cec4414bfcba44b5fddfc5b436b3641d239721e45da0ab0eea5e5d142c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/npy.rs:291-297 | candle-core/src/npy.rs:315-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/npy.rs:291\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/npy.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e912dcb13e823bebd5dfda8e8351a5b5b98dedb8920f722589aeefeba9c21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): candle-core/src/npy.rs:406-411 | candle-core/src/npy.rs:419-425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/npy.rs:406\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/npy.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f389e6b20a3e4290d64ea01c80620a3379f5896cc51419c21fe4658842b25283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): candle-core/src/quantized/avx.rs:239-245 | candle-core/src/quantized/avx.rs:328-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060\u0026[BlockQ2K]\u0060 in one and \u0060\u0026[BlockQ3K]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/quantized/avx.rs:246\u0060 calls \u0060to_f32\u0060 and \u0060candle-core/src/quantized/avx.rs:335\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":"candle-core/src/quantized/avx.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5d00ee2cd8069adbf42a4c72902ee64ae8f4965d2ea478fe33271a9b3bbd98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/cuda.rs:706-712 | candle-core/src/quantized/cuda.rs:734-740 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"430778c8a15a6b41ad78d8455d94b05af805293ad33d48e689d9792a3b7053e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/cuda.rs:767-773 | candle-core/src/quantized/cuda.rs:791-797 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/cuda.rs:767\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cec1c78d44a40d0c0518aef11f3914a969decfd7aace82bba9d944e7f1944c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/cuda.rs:762-769 | candle-core/src/quantized/metal.rs:182-189 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/cuda.rs\u0060 and \u0060candle-core/src/quantized/metal.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060src\u0060 to \u0060\u0026CudaStorage\u0060 in one and \u0060\u0026MetalStorage\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"433e9cede29d068df0aef77124ec03532ed4a908a3225441b8ec17cbc9dbc2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/quantized/cuda.rs:786-793 | candle-core/src/quantized/metal.rs:203-210 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/cuda.rs\u0060 and \u0060candle-core/src/quantized/metal.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":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69b8b144343fc9703f516146f40dd8963f6be68923eafdea56bdb4738d87583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:426-432 | candle-core/src/quantized/k_quants.rs:532-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:426\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/k_quants.rs:421\u0060 calls \u0060vec_dot_unopt\u0060 and \u0060candle-core/src/quantized/k_quants.rs:529\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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"88435d8b50752b2748b790daeb21a2df771fd44ddecca451704656fa069aafa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:1084-1086 | candle-core/src/quantized/k_quants.rs:1491-1497 | candle-core/src/quantized/k_quants.rs:1749-1755 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/k_quants.rs:1491\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"910eafb9a71292a35c20294a10c3e5588f5a4914603b68829fb59e70105b8df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/metal.rs:50-56 | candle-core/src/quantized/metal.rs:449-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/metal.rs:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/metal.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"23954e830cc48e28ee4c45ce2d124f2871fa3d5c869a118fc5f469ebd49ec137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:366-372 | candle-core/src/quantized/neon.rs:443-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:366\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"112cce0f8a702503753cee9bd6e446c10ae859c48e212b4b7547bbcb9c7940a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:564-570 | candle-core/src/quantized/neon.rs:2939-2945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:564\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"397fd309d6f00974bf61480c827a3fe65651acfedc47fa5516e573b255eafcd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:1271-1277 | candle-core/src/quantized/neon.rs:2006-2012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a8e5ff6a5e87c0b6debffc154d7cb9f811d95ff8c5b151560242300301f544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-core/src/quantized/neon.rs:1588-1598 | candle-core/src/quantized/neon.rs:1705-1715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"da89324c72d8f5091b5a3db2667b696d6648106017b4e70b14a2b7b15b32607e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:1845-1851 | candle-core/src/quantized/neon.rs:2632-2638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1845\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36eb7aeb4c5ef7ca984d64c8d58e7f9df2a6842b3f25553f1dd8392861a5145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:1880-1886 | candle-core/src/quantized/neon.rs:2667-2673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1880\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe75ed2abd0fd0b26733b6e121535684e617dc10a10ea64683a79b3fc050d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-core/src/quantized/neon.rs:3423-3433 | candle-core/src/quantized/neon.rs:3446-3456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3423}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f85e19f4317d186b5157c5b8afbc0845bc2e942bf77aeeb9546352fb745eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/repack.rs:521-527 | candle-core/src/quantized/repack.rs:563-569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66fe36b6cc8f1093ece2349d33750474409544d42200aa645ec6dcc9e578c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-core/src/quantized/simd128.rs:130-141 | candle-core/src/quantized/simd128.rs:142-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db8e5679d3dae607f02c0396c13fee92fee90fdc60cee3601d58181aa37093e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/utils.rs:408-414 | candle-core/src/quantized/utils.rs:449-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/utils.rs:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/utils.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f81b4bb573e24d24f425df61fd98a1b6a9d520fb25c8d53cee2477b2d56ea8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:43-50 | candle-flash-attn/src/lib.rs:34-41 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b5e7b57cc3c4b86336945f1ae6e4ea90e083054728a259d32fa09d466b446b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:514-521 | candle-flash-attn/src/lib.rs:587-594 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3d9683b6e5c6f8210b62180ab9d0bd22933fc2ac0b82a57b295cc335ab16f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/attention/cpu_flash/causal.rs:402-408 | candle-nn/src/attention/cpu_flash/causal.rs:474-480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25b2fd452cd428a04b8f3c821392d9a95cc8785bb1e96a5d631ba58db2ec60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:151-157 | candle-nn/src/attention/cpu_flash/standard.rs:223-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":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"621ac189b9ead9a7060511db1d73ede418fd32bf4e4c9e66800ba3fb68f162d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:158-164 | candle-nn/src/attention/cpu_flash/standard.rs:239-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/standard.rs:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"42537cc53bb5a192ea4d9f56af351301385cbf66b23fc1278cc9fccc590d8ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:152-158 | candle-nn/src/attention/cpu_flash/standard.rs:322-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15e0b795b07b33ce14f8e108a700ea13bb3da81c2db1917b67690165645c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/attention/cpu_flash/standard.rs:321-327 | candle-nn/src/attention/cpu_flash/standard.rs:399-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18b3138d35f34ce6eecb42863a7dc5b56c0df260142a458d5fb8911c3e8096f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/rotary_emb.rs:361-367 | candle-nn/src/rotary_emb.rs:381-387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/rotary_emb.rs:361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41cb60310b876b5e3f76781af4bb62e55964ce04c960b47626f93dd3d199a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/bert.rs:221-228 | candle-transformers/src/models/jina_bert.rs:146-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae66cd9f5b151908ea58b5650c71c9e4750b23e0ff721847f8faee87ed9460c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/blip.rs:225-231 | candle-transformers/src/models/quantized_blip.rs:186-192 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/blip.rs:225\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6470da6060ff76b58cd185e66672772250fa91018b832d19df9de129c4ed33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:292-299 | candle-transformers/src/models/quantized_blip_text.rs:288-295 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"313fb54ea42c85dd9890a9203857cf3781aaa18a0e83b65432402ea7bfbb7eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/chinese_clip/vision_model.rs:118-129 | candle-transformers/src/models/clip/vision_model.rs:110-121 \u2014 \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/vision_model.rs\u0060 are one unit implemented once 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 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ece2d4c755f3ed9ee824c583db143667f00a81812c9903ff753e4619309b2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/fastvit.rs:277-283 | candle-transformers/src/models/mobileone.rs:210-216 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/fastvit.rs\u0060 and \u0060candle-transformers/src/models/mobileone.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/fastvit.rs:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8897960a7155928b2249c1d73177e1079ac0e74d4c25ba8b3717aec42f45a0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/flux/autoencoder.rs:142-148 | candle-transformers/src/models/z_image/vae.rs:215-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"704ea6d6020153b95aacc476de402953d484b1eeb7d0a9b6cb5282ac6c4070f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/gemma.rs:399-407 | candle-transformers/src/models/gemma2.rs:429-437 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9066a3d3d140904a888810feca06d93c9cadf52c842efe7980115bb133b3ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/llama2_c.rs:189-196 | candle-transformers/src/models/quantized_llama2_c.rs:76-83 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4abf09153b7392cab8003651566ca989e9d2ee0ac1d0d4445faef9412df19c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:304-317 | candle-transformers/src/models/quantized_mixformer.rs:221-234 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:304\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c51eaaa47b0079f1bf3d890c5919ac38ada28f6a00f1210c6204ac1de3aa40e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:366-372 | candle-transformers/src/models/quantized_mixformer.rs:281-287 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b29443e695604674dd51f4639d46e3dab16b5658a642de0d917c30a82f3eb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/moondream.rs:166-174 | candle-transformers/src/models/quantized_moondream.rs:97-105 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/moondream.rs:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd23b651358d32b57b32c55878db8ce3791591ddd4d1b7789a4feb15cb36af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/embedding.rs:19-25 | candle-transformers/src/models/quantized_mistral.rs:34-40 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 and \u0060candle-transformers/src/models/quantized_mistral.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 173 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cffdc9bbbe8f7fc39d36f4290aa131241626985d3ad7ba1b92b826bd06e7a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): candle-transformers/src/models/paddleocr_vl/vision.rs:1017-1023 | candle-transformers/src/models/paddleocr_vl/vision.rs:1089-1095 | candle-transformers/src/models/paddleocr_vl/vision.rs:1171-1173 | candle-transformers/src/models/qwen3_vl/vision.rs:566-568 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/paddleocr_vl/vision.rs:1016\u0060 calls \u0060cat\u0060, \u0060cos\u0060, \u0060to_dtype\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/vision.rs:1171\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":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"a814a99ba865b0abfad04ceb96c8320d327b0ebc80f8fadd3c2cc1f10085d54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/paligemma.rs:125-132 | candle-transformers/src/models/paligemma.rs:155-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paligemma.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"433115cd8b7bb66de430ce4d17ea4b829f7e7a4d7107af2093c72657ea2d142c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/parler_tts.rs:262-268 | candle-transformers/src/models/phi.rs:327-333 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/parler_tts.rs:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026DecoderConfig\u0060 in one and \u0060\u0026Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/parler_tts.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7198e20bc9f4c9d82c07957dd10fdf8045f6a17ff9932ad92aae08747041bc0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_gemma3.rs:458-464 | candle-transformers/src/models/quantized_qwen2.rs:331-337 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_gemma3.rs:457\u0060 calls \u0060forward\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs:330\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":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12a1a2d32b1b46f04e931383428cae2c88bc9156d9d7a86a5216b891c38516b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_mixformer.rs:100-106 | candle-transformers/src/models/quantized_mixformer.rs:107-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mixformer.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85ad78ee1e82399ff3d14e4a4189ab38bd2ef22f873ea8423179c5c5df26534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:401-407 | candle-transformers/src/models/quantized_stable_lm.rs:276-282 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs:401\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:285\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs:410\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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9bfb1bfa4be9c2570af51689933ecc11704231719fc9dcac3d365bf4a79444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v5.rs:79-85 | candle-transformers/src/models/quantized_rwkv_v6.rs:92-98 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 168 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_rwkv_v5.rs:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f724d9cf240add192e7b6ec40f9d7023b500f4641a01d02d61ccba163cd3c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_stable_lm.rs:252-258 | candle-transformers/src/models/stable_lm.rs:383-389 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_stable_lm.rs:252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/stable_lm.rs:390\u0060 calls \u0060dtype\u0060 and \u0060candle-transformers/src/models/quantized_stable_lm.rs:259\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f7668abac4fa580ce4915f9914bdda36bff232f3f67407805d5fa9199f3e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:665-671 | candle-transformers/src/models/quantized_t5.rs:711-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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e62b8b54914b0f4bf0902a1446ff439a8310191b5adb7a19f7e729f5cb6133e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-transformers/src/models/segment_anything/transformer.rs:48-62 | candle-transformers/src/models/siglip.rs:333-347 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/transformer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c819aaf42841520607b64524b71db679f4db4bdd2348261e17ff39853b5a5ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:158-164 | candle-transformers/src/models/whisper/quantized_model.rs:155-161 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/whisper/model.rs:158\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51641d14afe99ede712d80f2278ab5a70760c63470ae4abbf1501d476debee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): tensor-tools/src/main.rs:424-430 | tensor-tools/src/main.rs:492-498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tensor-tools/src/main.rs:424\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tensor-tools/src/main.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8129eb1e78cd6a419b2ef1a762f68785dac884ff6a85d43120469111e6bdab0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 36): candle-transformers/src/models/based.rs:409-415 | candle-transformers/src/models/blip_text.rs:132-138 | candle-transformers/src/models/chatglm.rs:289-295 | candle-transformers/src/models/codegeex4_9b.rs:310-316 | candle-transformers/src/models/csm.rs:217-223 | candle-transformers/src/models/deepseek2.rs:666-672 | candle-transformers/src/models/gemma.rs:224-230 | candle-transformers/src/models/gemma2.rs:219-225 | candle-transformers/src/models/glm4.rs:331-337 | candle-transformers/src/models/helium.rs:224-230 | candle-transformers/src/models/marian.rs:306-312 | candle-transformers/src/models/metavoice.rs:809-815 | candle-transformers/src/models/mistral.rs:273-279 | candle-transformers/src/models/mixformer.rs:300-306 | candle-transformers/src/models/mixtral.rs:205-211 | candle-transformers/src/models/mpt.rs:106-112 | candle-transformers/src/models/olmo.rs:193-199 | candle-transformers/src/models/olmo2.rs:181-187 | candle-transformers/src/models/paddleocr_vl/text.rs:840-846 | candle-transformers/src/models/parler_tts.rs:130-136 | candle-transformers/src/models/phi.rs:230-236 | candle-transformers/src/models/phi3.rs:233-239 | candle-transformers/src/models/quantized_blip_text.rs:128-134 | candle-transformers/src/models/quantized_metavoice.rs:112-118 | candle-transformers/src/models/quantized_mistral.rs:171-177 | candle-transformers/src/models/quantized_mixformer.rs:217-223 | candle-transformers/src/models/quantized_mpt.rs:83-89 | candle-transformers/src/models/quantized_recurrent_gemma.rs:245-251 | candle-transformers/src/models/quantized_stable_lm.rs:147-153 | candle-transformers/src/models/qwen2.rs:182-188 | candle-transformers/src/models/qwen2_moe.rs:189-195 | candle-transformers/src/models/recurrent_gemma.rs:478-484 | candle-transformers/src/models/stable_lm.rs:270-276 | candle-transformers/src/models/starcoder2.rs:185-191 | candle-transformers/src/models/trocr.rs:220-226 | candle-transformers/src/models/yi.rs:221-227 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/metavoice.rs:818\u0060 calls \u0060repeat_interleave\u0060 and \u0060candle-transformers/src/models/based.rs:418\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":"candle-transformers/src/models/based.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a8d2df71af81b1aae8eaf468fd0451b67f31c0ec6280c205fd3a20519f0f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 17): candle-transformers/src/models/csm.rs:357-363 | candle-transformers/src/models/deepseek2.rs:1032-1038 | candle-transformers/src/models/gemma.rs:384-390 | candle-transformers/src/models/gemma2.rs:414-420 | candle-transformers/src/models/helium.rs:358-364 | candle-transformers/src/models/mistral.rs:414-420 | candle-transformers/src/models/mixtral.rs:456-462 | candle-transformers/src/models/paddleocr_vl/text.rs:1157-1163 | candle-transformers/src/models/phi3.rs:395-401 | candle-transformers/src/models/quantized_mistral.rs:303-309 | candle-transformers/src/models/quantized_recurrent_gemma.rs:398-404 | candle-transformers/src/models/quantized_stable_lm.rs:273-279 | candle-transformers/src/models/qwen2_moe.rs:451-457 | candle-transformers/src/models/recurrent_gemma.rs:629-635 | candle-transformers/src/models/stable_lm.rs:405-411 | candle-transformers/src/models/starcoder2.rs:318-324 | candle-transformers/src/models/yi.rs:337-343 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"016add06698266cdbab2b5ecc732d3aebb0f6832796e85beae8a12c7e61466b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 13): candle-transformers/src/models/gemma.rs:85-90 | candle-transformers/src/models/gemma2.rs:78-83 | candle-transformers/src/models/glm4_new.rs:47-52 | candle-transformers/src/models/olmo.rs:46-51 | candle-transformers/src/models/olmo2.rs:38-43 | candle-transformers/src/models/qwen2.rs:49-54 | candle-transformers/src/models/qwen2_moe.rs:57-62 | candle-transformers/src/models/qwen3.rs:44-49 | candle-transformers/src/models/smol/quantized_smollm3.rs:179-184 | candle-transformers/src/models/smol/smollm3.rs:74-79 | candle-transformers/src/models/stable_lm.rs:94-99 | candle-transformers/src/models/starcoder2.rs:54-59 | candle-transformers/src/models/z_image/text_encoder.rs:116-121 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextEncoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3314b8326c452386822ee757d8354cf2cf427006197be09d75dcf0229bf3c020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 14): candle-transformers/src/models/gemma.rs:299-305 | candle-transformers/src/models/gemma4/vision.rs:326-332 | candle-transformers/src/models/glm4_new.rs:252-258 | candle-transformers/src/models/helium.rs:277-283 | candle-transformers/src/models/mistral.rs:326-332 | candle-transformers/src/models/nvembed_v2/embedding.rs:186-192 | candle-transformers/src/models/phi3.rs:313-319 | candle-transformers/src/models/quantized_mistral.rs:217-223 | candle-transformers/src/models/qwen2.rs:229-235 | candle-transformers/src/models/qwen3.rs:371-376 | candle-transformers/src/models/smol/smollm3.rs:322-327 | candle-transformers/src/models/yi.rs:263-268 | candle-transformers/src/models/z_image/text_encoder.rs:333-334 | candle-transformers/src/models/z_image/text_encoder.rs:335-340 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/glm4_new.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Gemma4VisionConfig\u0060 in one and \u0060\u0026Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/glm4_new.rs:250\u0060 calls \u0060pp\u0060 and \u0060candle-transformers/src/models/z_image/text_encoder.rs:333\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7766bb0c098c55531dcd8381605e02aa62892971965b19f3b1abe163d8cdd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): candle-metal-kernels/src/kernels/affine.rs:30-35 | candle-metal-kernels/src/kernels/affine.rs:98-103 | candle-metal-kernels/src/kernels/affine.rs:164-169 | candle-metal-kernels/src/kernels/binary.rs:33-39 | candle-metal-kernels/src/kernels/cast.rs:28-33 | candle-metal-kernels/src/kernels/ternary.rs:54-65 | candle-metal-kernels/src/kernels/unary.rs:35-40 \u2014 there are 7 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/affine.rs:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"129248ce621877001d1b7d57fc79d099063392bf363f052bbbbc70b1ea020e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): candle-core/src/quantized/repack.rs:460-465 | candle-core/src/quantized/repack.rs:496-501 | candle-core/src/quantized/repack.rs:540-545 | candle-core/src/quantized/repack.rs:631-636 | candle-core/src/quantized/repack.rs:665-670 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack.rs:460\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060blocks\u0060 to \u0060\u0026[BlockQ4K]\u0060 in one and \u0060\u0026[BlockQ5K]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dda57c94be965775e7745a273675d2b4513232cb541171aa3f8dd91b39a1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 7): candle-transformers/src/models/glm4_new.rs:220-225 | candle-transformers/src/models/quantized_glm4.rs:267-272 | candle-transformers/src/models/quantized_qwen3.rs:362-363 | candle-transformers/src/models/quantized_qwen3_moe.rs:198-199 | candle-transformers/src/models/qwen3.rs:341-346 | candle-transformers/src/models/smol/smollm3.rs:287-292 | candle-transformers/src/models/z_image/text_encoder.rs:307-312 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_glm4.rs:267\u0060 calls \u0060matmul\u0060, \u0060transpose\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs:362\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":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbf0946dbb9cb85b599d814da88bd00903d73a1f25d10f2eb47171e81935d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): candle-transformers/src/models/granite.rs:296-301 | candle-transformers/src/models/granitemoehybrid.rs:346-351 | candle-transformers/src/models/lfm2.rs:389-394 | candle-transformers/src/models/llama.rs:342-347 | candle-transformers/src/models/voxtral/voxtral_llama.rs:256-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29361ab598d128b3fc8956d113e7cc29104a0dd881dd3a179c7610d81687046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:145-150 | candle-core/src/cuda_backend/mod.rs:176-181 | candle-core/src/cuda_backend/mod.rs:307-312 | candle-nn/src/ops.rs:107-112 \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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c446c845469cc8abe06c8a2d45b32df534eb45eb59e6d57a6a654407e687b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-nn/src/ops.rs:832-837 | candle-nn/src/rotary_emb.rs:152-157 | candle-nn/src/rotary_emb.rs:457-462 | candle-nn/src/rotary_emb.rs:731-736 \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":"candle-nn/src/ops.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fb8b76c94ccc2816a2ba694fb9197e72065fe1afdfb9073cb3b52245eaa052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-transformers/src/models/granite.rs:297-302 | candle-transformers/src/models/granitemoehybrid.rs:347-352 | candle-transformers/src/models/llama2_c.rs:204-209 | candle-transformers/src/models/quantized_llama2_c.rs:91-96 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:297\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d3edc0b09134b5da0d42eb5f5615a0ca07682c4fda5d5dc76d9b39f8d76a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-transformers/src/models/helium.rs:70-75 | candle-transformers/src/models/mistral.rs:121-126 | candle-transformers/src/models/nvembed_v2/embedding.rs:21-26 | candle-transformers/src/models/quantized_mistral.rs:36-41 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"97881e9b1177c9133f3d0f8a475ae110b8dc0955a71607d6b3a400cb16b5bbc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-transformers/src/models/quantized_qwen3.rs:437-443 | candle-transformers/src/models/qwen3.rs:386-392 | candle-transformers/src/models/smol/smollm3.rs:337-343 | candle-transformers/src/models/z_image/text_encoder.rs:350-356 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/quantized_qwen3.rs:445\u0060 calls \u0060clear_kv_cache\u0060 and \u0060candle-transformers/src/models/z_image/text_encoder.rs:357\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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7333aee2e1defbedfbfe4b76642d6f2227033d18d59349660a2932614399b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/conv.rs:195-200 | candle-core/src/conv.rs:261-266 | candle-core/src/conv.rs:331-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/conv.rs:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/conv.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7f1bff3e53d4ea2904676da7d777fb96123a01d5bb30bc1f0d051621e77ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cpu_backend/mod.rs:1460-1465 | candle-core/src/cpu_backend/mod.rs:1541-1546 | candle-core/src/cpu_backend/mod.rs:1632-1637 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adea2e405cfd370be1e0cafac3ebf0d1276ebcd68389398ef61fc0805d41eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cuda_backend/mod.rs:590-595 | candle-core/src/cuda_backend/mod.rs:644-649 | candle-core/src/cuda_backend/mod.rs:696-701 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/cuda_backend/mod.rs:590\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f99c89f77f185afa0694e116c9d345b946d589327acca4b66f2477f852bccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cuda_backend/mod.rs:958-963 | candle-core/src/cuda_backend/mod.rs:1003-1008 | candle-core/src/cuda_backend/mod.rs:1049-1054 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/cuda_backend/mod.rs:958\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec45251d67e026c3cdffa5a62d3e6bd9881e363dd478465bbf4ec946d7fa9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:1520-1525 | candle-core/src/quantized/k_quants.rs:1785-1790 | candle-core/src/quantized/simd128.rs:225-230 \u2014 before extracting anything, compare \u0060candle-core/src/quantized/k_quants.rs\u0060 and \u0060candle-core/src/quantized/simd128.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d823fe47ae484c6b653a6eb700a0423d6f8e96aff233248c39c442ed8bfb5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-metal-kernels/src/kernels/affine.rs:50-55 | candle-metal-kernels/src/kernels/affine.rs:117-122 | candle-metal-kernels/src/kernels/affine.rs:183-188 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf157b691f9d2d38a9bbb71326150e67605d36628a7bf2c262faf61643a00ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-nn/src/ops.rs:354-359 | candle-nn/src/ops.rs:573-578 | candle-nn/src/ops.rs:816-821 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/ops.rs:354\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ee48ec63a2007d18d9fc0d7f68f2327a6dd06a6369c3735b3e37b6fe64f247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-onnx/src/eval.rs:477-483 | candle-onnx/src/eval.rs:512-518 | candle-onnx/src/eval.rs:876-882 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-onnx/src/eval.rs:874\u0060 calls \u0060copied\u0060, \u0060unwrap_or\u0060 and \u0060candle-onnx/src/eval.rs:475\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":"candle-onnx/src/eval.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e376c303f44b946353aaeb7393636ffb77f6fe07e4c34ebc1cf1f9b498bc729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/chinese_clip/mod.rs:198-203 | candle-transformers/src/models/clip/mod.rs:141-146 | candle-transformers/src/models/mobileclip.rs:90-95 \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 \u0060candle-transformers/src/models/chinese_clip/mod.rs:198\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9859fa8029d81f292cb14fcdb324dd2717d6023d48c0157276510b3e360136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/chinese_clip/vision_model.rs:204-210 | candle-transformers/src/models/clip/text_model.rs:170-176 | candle-transformers/src/models/stable_diffusion/clip.rs:245-251 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chinese_clip/vision_model.rs:204\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0df7af007a009c2ff408c5d134474948b41607ebdf1f414828dd9b5ca27571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/clip/mod.rs:137-142 | candle-transformers/src/models/mobileclip.rs:86-91 | candle-transformers/src/models/siglip.rs:786-791 \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":"candle-transformers/src/models/clip/mod.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6c848885e992f40235f6f6b66f50db6d27bd6993f875f0b63926571dcf2888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/fastvit.rs:182-189 | candle-transformers/src/models/mobileone.rs:110-117 | candle-transformers/src/models/repvgg.rs:126-133 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/fastvit.rs\u0060 and \u0060candle-transformers/src/models/mobileone.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/fastvit.rs:182\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad444c3fc2acb653b292a5fcf2a3b6d1cdb05adbae7a195524da28f280c86f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-transformers/src/models/gemma.rs:128-136 | candle-transformers/src/models/gemma2.rs:121-129 | candle-transformers/src/models/gemma3.rs:126-134 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f95369bc5926c2d1ae276f44f5dc659fe435bb6f099d178ae9159be2dd21369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/paddleocr_vl/mod.rs:358-363 | candle-transformers/src/models/paddleocr_vl/mod.rs:476-481 | candle-transformers/src/models/paddleocr_vl/mod.rs:765-770 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/paddleocr_vl/mod.rs:358\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6a3fe773f7d3f2d53baae57db85c12f55bd0aaef1c3c07742481b5decc9300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/paddleocr_vl/text.rs:298-303 | candle-transformers/src/models/paddleocr_vl/text.rs:433-439 | candle-transformers/src/models/paddleocr_vl/text.rs:558-563 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/paddleocr_vl/text.rs:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed07950737bff1601ded2ad7e70518f90fc6c58b77b8b7603cda765ce77b8c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): candle-core/src/cpu_backend/conv2d.rs:140-145 | candle-core/src/cpu_backend/conv2d.rs:287-292 | candle-core/src/cpu_backend/mod.rs:1324-1327 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cpu_backend/conv2d.rs:287\u0060 calls \u0060zero\u0060 and \u0060candle-core/src/cpu_backend/mod.rs:1324\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d288f465f74794ed3cc8dfc780a2f53edc6a1fc14b99ee0fbe933b37f7c8c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:688-693 | candle-core/src/cpu_backend/mod.rs:748-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:688\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5212403d459de6e34e56f5642f1fdc122fb7f27559bd25e80983440e99fb0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:914-919 | candle-core/src/cpu_backend/mod.rs:936-942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:914\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c50520a8c7f9e87adbf740060c54e2f78f8d5c83452f08e0082e6f690cacb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1902-1908 | candle-core/src/cuda_backend/mod.rs:2088-2094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1902\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0db6a7e319badf2cc613a72a4d7593fe66decb5031b8cfccb2e8a00a6dd88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1913-1919 | candle-core/src/cuda_backend/mod.rs:2099-2105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1913\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ca11cc69f9a6cb14c8d484044be40bab062cab65267eb761b3de4b167970b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1921-1927 | candle-core/src/cuda_backend/mod.rs:2107-2113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1921\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"d613d08f720255b608b7793c8518a81076d8fd24c60e1fc96896e466f9dbfaab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1929-1935 | candle-core/src/cuda_backend/mod.rs:2115-2121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1929\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba58f1cd330cad1de199841cdb7d63ea73627102f6bf90c8294cf0ee265e1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:2036-2041 | candle-core/src/metal_backend/mod.rs:1161-1167 \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 \u0060candle-core/src/metal_backend/mod.rs:1161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"6223721d36aaa054302d23b0d4c7bdf2db4b501241ff32fa3c60e807df754e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:469-474 | candle-core/src/quantized/k_quants.rs:786-791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:469\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f52f24f1fc9d68acd44f5e61925f72e43de64e682e35d9089d086d3f6916c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1690-1700 | candle-core/src/quantized/k_quants.rs:1992-2002 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca020e103cc619a5632d4ccc9cdd30595734dce9eb3718bfc2c9ca14f054008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/mod.rs:959-964 | candle-core/src/quantized/mod.rs:1018-1023 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"400d278eb269dc0cf637cfe43d7aba05dce82cf742692bd1bb4b3508941cc025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/neon.rs:1397-1402 | candle-core/src/quantized/neon.rs:2135-2140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5d898afe6ceeab9380a958b9eeec5e42b4fb7562cc0109d117f79e8ae625a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/neon.rs:2825-2830 | candle-core/src/quantized/neon.rs:2857-2862 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2825\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2825}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b3ac2b446528a260c27b064b93ac642e80535c6588869870976c329c5cc6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/neon.rs:3251-3256 | candle-core/src/quantized/neon.rs:3529-3534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:3249\u0060 calls \u0060add\u0060, \u0060vld1q_u8_x4\u0060 and \u0060candle-core/src/quantized/neon.rs:3528\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3251}}}],"partialFingerprints":{"codehealthFindingId/v1":"438694554b7432d6e53086824535fae8d7244885e13970bbde30d44a24dfeabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 4): candle-core/src/quantized/neon.rs:3267-3269 | candle-core/src/quantized/neon.rs:3270-3275 | candle-core/src/quantized/neon.rs:3296-3298 | candle-core/src/quantized/neon.rs:3299-3304 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:3268\u0060 calls \u0060vdotq_s32\u0060, \u0060add\u0060, \u0060vaddvq_s32\u0060 and \u0060candle-core/src/quantized/neon.rs:3267\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679e1815d7097c9482b8a02208fac502c6e2c922dadc230bab2301fe6067c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/neon.rs:3983-3988 | candle-core/src/quantized/neon.rs:3989-3994 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3983}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d911643ed7585693db699320b6464862d7272775a57ae68772d983bfb3662f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/repack_x86.rs:338-343 | candle-core/src/quantized/repack_x86.rs:385-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack_x86.rs:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de20f123fcbfb373b9795dceed0c51074433d95283eab22f854ed9d0a85ecd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/safetensors.rs:117-122 | candle-core/src/safetensors.rs:147-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/safetensors.rs:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/safetensors.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a18cc2edb39fc84049d87ec26f000cd5b812782870378265eb1019c5cc1a71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/scalar.rs:29-34 | candle-core/src/scalar.rs:47-52 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/scalar.rs:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/scalar.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa5dd036800e67457d5b10226de1343ac4df875d93cdfe99d7dac3f1a2afeb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/tensor.rs:1991-1996 | candle-core/src/tensor.rs:2022-2027 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:1991\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"528602b36fd41f692233128bd6fe76474ca82f7528a38af644289dd9c98ceefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-flash-attn-v3/src/lib.rs:603-608 | candle-flash-attn/src/lib.rs:701-706 \u2014 before extracting anything, compare \u0060candle-flash-attn-v3/src/lib.rs\u0060 and \u0060candle-flash-attn/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-flash-attn/src/lib.rs:697\u0060 calls \u0060is_some\u0060 and \u0060candle-flash-attn-v3/src/lib.rs:601\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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0444257df063b74116c5a222f2eb5c2d85eaca6f776095d26eaae9001260a310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-onnx/src/eval.rs:664-672 | candle-onnx/src/eval.rs:729-737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcf6ff8752ba58914709a5ff98609ee5b3d04e45e86509501fe3942cf9a0483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/bert.rs:238-244 | candle-transformers/src/models/chinese_clip/text_model.rs:246-252 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d60a795c3503e1265d52b17a22e7a860eb6599546bd06521ef4829e57cbe3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:487-492 | candle-transformers/src/models/quantized_blip_text.rs:483-488 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/blip_text.rs:487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f64adefecf683e20bdd379cb0c9187a26e4f7af245339078b1236bb1009b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/deepseek2.rs:354-360 | candle-transformers/src/models/paddleocr_vl/text.rs:50-55 | candle-transformers/src/models/qwen3_vl/text.rs:34-39 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/deepseek2.rs\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/deepseek2.rs:354\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/deepseek2.rs:354\u0060 calls \u0060matmul\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/text.rs:50\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"101d194fef1ff6ad24cf09c6eb760ba1a11b39743fa045d3395cff9cc150a9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/dinov2.rs:382-387 | candle-transformers/src/models/dinov2reg4.rs:297-302 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060candle-transformers/src/models/dinov2.rs:388\u0060 calls \u0060i\u0060, \u0060mean\u0060, \u0060cat\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs:303\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":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b4310f2884153062309f03be6dcb404250278024f793898453e83b6f6f8d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/efficientvit.rs:169-177 | candle-transformers/src/models/mobilenetv4.rs:318-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2795ca105c77e921801f3ebc91659c28ed8e23e3d5e0964743e01e4064d928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:515-522 | candle-transformers/src/models/flux/quantized_model.rs:354-361 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f3164425da86c819e6dbef7aa3e2e5e8a3b1d8140ff37e1e2492071fe89c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/gemma4/text.rs:316-321 | candle-transformers/src/models/qwen3_vl/text.rs:160-165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/gemma4/text.rs:314\u0060 calls \u0060forward\u0060 and \u0060candle-transformers/src/models/qwen3_vl/text.rs:158\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":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71a5b3e9e64ceb2a16b2407b21993517c8589607539e4036b8e7c3f1127c739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/helium.rs:331-337 | candle-transformers/src/models/phi3.rs:367-373 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 16 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/helium.rs:331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f466a59056988d7b5226473ba81d5fcab4d651ddafdb98cbb3be71b681fced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/lfm2.rs:166-171 | candle-transformers/src/models/voxtral/voxtral_llama.rs:91-97 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/lfm2.rs\u0060 and \u0060candle-transformers/src/models/voxtral/voxtral_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf168b86e145e228afda466f160ae688ef0409c2200cc0b74cdc59b7f83d9d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 5): candle-transformers/src/models/granite.rs:436-439 | candle-transformers/src/models/llama.rs:505-508 | candle-transformers/src/models/llama2_c.rs:351-356 | candle-transformers/src/models/quantized_llama2_c.rs:238-243 | candle-transformers/src/models/voxtral/voxtral_llama.rs:440-443 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 309 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llama2_c.rs:351\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/llama2_c.rs:350\u0060 calls \u0060iter\u0060, \u0060enumerate\u0060, \u0060forward\u0060 and \u0060candle-transformers/src/models/granite.rs:436\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"27291c959acf50cabc1ace1280825c5de3209da21dd6b2f8e2fe63b05dab914f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:46-51 | candle-wasm-examples/llama2-c/src/worker.rs:45-50 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"82089dd30686c86a3c39f9f8f3ea71ace9b2df1b945863500f06841d8e71fa73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/marian.rs:223-228 | candle-transformers/src/models/quantized_qwen3.rs:112-117 \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":"candle-transformers/src/models/marian.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"55db075968f3f2f73e60b8927d891fd7cb02545130add60c3fb2c3ca3a6b1556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/mimi/transformer.rs:151-157 | candle-transformers/src/models/mimi/transformer.rs:280-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. 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":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"142657cbc1bfc60b51e1108c7bfa14f0d4c7eac4926456bb704e1ade445d17c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:172-177 | candle-transformers/src/models/quantized_mixformer.rs:84-89 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf2f60d28bdad7c95b54973b664033c6d2bf97d4d89cc6284c5711de79a788e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:204-210 | candle-transformers/src/models/quantized_mixformer.rs:131-137 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d610fbaf226e2fd46e361c47ec323c20644b65254d4a9369b7c420f7471d9121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:424-429 | candle-transformers/src/models/quantized_mixformer.rs:339-344 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:424\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"28108954d17b6314d59fb6a76c134dcb7da106b929905f2b837db3ad302828da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:444-450 | candle-transformers/src/models/quantized_mixformer.rs:359-365 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76571678cb862771e14fd2c8d5a9a823f3dc6a14c1955740d345a079d913755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/mmdit/projections.rs:89-95 | candle-transformers/src/models/mmdit/projections.rs:97-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/projections.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9687afcf649337ac34242868cabfab94f3336e42842bdb9729f688f6d8ffc1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/mpt.rs:246-252 | candle-transformers/src/models/quantized_mpt.rs:185-191 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4b57bc2f79f744050d61e7e9b83a1182020307b5ff7ecc27eb55f2e514fad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:96-101 | candle-transformers/src/models/paddleocr_vl/text.rs:245-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":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62bded742d4d470e4c9a63f85d499472569dc48e95397e692bda57f439f8c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/quantized_glm4.rs:113-118 | candle-transformers/src/models/quantized_qwen3.rs:105-110 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f528fd31787147c2d9d6905a8dc828b417bfd38b98a23ce3bab1717aff245cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/quantized_llama.rs:452-457 | candle-transformers/src/models/quantized_qwen2.rs:237-242 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42c0f696186ea4c74d0328fa5153113110556e1bb5178699b496665e0064981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 17): candle-nn/src/attention/cpu_flash/causal.rs:86-88 | candle-nn/src/attention/cpu_flash/causal.rs:91-93 | candle-nn/src/attention/cpu_flash/causal.rs:96-98 | candle-nn/src/attention/cpu_flash/varlen.rs:185-187 | candle-nn/src/attention/cpu_flash/varlen.rs:191-193 | candle-nn/src/attention/cpu_flash/varlen.rs:197-199 | candle-transformers/src/models/quantized_qwen3.rs:274-276 | candle-transformers/src/models/quantized_qwen3.rs:278-283 | candle-transformers/src/models/quantized_qwen3.rs:285-290 | candle-transformers/src/models/quantized_qwen3.rs:291-296 | candle-transformers/src/models/quantized_qwen3.rs:323-325 | candle-transformers/src/models/quantized_qwen3.rs:328-330 | candle-transformers/src/models/smol/quantized_smollm3.rs:407-409 | candle-transformers/src/models/smol/quantized_smollm3.rs:412-414 | candle-transformers/src/models/smol/quantized_smollm3.rs:417-419 | candle-transformers/src/models/smol/quantized_smollm3.rs:506-508 | candle-transformers/src/models/smol/quantized_smollm3.rs:511-513 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/smol/quantized_smollm3.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/attention/cpu_flash/causal.rs:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-nn/src/attention/cpu_flash/causal.rs:91\u0060 calls \u0060storage_and_layout\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs:291\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a7f1b1617b176e19952e2d526e3b2316f97d09fc550be42a837043d8c4cc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): candle-transformers/src/models/lfm2.rs:285-287 | candle-transformers/src/models/qwen2.rs:131-136 | candle-transformers/src/models/qwen2_moe.rs:138-143 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/qwen2.rs\u0060 and \u0060candle-transformers/src/models/qwen2_moe.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e142f64bf1de693dd7e80ac67f34de6b5a25ebf7e1736b2c0cb8b2835428fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/smol/quantized_smollm3.rs:334-339 | candle-transformers/src/models/smol/quantized_smollm3.rs:342-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/smol/quantized_smollm3.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"be72adea1120b56f8357f8e76042f62f6a597c392422fc0f32066262b5ecb524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): candle-transformers/src/models/vgg.rs:148-150 | candle-transformers/src/models/vgg.rs:176-181 | candle-transformers/src/models/vgg.rs:223-228 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/vgg.rs:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/vgg.rs:175\u0060 calls \u0060conv2d_block\u0060 and \u0060candle-transformers/src/models/vgg.rs:148\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":"candle-transformers/src/models/vgg.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4911e8b5e2123cd896d5d807543f320fa9d019e416980c0a4e3f2399b7b859f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:184-191 | candle-transformers/src/models/whisper/quantized_model.rs:181-188 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22cbc9ca24379f0f8dc172a4d045785fbeeee7d077beba49cb36d85770136b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:346-355 | candle-transformers/src/models/whisper/quantized_model.rs:350-359 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef50b9344c4cd0140ece9a027b8605f8094063508530d5e1ebc85d585b5b90c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 23): candle-transformers/src/models/gemma.rs:213-217 | candle-transformers/src/models/gemma2.rs:208-212 | candle-transformers/src/models/gemma3.rs:234-238 | candle-transformers/src/models/gemma4/text.rs:320-324 | candle-transformers/src/models/glm4_new.rs:205-209 | candle-transformers/src/models/mixtral.rs:194-198 | candle-transformers/src/models/olmo.rs:182-186 | candle-transformers/src/models/olmo2.rs:170-174 | candle-transformers/src/models/paddleocr_vl/text.rs:805-809 | candle-transformers/src/models/paddleocr_vl/text.rs:910-914 | candle-transformers/src/models/phi.rs:210-214 | candle-transformers/src/models/phi3.rs:222-226 | candle-transformers/src/models/quantized_glm4.rs:240-244 | candle-transformers/src/models/quantized_qwen3.rs:251-255 | candle-transformers/src/models/quantized_stable_lm.rs:129-133 | candle-transformers/src/models/qwen2.rs:171-175 | candle-transformers/src/models/qwen2_moe.rs:178-182 | candle-transformers/src/models/qwen3.rs:205-209 | candle-transformers/src/models/smol/smollm3.rs:255-259 | candle-transformers/src/models/stable_lm.rs:252-256 | candle-transformers/src/models/starcoder2.rs:174-178 | candle-transformers/src/models/yi.rs:210-214 | candle-transformers/src/models/z_image/text_encoder.rs:284-288 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/gemma3.rs:239\u0060 calls \u0060forward\u0060 and \u0060candle-transformers/src/models/gemma.rs:219\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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bb7ceff6a4196544c18cfda993ba97ec945d7d73df2fe14c6531c908d34ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): candle-transformers/src/models/based.rs:317-321 | candle-transformers/src/models/gemma.rs:86-90 | candle-transformers/src/models/gemma2.rs:79-83 | candle-transformers/src/models/glm4_new.rs:48-52 | candle-transformers/src/models/olmo.rs:47-51 | candle-transformers/src/models/olmo2.rs:39-43 | candle-transformers/src/models/qwen2.rs:50-54 | candle-transformers/src/models/qwen2_moe.rs:58-62 | candle-transformers/src/models/qwen3.rs:45-49 | candle-transformers/src/models/recurrent_gemma.rs:113-117 | candle-transformers/src/models/smol/quantized_smollm3.rs:180-184 | candle-transformers/src/models/smol/smollm3.rs:75-79 | candle-transformers/src/models/stable_lm.rs:95-99 | candle-transformers/src/models/starcoder2.rs:55-59 | candle-transformers/src/models/z_image/text_encoder.rs:117-121 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/based.rs\u0060 and \u0060candle-transformers/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 8 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextEncoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff82564425fca952c13c1408de63f750627d3b6afa2d070b68199b47c8b0655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): candle-transformers/src/models/gemma.rs:320-324 | candle-transformers/src/models/helium.rs:298-302 | candle-transformers/src/models/mistral.rs:347-351 | candle-transformers/src/models/mixtral.rs:390-395 | candle-transformers/src/models/nvembed_v2/embedding.rs:207-213 | candle-transformers/src/models/olmo.rs:257-261 | candle-transformers/src/models/phi3.rs:334-338 | candle-transformers/src/models/quantized_mistral.rs:238-242 | candle-transformers/src/models/quantized_stable_lm.rs:219-223 | candle-transformers/src/models/qwen2.rs:250-254 | candle-transformers/src/models/qwen2_moe.rs:383-387 | candle-transformers/src/models/stable_lm.rs:349-353 | candle-transformers/src/models/starcoder2.rs:250-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_stable_lm.rs:218\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/gemma.rs:319\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b951559adb50e5aa14c196a5ba98e6a3f84be7a2bcf17130ce698736d187cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 17): candle-transformers/src/models/gemma.rs:350-353 | candle-transformers/src/models/gemma2.rs:369-372 | candle-transformers/src/models/helium.rs:329-333 | candle-transformers/src/models/mistral.rs:379-383 | candle-transformers/src/models/mixtral.rs:420-424 | candle-transformers/src/models/nvembed_v2/embedding.rs:233-237 | candle-transformers/src/models/olmo.rs:288-292 | candle-transformers/src/models/olmo2.rs:284-288 | candle-transformers/src/models/paddleocr_vl/text.rs:1116-1118 | candle-transformers/src/models/phi3.rs:365-369 | candle-transformers/src/models/quantized_mistral.rs:269-273 | candle-transformers/src/models/quantized_stable_lm.rs:246-250 | candle-transformers/src/models/qwen2.rs:281-285 | candle-transformers/src/models/qwen2_moe.rs:413-416 | candle-transformers/src/models/stable_lm.rs:377-381 | candle-transformers/src/models/starcoder2.rs:282-286 | candle-transformers/src/models/yi.rs:310-314 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:350\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/helium.rs:328\u0060 calls \u0060with_capacity\u0060, \u0060pp\u0060 and \u0060candle-transformers/src/models/gemma.rs:350\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"851d7f52e1cba7e9fe59e9c746e23d0ca705dc9e4824cd0c61ef21d506d1008e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): candle-transformers/src/models/gemma.rs:298-303 | candle-transformers/src/models/gemma2.rs:300-305 | candle-transformers/src/models/gemma3.rs:338-344 | candle-transformers/src/models/helium.rs:276-281 | candle-transformers/src/models/mistral.rs:325-330 | candle-transformers/src/models/nvembed_v2/embedding.rs:185-190 | candle-transformers/src/models/quantized_mistral.rs:216-221 | candle-transformers/src/models/qwen2.rs:228-233 | candle-transformers/src/models/yi.rs:262-266 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae98e6585b34d33274582b6f32e7b2dd774d6672698647955804f3127516411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): candle-transformers/src/models/helium.rs:77-81 | candle-transformers/src/models/mimi/transformer.rs:65-69 | candle-transformers/src/models/mistral.rs:128-132 | candle-transformers/src/models/mixformer.rs:157-161 | candle-transformers/src/models/quantized_mistral.rs:43-47 | candle-transformers/src/models/quantized_mixformer.rs:69-73 | candle-transformers/src/models/qwen3.rs:51-55 | candle-transformers/src/models/smol/smollm3.rs:81-85 | candle-transformers/src/models/z_image/text_encoder.rs:123-127 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/helium.rs:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"823112442174f71910f11f46e19e5a380de9e2f44bbc1096c8da5518b9bafc95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): candle-transformers/src/models/codegeex4_9b.rs:79-83 | candle-transformers/src/models/flux/model.rs:86-90 | candle-transformers/src/models/gemma3.rs:84-88 | candle-transformers/src/models/gemma4/text.rs:69-73 | candle-transformers/src/models/glm4.rs:101-105 | candle-transformers/src/models/modernbert.rs:62-66 | candle-transformers/src/models/quantized_glm4.rs:114-118 | candle-transformers/src/models/quantized_qwen3.rs:106-110 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"908535dbe6edfe5dc886a3c8c0f9b5cd4a31f479e5aed93eee310e15a57ce33f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): candle-transformers/src/models/deepseek2.rs:348-352 | candle-transformers/src/models/mimi/transformer.rs:62-66 | candle-transformers/src/models/mixformer.rs:154-158 | candle-transformers/src/models/paddleocr_vl/text.rs:43-49 | candle-transformers/src/models/quantized_mistral.rs:40-44 | candle-transformers/src/models/quantized_mixformer.rs:66-70 | candle-transformers/src/models/qwen3_vl/text.rs:28-32 | candle-transformers/src/models/trocr.rs:111-115 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/deepseek2.rs\u0060 and \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/deepseek2.rs:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a968a25ebc11f73d257cfc0546f190730b9579f7fa243a03b722314a2614e38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): candle-core/src/cpu/avx.rs:316-321 | candle-core/src/cpu/avx.rs:357-361 | candle-core/src/cpu/neon.rs:521-526 | candle-core/src/cpu/neon.rs:562-566 | candle-core/src/cpu/simd128.rs:206-211 | candle-core/src/cpu/simd128.rs:245-249 \u2014 before extracting anything, compare \u0060candle-core/src/cpu/avx.rs\u0060 and \u0060candle-core/src/cpu/neon.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/avx.rs:316\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/cpu/avx.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe4411921af5057232e986d93498c5b2ee9ead64354bac7fc33b9013ac3abc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 7): candle-transformers/src/models/gemma.rs:69-73 | candle-transformers/src/models/gemma2.rs:62-66 | candle-transformers/src/models/gemma3.rs:57-61 | candle-transformers/src/models/gemma4/audio.rs:35-36 | candle-transformers/src/models/gemma4/text.rs:37-41 | candle-transformers/src/models/gemma4/vision.rs:36-40 | candle-transformers/src/models/recurrent_gemma.rs:86-90 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a971ea4a3ebc199e09f37fa1f9fe0639c46c49775809c3eddae45ff7f0b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): candle-transformers/src/models/granite.rs:249-255 | candle-transformers/src/models/granitemoehybrid.rs:298-304 | candle-transformers/src/models/llama.rs:295-301 | candle-transformers/src/models/llama2_c.rs:184-190 | candle-transformers/src/models/quantized_llama2_c.rs:71-77 | candle-transformers/src/models/voxtral/voxtral_llama.rs:209-215 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:249\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ef09a8af786e42f4bf293f7f3d0f7310d084b3301ed63da22b5f78d2f4ec89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): candle-transformers/src/models/helium.rs:71-75 | candle-transformers/src/models/mimi/transformer.rs:59-63 | candle-transformers/src/models/mistral.rs:122-126 | candle-transformers/src/models/nvembed_v2/embedding.rs:22-26 | candle-transformers/src/models/quantized_mistral.rs:37-41 | candle-transformers/src/models/qwen3_vl/text.rs:25-29 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/helium.rs\u0060 and \u0060candle-transformers/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"729cc51be2acba5ccdc218dad29a0e677510f46f7eb6d2d038a32ba081ea5c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): candle-transformers/src/models/lfm2.rs:329-333 | candle-transformers/src/models/paddleocr_vl/text.rs:897-902 | candle-transformers/src/models/quantized_glm4.rs:213-217 | candle-transformers/src/models/quantized_qwen3.rs:240-245 | candle-transformers/src/models/quantized_stable_lm.rs:119-123 | candle-transformers/src/models/stable_lm.rs:242-246 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bf713848edcfb75612f8355fc7641a1633b58a69dee96653e7ffbafe68859e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): candle-core/src/cpu_backend/mod.rs:3017-3022 | candle-core/src/cpu_backend/mod.rs:3024-3029 | candle-core/src/cpu_backend/mod.rs:3031-3036 | candle-core/src/cpu_backend/mod.rs:3038-3043 | candle-core/src/cpu_backend/mod.rs:3045-3050 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":3017}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3d7843f69878eb6a3613c8ddfaeb5f258410eebd4a78a61e63382a68419597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): candle-core/src/cuda_backend/mod.rs:153-157 | candle-core/src/cuda_backend/mod.rs:184-188 | candle-core/src/cuda_backend/mod.rs:315-319 | candle-core/src/cuda_backend/mod.rs:496-500 | candle-core/src/cuda_backend/mod.rs:1129-1133 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:189\u0060 calls \u0060from_f64\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:158\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1dab77805e09929dc1681edd065e3dc80013b157abfdd8b23ddfc02c79a483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): candle-nn/src/ops.rs:588-592 | candle-nn/src/ops.rs:832-836 | candle-nn/src/rotary_emb.rs:152-156 | candle-nn/src/rotary_emb.rs:457-461 | candle-nn/src/rotary_emb.rs:731-735 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-nn/src/ops.rs:837\u0060 calls \u0060arg\u0060 and \u0060candle-nn/src/ops.rs:593\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"059a7bad440c68159080409deaf96381e597e9e8f645540c37c638a90e073443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): candle-transformers/src/models/granite.rs:154-158 | candle-transformers/src/models/granitemoehybrid.rs:197-201 | candle-transformers/src/models/lfm2.rs:167-171 | candle-transformers/src/models/llama.rs:198-202 | candle-transformers/src/models/voxtral/voxtral_llama.rs:93-97 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb17feea82f53fe6f8ba034150f7afbd631d46293081acae6c467ed7b62bf0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): candle-transformers/src/models/granite.rs:290-294 | candle-transformers/src/models/granitemoehybrid.rs:338-342 | candle-transformers/src/models/lfm2.rs:383-387 | candle-transformers/src/models/llama.rs:336-340 | candle-transformers/src/models/voxtral/voxtral_llama.rs:250-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:290\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c690da8340a7343b8c90b0d5bf6338e7ade02e114a6f87daa1bbef2770ed88f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 6): candle-transformers/src/models/marian.rs:217-221 | candle-transformers/src/models/mixformer.rs:151-155 | candle-transformers/src/models/mixtral.rs:88-91 | candle-transformers/src/models/quantized_mixformer.rs:63-67 | candle-transformers/src/models/snac.rs:122-126 | candle-transformers/src/models/yi.rs:86-90 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixtral.rs:88\u0060 it begins part-way through the construct above it, so those exact 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":"candle-transformers/src/models/marian.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a25633746ac72530a823930a8ec83310fc468cf4b1748c5487174a054bf9f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:738-742 | candle-core/src/cuda_backend/mod.rs:784-788 | candle-core/src/cuda_backend/mod.rs:855-859 | candle-core/src/cuda_backend/mod.rs:903-907 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:782\u0060 calls \u0060out_w\u0060, \u0060out_h\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:737\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb646452669d4223e38109083ee1ddeacd019e80844e4aef0c3e82e3059fa5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): candle-core/src/quantized/k_quants.rs:968-976 | candle-core/src/quantized/k_quants.rs:1290-1298 | candle-core/src/quantized/k_quants.rs:1631-1639 | candle-core/src/quantized/k_quants.rs:1912-1920 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:968\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"026bebb0ddf1f67c0b2e6b4d1de8663f79e1c682ba22d795d40726c37c3799ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-core/src/quantized/k_quants.rs:1601-1606 | candle-core/src/quantized/k_quants.rs:1667-1672 | candle-core/src/quantized/k_quants.rs:1866-1871 | candle-core/src/quantized/k_quants.rs:1948-1953 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1601\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b30d9fe658b5b66418c214ceb4b5c69394a6e9c523510c40e076c13de908910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-core/src/quantized/neon.rs:369-373 | candle-core/src/quantized/neon.rs:446-450 | candle-core/src/quantized/neon.rs:2827-2831 | candle-core/src/quantized/neon.rs:2859-2863 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:369\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/quantized/neon.rs:368\u0060 calls \u0060vdupq_n_u8\u0060 and \u0060candle-core/src/quantized/neon.rs:2826\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d76fb52ff094f20cda55bd0c575df13a3c6986891ef878a14ee8e364fec0328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-core/src/quantized/neon.rs:690-694 | candle-core/src/quantized/neon.rs:863-867 | candle-core/src/quantized/neon.rs:2981-2985 | candle-core/src/quantized/neon.rs:3123-3127 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:690\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee3b26858e790feeb52134bcd2c084994c29cc2515b5e4d8c22308f6ed4e863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-transformers/src/models/granite.rs:160-164 | candle-transformers/src/models/granitemoehybrid.rs:203-207 | candle-transformers/src/models/llama.rs:206-210 | candle-transformers/src/models/voxtral/voxtral_llama.rs:101-105 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"74677b4b1c43032138ad617d1bd8e6ed660ee4da68c480ff6a50d1621fd749fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): candle-core/src/cpu/neon.rs:62-65 | candle-core/src/cpu/neon.rs:130-134 | candle-core/src/cpu/neon.rs:329-333 | candle-core/src/cpu/neon.rs:410-414 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/neon.rs:62\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/cpu/neon.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4770dc990331f1d529ceec84ab7295af61766ec0bfea4fb5bc23dfb5e3351268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cpu_backend/mod.rs:408-413 | candle-core/src/cpu_backend/mod.rs:447-452 | candle-core/src/cpu_backend/mod.rs:524-529 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/cpu_backend/mod.rs:408\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cpu_backend/mod.rs:407\u0060 calls \u0060from_f64\u0060 and \u0060candle-core/src/cpu_backend/mod.rs:446\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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ed81a4c21178aa8dfbdce4721424a1d0a3648be5977091e0d4baa952f8316e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:2605-2609 | candle-core/src/quantized/neon.rs:1828-1832 | candle-core/src/quantized/neon.rs:2615-2619 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:2605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2605}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e442f9ce56a936f5bd61284b8a0bd09ea8fe30d3bb7e03d4b16f6d50a25c001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-core/src/quantized/neon.rs:1139-1143 | candle-core/src/quantized/neon.rs:1888-1892 | candle-core/src/quantized/neon.rs:2675-2679 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1139\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"034b1cee99e94d735c47e7a438d0d12348b97fbc8adc36a8950a2e2b60b7e200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-core/src/quantized/neon.rs:3977-3982 | candle-core/src/quantized/neon.rs:3984-3988 | candle-core/src/quantized/neon.rs:3990-3994 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:3977\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"f645af03dcf49abff3e208c22159dd4e34d34d283501e46288849b06672a14bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-core/src/tensor.rs:1641-1645 | candle-core/src/tensor.rs:1830-1834 | candle-core/src/tensor.rs:1892-1896 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/tensor.rs:1641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7534d34b9cd1d6572fa57dedef963aeadb9664f606609188077830add80b0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-nn/src/ops.rs:299-303 | candle-nn/src/ops.rs:479-483 | candle-nn/src/ops.rs:733-737 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/ops.rs:299\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"97413d69d65464e1836e685e883ee04e91f9675d2d417f6ae4d306bd15896dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-nn/src/ops.rs:412-416 | candle-nn/src/ops.rs:634-638 | candle-nn/src/ops.rs:883-887 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-nn/src/ops.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd56a6649e079f31717f3203d6e3c76ffac8c4fb03d60e9cd713f0c5be4c37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/blip.rs:223-228 | candle-transformers/src/models/quantized_blip.rs:184-189 | candle-transformers/src/models/siglip.rs:498-502 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63428f9a4bccd6cfb0c1d876f8be9e4132b415ed86bc7d0a988f9df7abc5539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/dinov2.rs:269-274 | candle-transformers/src/models/dinov2reg4.rs:261-266 | candle-transformers/src/models/eva2.rs:305-310 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/dinov2.rs\u0060 and \u0060candle-transformers/src/models/dinov2reg4.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"081fe713480589b4d0eb09de09c4944e441784eac8aa6f985fd593d1e2cbc515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/granite.rs:304-309 | candle-transformers/src/models/granitemoehybrid.rs:354-359 | candle-transformers/src/models/llama.rs:351-356 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:304\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fce50ec5a100d60251d7ab0cdda04729c8025637e68b0f04729c1dfd50b2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 5): candle-transformers/src/models/granite.rs:396-400 | candle-transformers/src/models/llama.rs:443-447 | candle-transformers/src/models/llama2_c.rs:314-317 | candle-transformers/src/models/quantized_llama2_c.rs:201-204 | candle-transformers/src/models/voxtral/voxtral_llama.rs:367-371 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2212bfe8ea1b9696b3a6abd7a3c85d5619e47b4399470e08a15f401d0e70a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/llama2_c.rs:195-202 | candle-transformers/src/models/quantized_llama2_c.rs:82-89 | candle-wasm-examples/llama2-c/src/model.rs:113-120 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"051cfde443cbcfd1d0a208d2950c77b51d2f50aa7008035a243e1e7e6ffcb877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/paddleocr_vl/text.rs:407-411 | candle-transformers/src/models/paddleocr_vl/text.rs:498-502 | candle-transformers/src/models/paddleocr_vl/text.rs:658-662 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-transformers/src/models/paddleocr_vl/text.rs:407\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"357c1baedf2e7f4f84a1060bfb3c21591cfdd2e622abadd89efc1ed4da34961b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/parler_tts.rs:138-142 | candle-transformers/src/models/quantized_stable_lm.rs:155-159 | candle-transformers/src/models/stable_lm.rs:278-282 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/parler_tts.rs:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/parler_tts.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a1c082a39dfd9dab29d414c6c17ae3a42d627648dcd1b311ee34bcb3622044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/accelerate.rs:395-402 | candle-core/src/mkl.rs:348-355 \u2014 before extracting anything, compare \u0060candle-core/src/accelerate.rs\u0060 and \u0060candle-core/src/mkl.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aaa26590d386b13757f0cb550a884128cbec2b5c208aa2031654cdda7076d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/accelerate.rs:406-413 | candle-core/src/mkl.rs:359-366 \u2014 before extracting anything, compare \u0060candle-core/src/accelerate.rs\u0060 and \u0060candle-core/src/mkl.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"d685f741cf9a3217337b54091d45c1969c1c587305140d1286bc4ffe372aafce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/cpu/neon.rs:548-555 | candle-core/src/cpu/neon.rs:601-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/neon.rs:548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cpu/neon.rs:545\u0060 calls \u0060vld1q_u16\u0060, \u0060add\u0060, \u0060vreinterpretq_f32_u32\u0060 and \u0060candle-core/src/cpu/neon.rs:600\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":"candle-core/src/cpu/neon.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8b998b227deae7eab226e56fe1762b8aa65a680d7205243f21de5eccba4ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:1030-1034 | candle-core/src/cpu_backend/mod.rs:1254-1259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b2647e623015a548ca9efefc9d12938c9517fac506ee2a616f75feff10c1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): candle-core/src/cpu_backend/mod.rs:2852-2856 | candle-core/src/cpu_backend/mod.rs:2866-2868 | candle-core/src/metal_backend/mod.rs:964-968 | candle-core/src/metal_backend/mod.rs:975-977 | candle-core/src/metal_backend/mod.rs:1168-1171 | candle-core/src/metal_backend/mod.rs:1178-1180 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:2852\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/cpu_backend/mod.rs:2856\u0060 calls \u0060transpose\u0060 and \u0060candle-core/src/cpu_backend/mod.rs:2868\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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a35685cf326784cc9147e7eea07586a87f6c4945f7c0934cfdb91633bb34b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:494-498 | candle-core/src/cuda_backend/mod.rs:549-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:500\u0060 calls \u0060builder_arg\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:554\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4fee965fffb3a59190d3cc618de302a956a514f30f732e0801521680c59256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/avx.rs:56-60 | candle-core/src/quantized/avx.rs:77-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060\u0026[BlockQ4_0]\u0060 in one and \u0060\u0026[BlockQ8_0]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f1bf6e8e907a6687b74eebf17cd68f97eed146be948da66cf39016fb003d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/avx.rs:244-249 | candle-core/src/quantized/neon.rs:3936-3941 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"876f031a46b499a9b7f7c8c3b9f571c60f71424aac0ac05f1e843d3fb372630b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:1021-1025 | candle-core/src/quantized/k_quants.rs:1399-1406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:1021\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeaed34f33d31d8bc488dda62feb12f1ceb9138ec31fe64f4f33725888f2b824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:902-905 | candle-core/src/quantized/k_quants.rs:1565-1569 | candle-core/src/quantized/k_quants.rs:1831-1835 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/k_quants.rs:902\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"759d0f768dfc1286b439b3b3a54b9c21a8bc34cd18ce12e11f58996e7e8dfd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/metal.rs:394-399 | candle-core/src/quantized/metal.rs:409-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/metal.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"9945a32f354dba2f6f8538414d676a5bb1eef42bdcbcb8a7700948cfe2e5d979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/mod.rs:898-902 | candle-core/src/quantized/mod.rs:1326-1330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/mod.rs:898\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2e4b5656e666faceb22d21295cb2ca504e66bb27b027d90b674838a80910be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/mod.rs:1317-1321 | candle-transformers/src/models/t5.rs:87-91 \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 \u0060candle-core/src/quantized/mod.rs:1317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/mod.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"4515eb73ff6270d33a0ac14b89d391a774f1a95afddc487905493faf49ffe051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/neon.rs:541-545 | candle-core/src/quantized/neon.rs:2916-2920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:541\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea66bc61edca0f970ebc59552f71a488f05c76ca957f83e84728f364126e3a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/quantized/neon.rs:1289-1294 | candle-core/src/quantized/neon.rs:1598-1603 \u2014 both copies are in the same file, so extract the block 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, \u0060candle-core/src/quantized/neon.rs:1604\u0060 calls \u0060vdupq_n_s32\u0060 and \u0060candle-core/src/quantized/neon.rs:1296\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"36082f054c4d8ef8116f11f970bc85c20d4ab5115504f32c44b724b5bea89198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): candle-core/src/quantized/neon.rs:1296-1299 | candle-core/src/quantized/neon.rs:1604-1608 | candle-core/src/quantized/neon.rs:1722-1726 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/neon.rs:1296\u0060 it does not close everything it opens, so those exact 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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ebca7c980a8ac4ff5d83913a64ff80644fe3fd923c9c590a660c2ef608c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/quantized/neon.rs:1618-1627 | candle-core/src/quantized/neon.rs:1741-1750 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1618\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce7a0bf48bb845613d01634d8ab371db7d2a0626e8e18c976ce21dca6db4a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/neon.rs:1822-1826 | candle-core/src/quantized/neon.rs:2609-2613 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:1822\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"430c3053bb51f9147350eae118dcc04553a828015b7383809fe20f4f7325ea0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/neon.rs:2012-2017 | candle-core/src/quantized/neon.rs:2165-2169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/quantized/neon.rs:2019\u0060 calls \u0060vdupq_n_s32\u0060 and \u0060candle-core/src/quantized/neon.rs:2171\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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd4c8c4ca08cf72a2bd7cd7eeea19bc5bc8610ebdf0a7508ba314ef02a9940d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/neon.rs:2548-2552 | candle-core/src/quantized/neon.rs:2554-2558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2548}}}],"partialFingerprints":{"codehealthFindingId/v1":"5660c1d999f22298dca94b6e6ec263c41f1e9ba36e98ff29f61c6d0365d6ef84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/quantized/neon.rs:2810-2818 | candle-core/src/quantized/neon.rs:3094-3102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:2810\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":2810}}}],"partialFingerprints":{"codehealthFindingId/v1":"080d49a266a36b7f01036f1df1df92a7b3523ddd2a0e1e8791dee89c4c8d0e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/repack_x86.rs:100-104 | candle-core/src/quantized/repack_x86.rs:143-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/repack_x86.rs:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/repack_x86.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c6e199eb7594920e3db92218ee9f7017b3a3bff5663ad6087becc41c98f521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/tensor.rs:2504-2510 | candle-core/src/tensor.rs:2515-2521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:2504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9379a1af764bcebb3976ff897ac246aa46f107082c39cac0614777eaee8d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-metal-kernels/src/kernels/sdpa.rs:282-286 | candle-metal-kernels/src/kernels/sdpa.rs:427-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/sdpa.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da5ce0b502dc721458c9f431ddd6f0fc9835e8fc7ae48329edbab7ee7345a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-nn/src/attention/cpu_flash/standard.rs:32-37 | candle-nn/src/attention/cpu_flash/standard.rs:38-42 | candle-nn/src/attention/cpu_flash/standard.rs:45-49 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/attention/cpu_flash/standard.rs:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-nn/src/attention/cpu_flash/standard.rs:42\u0060 calls \u0060start_offset\u0060 and \u0060candle-nn/src/attention/cpu_flash/standard.rs:37\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/standard.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9881b3904326b2df7feac45739a3a11e721c64288fe5a70a06043ada1c40d9e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-nn/src/attention/cpu_flash/varlen.rs:91-96 | candle-nn/src/attention/varlen.rs:72-77 \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":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"138eda47b26e56188137c9b8687c55702c94f2ac1b0a086c1086d61cc7173d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): candle-nn/src/attention/cpu_flash/varlen.rs:277-279 | candle-nn/src/attention/cpu_flash/varlen.rs:281-285 | candle-nn/src/attention/cpu_flash/varlen.rs:287-291 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/attention/cpu_flash/varlen.rs:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/cpu_flash/varlen.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9e9f752e3fcb296876644d1ff67ada95723d6bee1d478062c134644fb75a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-nn/src/rotary_emb.rs:61-65 | candle-nn/src/rotary_emb.rs:78-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/rotary_emb.rs:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"74af7b30da0d34533546c8dff051f5ecf2ca1f46c0f7c5da5b13cea88b7b3df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-onnx/src/eval.rs:1612-1617 | candle-onnx/src/eval.rs:1645-1650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b60522c794df9ab8195aed8a26435f972be0c3281533b2c53c3a8cb85146a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:59-64 | candle-transformers/src/models/quantized_blip_text.rs:55-60 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57d2797e342ecc78554f348ace09566eaee1e4352325774b935a6d37223cba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/clip/text_model.rs:90-95 | candle-transformers/src/models/siglip.rs:690-695 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da1885b0431d317c7cd3db94fd82d55b41257ad905924f8179c651a8e808d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/clip/text_model.rs:338-346 | candle-transformers/src/models/openclip/text_model.rs:257-265 \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 \u0060candle-transformers/src/models/clip/text_model.rs:338\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2078bf93e5798478b3dc626ca42bea9d651940bbad021c456881967fc27487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/deepseek2.rs:345-350 | candle-transformers/src/models/phi.rs:63-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026DeepSeekV2RopeConfig\u0060 in one and \u0060\u0026Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/deepseek2.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c35d275777823a3e2f697d6f0fc62b5545cacd47b6b89a38734b65fac10b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/encodec.rs:111-116 | candle-transformers/src/models/mimi/conv.rs:216-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"06203dbfe9bf2f42b8f568a21284e90cde9f15bdd0cd10b085ef763e88348a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/gemma4/text.rs:46-51 | candle-transformers/src/models/gemma4/vision.rs:45-50 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma4/text.rs\u0060 and \u0060candle-transformers/src/models/gemma4/vision.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma4/text.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91b1ec3dc6dec435e134439542aa8675a51b00be49581f60a7c3e3d5006f7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/glm4_new.rs:66-77 | candle-transformers/src/models/quantized_glm4.rs:132-143 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4dd411f02730d9ad4242577656fda26cf96ca22a10348130205bbc0d9025c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/glm4_new.rs:107-111 | candle-transformers/src/models/quantized_glm4.rs:85-89 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:107\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1b212794353fa72ffa9405e84043a50fc1fc445cfe4b28a8db087873c6a12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/granitemoehybrid.rs:338-343 | candle-transformers/src/models/stable_diffusion/attention.rs:193-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granitemoehybrid.rs:338\u0060 it begins part-way through the construct above it, so those exact 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":"candle-transformers/src/models/granitemoehybrid.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fef16e15d58e235996039d92fc6d6afd9205b06de35d8dec75b021ccbed7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/jina_bert.rs:333-338 | candle-transformers/src/models/mpt.rs:230-235 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/jina_bert.rs:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/jina_bert.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a070c9215d011ea64202c199acc3fa35d8749b0fbc9da37e7646a3d02dddd1ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/lfm2.rs:344-349 | candle-transformers/src/models/quantized_lfm2.rs:142-146 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/lfm2.rs:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/lfm2.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"df52a8c5eca15ea0a0ff8085a9932748d433a16bd7e7f806316130e1ebb0911c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/llama.rs:516-523 | candle-transformers/src/models/voxtral/voxtral_llama.rs:451-458 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama.rs\u0060 and \u0060candle-transformers/src/models/voxtral/voxtral_llama.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026VoxtralLlamaConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2550168e3515d71638903ef8a8454d55735ebded2be5ecda02e9becdc2cb9a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/moondream.rs:183-188 | candle-transformers/src/models/quantized_moondream.rs:112-117 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/moondream.rs:183\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/moondream.rs:182\u0060 calls \u0060enter\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs:111\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4229258ec4291a4b90d257bda5f4b423da5eeb3924271d4635726f07beb21a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/moondream.rs:331-340 | candle-transformers/src/models/quantized_moondream.rs:252-261 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4801da7cbddd180ae9ac38283b7cd1a62bd63c836f3b61486e62554b7a4dccc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/mod.rs:1018-1022 | candle-transformers/src/models/paddleocr_vl/mod.rs:1067-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":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"392a35f5797e206dec80b0d75c96795e81b054f8352a0e144ce301e7faffc146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:545-550 | candle-transformers/src/models/qwen3_vl/vision.rs:166-170 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/paddleocr_vl/vision.rs:545\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c602a021631ccbb24aec2efc5b5e9ec2c4c9cf69fc37973aeb6d8d59ba17616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/pixtral/vision_model.rs:111-118 | candle-transformers/src/models/siglip.rs:417-424 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/pixtral/vision_model.rs:121\u0060 calls \u0060apply_rotary_emb_qkv\u0060 and \u0060candle-transformers/src/models/siglip.rs:426\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":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a4a5557ee7242fbc5cb3a24c6dc2c67dc96f01e49f2fc29aad231d052834d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/quantized_gemma3.rs:327-333 | candle-transformers/src/models/quantized_llama.rs:442-446 | candle-transformers/src/models/quantized_qwen2.rs:221-225 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_gemma3.rs:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"0742185e1650bc94f5b8283839fb3a37f6059bae7164d851abd11d91a17670df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_llama.rs:198-203 | candle-transformers/src/models/quantized_qwen2.rs:86-90 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04040af17e136e1a85803e4a8c44a7372983487cb826ea60b27a05418f1595b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_llama.rs:485-489 | candle-transformers/src/models/quantized_qwen2.rs:248-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_llama.rs:485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1de6b76021324455325aade578493fb5b4e4204bf75f55d550ab0ef724ef6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_phi.rs:227-231 | candle-transformers/src/models/quantized_phi3.rs:250-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_phi.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_phi.rs:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_phi.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dfbe31da100a55ae7b24ff7537a5a3936e48d2a1d44e15956e1ac5fd1906e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:62-71 | candle-transformers/src/models/recurrent_gemma.rs:201-210 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c10497c89d853dd0c5fb49b0f703c65e1507a711ef315abc5b6f933b1cabe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:365-370 | candle-transformers/src/models/recurrent_gemma.rs:600-605 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"4771e8da84941b0cdf79754244658cd2bcd2ba16cf0b3b258c5d4589d7bfc82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v6.rs:248-254 | candle-transformers/src/models/rwkv_v6.rs:222-228 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v6.rs\u0060 and \u0060candle-transformers/src/models/rwkv_v6.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v6.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b2bbf0ab34cb09581f8f02846c2c64d8797a76253320aa1d59e6c495518109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:136-142 | candle-transformers/src/models/t5.rs:265-271 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b520d085e8c3f340cc8c02778328e06049f9a534cff3057cc1df92cbc8f87b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:205-211 | candle-transformers/src/models/t5.rs:334-340 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd2fce41b680380bc26283566bfafa6de828423d29b4697ef175803e3043c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/qwen2.rs:327-338 | candle-transformers/src/models/stella_en_v5.rs:709-720 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/qwen2.rs\u0060 and \u0060candle-transformers/src/models/stella_en_v5.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen2.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3358eeee13503dac85e145e1a6d78c180746c3a1ab97831b5d1f4f3f38b4a059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/whisper/audio.rs:178-188 | candle-wasm-examples/whisper/src/audio.rs:157-167 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/audio.rs\u0060 and \u0060candle-wasm-examples/whisper/src/audio.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc0b923c9dbf2dc7c6d3c0afc3981538c92c16f2249250de4815ad32fc6e57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:324-328 | candle-transformers/src/models/whisper/quantized_model.rs:328-332 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a085c0f663b3529ad82fc347a6d108d9328fcc39f7d48bcccc7f972e9dd562d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/wuerstchen/diffnext.rs:344-349 | candle-transformers/src/models/wuerstchen/diffnext.rs:374-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/wuerstchen/diffnext.rs:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b7b5829d4c7367b7c4ff16e48e9e250d2840b1958a269bcf18258c8b19f2a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cuda_backend/device.rs:20-25 | candle-core/src/metal_backend/device.rs:22-27 | candle-core/src/tensor.rs:17-22 \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":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"72575b2106063ddb0bf515862500f14c03fb6efaa6ef04b23c590638bed7889d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:2372-2377 | candle-core/src/quantized/metal.rs:477-482 \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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb795dfea7f73dcb694043c6475affe0c5884079d6967c54e04bb670be43807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-core/src/quantized/fast_mmq.rs:23-37 | candle-core/src/quantized/fast_mmvq.rs:22-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/fast_mmq.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ed976d4a11fae541b23e3b978bde6141ea74bcbf2e07ceeb5205195f48ef53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-nn/src/var_builder.rs:186-192 | candle-transformers/src/quantized_var_builder.rs:60-66 \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":"candle-nn/src/var_builder.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"192e266e04e75d224353a0d202d07c5c79488fef8b2481e53c480a70cd95b6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/beit.rs:185-190 | candle-transformers/src/models/dinov2.rs:127-132 | candle-transformers/src/models/dinov2reg4.rs:120-125 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/beit.rs\u0060 and \u0060candle-transformers/src/models/dinov2.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da0c388305e64d7ceeab76908bc89cb66ea4683c2935d37648a79ed1824f7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/bert.rs:37-45 | candle-transformers/src/models/debertav2.rs:31-39 \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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"963ffcea7d88c1bb11a74a5c1c96c3d95a70fe0c72b88e93b861877b54673a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/bert.rs:324-329 | candle-transformers/src/models/chinese_clip/text_model.rs:299-304 | candle-transformers/src/models/jina_bert.rs:236-241 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d59d91a9fb777dceca321757774c6cf79ce4e899690c6a3f0e28236aac26fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/bert.rs:352-357 | candle-transformers/src/models/chinese_clip/text_model.rs:333-338 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc9f40f5639627c4ca6a87d70c2e7ba960583d87bc53826a245804c882c284a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/bert.rs:446-454 | candle-transformers/src/models/chinese_clip/text_model.rs:465-473 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/bert.rs\u0060 and \u0060candle-transformers/src/models/chinese_clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0f599e72b9ca4abee67bd75a6cbc83e755cd307031faed1e6d89d699b13ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/bert.rs:560-565 | candle-transformers/src/models/distilbert.rs:369-374 \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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"52492073f5190c97457113702886d4348fe3bc584def71fcfb17dde32d7af38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/blip.rs:250-256 | candle-transformers/src/models/quantized_blip.rs:211-217 | candle-transformers/src/models/siglip.rs:525-531 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cb9d9d3f6c3216f430f32a9cb9e14baab1d6c297431f20f12cd924f4c64764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/blip.rs:281-286 | candle-transformers/src/models/quantized_blip.rs:242-247 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27add33725984554645b34977e356a97dd338ad683d481fc7ac0f161a4f5ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/blip.rs:296-304 | candle-transformers/src/models/quantized_blip.rs:257-265 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab6e4641685f9a65e54e3dd2368dd98daa223c7094ff91b9c45bfbe9f702b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-transformers/src/models/blip_text.rs:103-112 | candle-transformers/src/models/quantized_blip_text.rs:99-108 | candle-transformers/src/models/vit.rs:213-222 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"42263b533fdd5b444bfbf864dc3b38e02d2319f5e4763dc9d679418008ee867f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:172-176 | candle-transformers/src/models/quantized_blip_text.rs:168-172 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70a65c74442735a20bb34466bbb9568fb2a1d0c9d9479c7753715c246b9e7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:190-194 | candle-transformers/src/models/quantized_blip_text.rs:186-190 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8081d92a8d8107234a92c260246f44bb60e0b97679016ac030c5e102ab32418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:205-210 | candle-transformers/src/models/quantized_blip_text.rs:201-206 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/blip_text.rs:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7996b80dce195f864d89184075635732524e9dcabdfa48ffb9198371d024a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/blip_text.rs:220-226 | candle-transformers/src/models/quantized_blip_text.rs:216-222 | candle-transformers/src/models/vit.rs:291-297 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"600c08fe878cbe27b399df40b120b13db31dc47b913d15ca791c0f7ff9c67c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:242-246 | candle-transformers/src/models/quantized_blip_text.rs:238-242 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ed10c962035a666c0c5222b62616dab642e550cb698e4ba35f4cd542f7b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:327-333 | candle-transformers/src/models/quantized_blip_text.rs:323-329 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/blip_text.rs:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"132373482b4f03c7262f027ef7e557e1baa2b41c4b4a39dec2534b349941fe16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:349-354 | candle-transformers/src/models/quantized_blip_text.rs:345-350 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d060b877db2c90577b2fe0d092b4521a4a00a69db68760adb3a4e4145b0e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:433-441 | candle-transformers/src/models/quantized_blip_text.rs:429-437 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"861395614ddfcf6feab6ccac8b52207bde173380b418e28157af8aeb411487b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/blip_text.rs:472-476 | candle-transformers/src/models/quantized_blip_text.rs:468-472 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip_text.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip_text.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 222 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"17893136cc75b4b3832c77db874b0997f32db5f8a200c642ee3daaae05561feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 16): candle-transformers/src/models/chatglm.rs:115-120 | candle-transformers/src/models/deepseek2.rs:211-216 | candle-transformers/src/models/distilbert.rs:13-18 | candle-transformers/src/models/granite.rs:341-346 | candle-transformers/src/models/granitemoehybrid.rs:393-398 | candle-transformers/src/models/lfm2.rs:205-210 | candle-transformers/src/models/llama.rs:388-393 | candle-transformers/src/models/llama2_c.rs:251-256 | candle-transformers/src/models/mpt.rs:293-298 | candle-transformers/src/models/phi.rs:143-148 | candle-transformers/src/models/quantized_llama2_c.rs:138-143 | candle-transformers/src/models/quantized_mixformer.rs:48-53 | candle-transformers/src/models/quantized_t5.rs:50-55 | candle-transformers/src/models/t5.rs:117-122 | candle-transformers/src/models/voxtral/voxtral_llama.rs:312-317 | candle-wasm-examples/llama2-c/src/model.rs:166-171 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b5ef016c329f6eb8f0ecdf13ebbd322870c9a37832c583fa9010e37d51fce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:363-367 | candle-transformers/src/models/codegeex4_9b.rs:384-388 | candle-transformers/src/models/glm4.rs:405-409 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8a4c85bc146273d68a4c8a90e8a4525b9222b33a3d11fafeb56f33a9ff2cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:518-528 | candle-transformers/src/models/codegeex4_9b.rs:539-549 | candle-transformers/src/models/glm4.rs:560-570 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b247f26ccee5cf46836e08f91063f525992ac4ad59a60b7a3cf6b5ebaccc72dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:532-539 | candle-transformers/src/models/codegeex4_9b.rs:553-560 | candle-transformers/src/models/glm4.rs:574-581 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"360d01b1d35f58e41808ba52852048d083316f06933a8343141a17bff08573f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/chinese_clip/vision_model.rs:165-169 | candle-transformers/src/models/clip/text_model.rs:131-135 | candle-transformers/src/models/stable_diffusion/clip.rs:212-216 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"07403d8d6aff89e8cfc70aaaef275d93da17cd16a8dd265ded9eb86257521477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/chinese_clip/vision_model.rs:308-314 | candle-transformers/src/models/clip/text_model.rs:258-264 | candle-transformers/src/models/stable_diffusion/clip.rs:331-337 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chinese_clip/vision_model.rs\u0060 and \u0060candle-transformers/src/models/clip/text_model.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060causal_attention_mask\u0060 to \u0060Option\u003C\u0026Tensor\u003E\u0060 in one and \u0060\u0026Tensor\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"14959ce052ace618e158b1b9a7eeadf745991dde490ed387de24e8115c78d066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/clip/text_model.rs:45-57 | candle-transformers/src/models/stable_diffusion/clip.rs:46-58 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/clip/text_model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/clip.rs\u0060 as WHOLE FILES: this scan already matched 8 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":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b212a83583cf64a9cc281c404cd95483f90a2e4c39b80f98877f5126576e2239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/csm.rs:268-272 | candle-transformers/src/models/z_image/transformer.rs:233-237 \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":"candle-transformers/src/models/csm.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3109d9eb3150c24155c6de49ac400290223fd2f721091001e6ccd1aad9bfc8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/dac.rs:122-128 | candle-transformers/src/models/snac.rs:420-426 \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":"candle-transformers/src/models/dac.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d095a794176946137ad74a56ea76d7d5689279d1f8c4ade5a3ebdb443affd68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/distilbert.rs:224-230 | candle-transformers/src/models/segment_anything/mod.rs:111-116 \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":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f15e33ec397d86bd1479020076ad387cd440ef986b19a96ac3ae0965d3a428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/encodec.rs:118-124 | candle-transformers/src/models/mimi/conv.rs:223-229 \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":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7f750a54961686b11512e6d60096e5cf24505ebe774cbcc407aec0c2df758b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/flux/autoencoder.rs:173-177 | candle-transformers/src/models/z_image/vae.rs:250-255 \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":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd64026dd1a0176dccc35a3064fb208763ecf93a920e808d12a168a7fae655d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): candle-transformers/src/models/gemma.rs:143-147 | candle-transformers/src/models/gemma2.rs:136-140 | candle-transformers/src/models/gemma3.rs:141-145 | candle-transformers/src/models/gemma4/text.rs:185-189 | candle-transformers/src/models/helium.rs:129-133 | candle-transformers/src/models/mistral.rs:179-183 | candle-transformers/src/models/nvembed_v2/embedding.rs:79-83 | candle-transformers/src/models/olmo.rs:104-108 | candle-transformers/src/models/olmo2.rs:96-100 | candle-transformers/src/models/quantized_mistral.rs:94-98 | candle-transformers/src/models/qwen2.rs:107-111 | candle-transformers/src/models/qwen2_moe.rs:114-118 | candle-transformers/src/models/qwen3.rs:92-96 | candle-transformers/src/models/qwen3_moe.rs:89-93 | candle-transformers/src/models/smol/smollm3.rs:138-142 | candle-transformers/src/models/yi.rs:146-150 | candle-transformers/src/models/z_image/text_encoder.rs:178-182 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6cd371aaf0dc39983b0007035d02ab3e34d3e5136de4870a22645146442237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/gemma3.rs:284-289 | candle-transformers/src/models/gemma4/text.rs:378-383 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma3.rs\u0060 and \u0060candle-transformers/src/models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b5cc197f6bc4c201f764a92853cd869de0ca6e1ef4264471d172ad6fc2ae24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-transformers/src/models/glm4_new.rs:372-378 | candle-transformers/src/models/qwen3.rs:487-493 | candle-transformers/src/models/qwen3_moe.rs:342-348 | candle-transformers/src/models/smol/smollm3.rs:437-444 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"095f0864a31b7ab7e4561fea59058d145ac0589ffc75ee105ce06d656d1c8636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/granite.rs:111-117 | candle-transformers/src/models/granitemoehybrid.rs:149-155 | candle-transformers/src/models/llama.rs:155-161 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026GraniteMoeHybridInternalConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bce7da8f7de37ab50cae904ef0e08715408f3666d4514c8ce738ec21f27a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/granite.rs:357-361 | candle-transformers/src/models/llama.rs:404-408 | candle-transformers/src/models/voxtral/voxtral_llama.rs:328-332 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 27 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":"candle-transformers/src/models/granite.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f506b6906bdbc94c04e7ccbb093452b8ea043265a58bd859f90eec6d8cbf71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/llama2_c_weights.rs:35-39 | candle-wasm-examples/llama2-c/src/worker.rs:34-38 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c_weights.rs\u0060 and \u0060candle-wasm-examples/llama2-c/src/worker.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd5d7c032d0cc3b390eaf3997c1e72909dbb1d15de65249143b4137e51da16c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/marian.rs:285-290 | candle-transformers/src/models/trocr.rs:199-204 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/marian.rs\u0060 and \u0060candle-transformers/src/models/trocr.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a39c507d21e3b51c9bfd24051c6356f006e51a3ccf0fa5c6e3549dfedee1f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:11-16 | candle-transformers/src/models/segment_anything/mask_decoder.rs:234-239 \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":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3601fa78cc8f6b22b963508244db4a86cc8785aed49677714dec62b207ee0009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:749-753 | candle-transformers/src/models/quantized_metavoice.rs:52-56 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b22de603dd725d7a60214aafb0000aeea9269d4ca5cd59025e53a46e4ae7e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-transformers/src/models/moondream.rs:294-303 | candle-transformers/src/models/quantized_moondream.rs:215-224 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"328b80a6bf129304f6853715bfca903493855dea43a32937891b020fe5191f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/moondream.rs:319-326 | candle-transformers/src/models/quantized_moondream.rs:240-247 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d879745565fdc44ada7391f0e0e0afc8577f47b75e325c17d41c4d396093779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/moondream.rs:350-357 | candle-transformers/src/models/quantized_moondream.rs:270-277 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc59e85bcdbe59031d7d6413cd0ca3e15abf165b07ac9cd2563a4e87a356c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/embedding.rs:288-294 | candle-transformers/src/models/xlm_roberta.rs:532-538 \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":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bbd27cd6181e3dab412b25c802aa3d384060ebde1870d8e8dfe260f4f6209e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/model.rs:25-29 | candle-transformers/src/models/stable_diffusion/attention.rs:21-25 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/attention.rs\u0060 as WHOLE FILES: this scan already matched 5 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":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"10633a6c720da15ac206e410e70368afdd3228454d15e6f904da4bff7b2bafe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/model.rs:56-60 | candle-transformers/src/models/stable_diffusion/attention.rs:57-61 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/attention.rs\u0060 as WHOLE FILES: this scan already matched 5 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":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bcea14835e0478113bb8f1c13e3f82b371647a5fdedb981bbd9cc3004bf1ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/text.rs:687-691 | candle-transformers/src/models/qwen3_vl/text.rs:87-91 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/text.rs\u0060 and \u0060candle-transformers/src/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 4 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"19330c4e28978e13df268e5c58e46bdc94ab18c9a53510d947f17ce0c2534b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:271-275 | candle-transformers/src/models/qwen3_vl/vision.rs:299-303 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"173ab07cc4fcfc736224b84163e1f3bb6aa1c92a32520d544a8b72389db44f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:410-414 | candle-transformers/src/models/qwen3_vl/vision.rs:76-80 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68b869613bf2b2cc72b39cfd9a10b91eb4abcacee3605bb1ba5edf89294e2e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_gemma3.rs:37-41 | candle-transformers/src/models/quantized_llama.rs:37-41 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_gemma3.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f15c5018c89f7830687b1082822c5170877213ae38609bf1396ecdda9acc44c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): candle-transformers/src/models/quantized_lfm2.rs:91-95 | candle-transformers/src/models/quantized_llama.rs:171-175 | candle-transformers/src/models/quantized_phi.rs:87-91 | candle-transformers/src/models/quantized_phi3.rs:92-96 | candle-transformers/src/models/quantized_qwen2.rs:64-68 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1faa8e512ec87c874f5e0781a20e05c1b74df7fadcdae7557c3721587160814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/quantized_llama.rs:57-62 | candle-transformers/src/models/quantized_qwen2.rs:32-37 | candle-transformers/src/models/quantized_qwen3_moe.rs:20-25 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_llama.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen2.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a135fa7b94cebfc7f79f0ceeb528b953a3485ec961f4bad4b51dcb59a92ef646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_qwen3.rs:147-151 | candle-transformers/src/models/smol/quantized_smollm3.rs:237-241 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 and \u0060candle-transformers/src/models/smol/quantized_smollm3.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f60627c9a1316ba83def333a340f8d2b1db71ad74c51fd35dc31a89732137e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:289-294 | candle-transformers/src/models/recurrent_gemma.rs:522-527 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs:289\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4510d4c3ba00e6a88f7007a2e23d806f5a589f7345d3e86011c79002fdc82561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_t5.rs:170-176 | candle-transformers/src/models/t5.rs:299-305 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_t5.rs\u0060 and \u0060candle-transformers/src/models/t5.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 390 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2d0129c33a472063c766375fb13bbb69f1ce8a1163b220e2983d4859e2b7df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/segment_anything/transformer.rs:34-39 | candle-transformers/src/models/siglip.rs:319-324 \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":"candle-transformers/src/models/segment_anything/transformer.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b977a89df485b6632cd18fc151d74619dbbae863dfd093a04115086b8b1d9a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/segment_anything/transformer.rs:41-45 | candle-transformers/src/models/siglip.rs:326-330 \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":"candle-transformers/src/models/segment_anything/transformer.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37aee40f0d8cd8f235a006000139a8fa972216f6e6c9b0618b58bc53c8ef325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:94-98 | candle-transformers/src/models/whisper/quantized_model.rs:91-95 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"659fdd958aed65de495c030445c522f246493d4dc8e532204860a8d730641ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:201-206 | candle-transformers/src/models/whisper/quantized_model.rs:197-202 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"889d7d6776af89c0a0e4ca5cfceafb94e3841329ae2c68aa50373b4a53584c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:383-391 | candle-transformers/src/models/whisper/quantized_model.rs:387-395 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a4a16b3c9a32d7fae201b5c8ee2ff8974f1a054af374293ee2fe89316b51d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/mamba.rs:167-171 | candle-transformers/src/models/mamba2.rs:574-578 \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":"candle-transformers/src/models/mamba.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c2ff2ef240ff3dd81131d65e31435b8fbb9109a2768e49491dd9bf8909a89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): candle-metal-kernels/src/kernels/quantized.rs:148-168 | candle-metal-kernels/src/kernels/quantized.rs:254-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/quantized.rs:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-metal-kernels/src/kernels/quantized.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fadcdcb5075fc4300a62479cd9d8360399b16afda78e55bc7c0ccff87ed75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-metal-kernels/src/kernels/convolution.rs:287-304 | candle-metal-kernels/src/kernels/indexing.rs:31-47 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/convolution.rs:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-metal-kernels/src/kernels/convolution.rs:286\u0060 calls \u0060linear_split\u0060 and \u0060candle-metal-kernels/src/kernels/indexing.rs:29\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"657570ec9b9d4c5d03dc000fe412de6084283e6e846bc965a31d9112407bb82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-metal-kernels/src/kernels/convolution.rs:240-253 | candle-metal-kernels/src/kernels/convolution.rs:287-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/convolution.rs:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"764b09ed380508de458acac0d1d12ead4c01aff06e4cad435a1b076b733942a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-metal-kernels/src/kernels/convolution.rs:69-85 | candle-metal-kernels/src/kernels/convolution.rs:155-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-metal-kernels/src/kernels/convolution.rs:68\u0060 calls \u0060linear_split\u0060 and \u0060candle-metal-kernels/src/kernels/convolution.rs:154\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":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe4a65ebf9b7ee603be6fa0634473656cfb4804ce0ed1f2aa1d5dcc14b9b886"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-metal-kernels/src/kernels/indexing.rs:80-95 | candle-metal-kernels/src/kernels/indexing.rs:127-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/indexing.rs:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/indexing.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3bea014038142807375456417e883b2f6a4acbe3bdd5a8fa3189d149b5bc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:3193-3207 | candle-core/src/cpu_backend/mod.rs:3256-3270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:3193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":3193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d862897b6c6793d7d52b89138d1e7c39b2a59aaaf8c1e2e829d4ec8a41c7479e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-metal-kernels/src/kernels/reduce.rs:198-212 | candle-metal-kernels/src/kernels/reduce.rs:259-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/reduce.rs:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"96179b5aa2ed2f6a47906046e0b9279e5708f42f3df41d6464e4dae18780f51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): candle-metal-kernels/src/kernels/reduce.rs:141-155 | candle-metal-kernels/src/kernels/reduce.rs:197-210 | candle-metal-kernels/src/kernels/reduce.rs:258-271 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-metal-kernels/src/kernels/reduce.rs:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0093b002b21ab0ef238834ad4a92bc412da9ae0f5f498fc9861bc83bb0090ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-core/src/tensor.rs:1836-1849 | candle-core/src/tensor.rs:1898-1912 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:1836\u0060 it begins part-way through the construct above it, so those exact 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":"candle-core/src/tensor.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3855aaa4da02d4dfb9fd36b90820b7c2a917988e62c2e7e394b96eb55e873c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-metal-kernels/src/kernels/indexing.rs:31-45 | candle-metal-kernels/src/kernels/indexing.rs:175-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/indexing.rs:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/indexing.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dde4d1b3c4c19fc9d42fe3a18e27f9a66e04213e4857c314122b5375e39a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/depth_anything_v2.rs:121-134 | candle-transformers/src/models/depth_anything_v2.rs:206-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/depth_anything_v2.rs:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/depth_anything_v2.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6710595150c6709fac120785ae0918e13dd7311ebe99a0f3c3777896235864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-onnx/src/eval.rs:935-948 | candle-onnx/src/eval.rs:951-964 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:935\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"f028045e0ba18a1de1dfc8136345ae40cb60ddbca075bf763a369c8843863229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-core/src/cuda_backend/device.rs:738-750 | candle-core/src/cuda_backend/device.rs:797-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/device.rs:738\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060storage\u0060 to \u0060\u0026CpuStorage\u0060 in one and \u0060CpuStorage\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0eb7e72a1a11f01a5aa5c8808463f01267cf601c0f5ceaf30a9aa51c0af610e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): candle-metal-kernels/src/kernels/reduce.rs:141-153 | candle-metal-kernels/src/kernels/reduce.rs:197-209 | candle-metal-kernels/src/kernels/reduce.rs:258-270 | candle-metal-kernels/src/kernels/reduce.rs:321-330 | candle-metal-kernels/src/kernels/reduce.rs:363-372 | candle-metal-kernels/src/kernels/reduce.rs:406-415 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/reduce.rs:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/reduce.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df94b926a188757905ac503fc7a04c1ca22a1c8cf4da31dd2828eb5266d5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): candle-metal-kernels/src/kernels/convolution.rs:153-162 | candle-metal-kernels/src/kernels/convolution.rs:194-204 | candle-metal-kernels/src/kernels/convolution.rs:240-249 | candle-metal-kernels/src/kernels/convolution.rs:287-299 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/convolution.rs:153\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"941cfcadb45a36d1a6428a1f41e3082c29aea6726326de4a4ff3e2cafdf56b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:334-346 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:437-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:334\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"312aa30ecc94c695676464aeb7135066813ab0fb3c9f6c0f936d9b81bc1676dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/depth_anything_v2.rs:398-409 | candle-transformers/src/models/depth_anything_v2.rs:410-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":"candle-transformers/src/models/depth_anything_v2.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6312b34c7882c10a7def06524ddc1392362ada10c823c84cfd6bba6d3f95ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-metal-kernels/src/kernels/sort.rs:20-26 | candle-metal-kernels/src/kernels/sort.rs:256-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/sort.rs:20\u0060 it does not close everything it opens, so those exact 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":"candle-metal-kernels/src/kernels/sort.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"582e8a97dda44161a22c869b146ee05b2f097442a8761723cf1101149292be0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/mobileone.rs:167-177 | candle-transformers/src/models/repvgg.rs:159-170 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mobileone.rs\u0060 and \u0060candle-transformers/src/models/repvgg.rs\u0060 as WHOLE FILES: this scan already matched 4 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":"candle-transformers/src/models/mobileone.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7661b07e6a7964518013a06a571ea5de978a07594a6bca6f0734d3dd81cec825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:245-256 | candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:733-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs:245\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"af43759db9bbc7e7e37b2c057f1c58b341834c23122294e1f469aec80408777e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/glm4_new.rs:313-319 | candle-transformers/src/models/qwen3.rs:422-428 | candle-transformers/src/models/z_image/text_encoder.rs:385-395 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/glm4_new.rs\u0060 and \u0060candle-transformers/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 15 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/glm4_new.rs:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026TextEncoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4_new.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a405f310706d6e302915105a21d521c67d67f5d7dfb7ae80809465d93f34d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-transformers/src/models/convnext.rs:278-288 | candle-transformers/src/models/efficientvit.rs:425-435 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/convnext.rs:278\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82eb705c1da37a1397c57f770c8bd259463241f6a3871f977d7bef5ea3c6225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): candle-core/src/storage.rs:397-406 | candle-core/src/storage.rs:428-437 | candle-core/src/storage.rs:459-468 | candle-core/src/storage.rs:490-499 | candle-core/src/storage.rs:764-773 | candle-core/src/storage.rs:795-804 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/storage.rs:397\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/storage.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c68ca36d5c0e6b0a91762ce55de9474d1fb6974079b243f2fc1b7fbb00193f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/quantized/k_quants.rs:2132-2141 | candle-core/src/quantized/k_quants.rs:2204-2213 \u2014 both copies are in the same file, so extract the block 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, \u0060candle-core/src/quantized/k_quants.rs:2215\u0060 calls \u0060as_ptr\u0060 and \u0060candle-core/src/quantized/k_quants.rs:2143\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":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eb68abb71a73078b97b95ffde4b72b7f75d88d3331d63d40869288461e8e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-core/src/quantized/neon.rs:134-143 | candle-core/src/quantized/neon.rs:176-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060\u0026[BlockQ4_0]\u0060 in one and \u0060\u0026[BlockQ8_0]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5f8eb66bea8bf0d35d4ae128f4184f217a4558082ec07d39023fe83196d0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): candle-core/src/metal_backend/mod.rs:123-132 | candle-core/src/metal_backend/mod.rs:187-196 | candle-core/src/metal_backend/mod.rs:243-252 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"719f0d7f141b100fa8fae30d1e0be60112fd2facd82459740ca16164ea8669a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:1374-1381 | candle-core/src/metal_backend/mod.rs:1425-1434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b026a0e3d9ccc692caaaef7c4342f9988ddd30b6877524f0749831490579db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-metal-kernels/src/kernels/convolution.rs:67-76 | candle-metal-kernels/src/kernels/convolution.rs:110-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/convolution.rs:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53401fd7c4727482d35369147f5d747c724b4bca4943fadff4e0fba76338809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-metal-kernels/src/kernels/quantized.rs:248-254 | candle-metal-kernels/src/kernels/quantized.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-metal-kernels/src/kernels/quantized.rs:248\u0060 it begins part-way through the construct above it, so those exact 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":"candle-metal-kernels/src/kernels/quantized.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"045e5621b81c63596fc65496427b59a88b4689740cd74f920e725251c5b62611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-onnx/src/eval.rs:1428-1434 | candle-onnx/src/eval.rs:1638-1646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:1428\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9e0a34e8d8c0382d783cf53c950e5cc976620be767567311fe75c193b36f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-nn/src/rotary_emb.rs:200-208 | candle-nn/src/rotary_emb.rs:505-513 | candle-nn/src/rotary_emb.rs:779-787 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c168d688ba78ed36005dea03abfa8c45716ecb5c549dde672f4f7ba20eebcfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-transformers/src/models/blip.rs:269-277 | candle-transformers/src/models/quantized_blip.rs:230-238 | candle-transformers/src/models/trocr.rs:415-423 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/blip.rs\u0060 and \u0060candle-transformers/src/models/quantized_blip.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/blip.rs:269\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dabc3c0eee956c3dbeb9252bd118e90f8d373cb26230a3b07ffb063d83de04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-metal-kernels/src/kernels/convolution.rs:24-32 | candle-metal-kernels/src/kernels/convolution.rs:66-74 | candle-metal-kernels/src/kernels/convolution.rs:109-117 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-metal-kernels/src/kernels/convolution.rs:24\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/convolution.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"088d31bd4c5cfbc594f538137701273b412fc1bcd78dc589e7bc9c1c4770dd7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-transformers/src/models/llava/mod.rs:86-93 | candle-transformers/src/models/llava/mod.rs:100-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/llava/mod.rs:86\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e4c968f93ec113066986958a38c3487891fc7524879882734541ad8f175072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/sort.rs:193-199 | candle-core/src/sort.rs:211-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/sort.rs:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/sort.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a0ee172edfe1d7acd367b43ef54ff8f4a1dff06a4c4486c8665532e4329af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/metal_backend/mod.rs:1461-1468 | candle-core/src/metal_backend/mod.rs:1612-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/metal_backend/mod.rs:1461\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fedcf868d0b82a52d6f3a7fdae995ac0725db111ddfe778bc45982dcfaf2d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-onnx/src/eval.rs:466-472 | candle-onnx/src/eval.rs:1156-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d731baf010dc8bb416ff0753ec1a9dd8a02ea52e37d5e25ce736c99424cbd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-metal-kernels/src/kernels/unary.rs:27-31 | candle-metal-kernels/src/kernels/unary.rs:90-96 | candle-metal-kernels/src/kernels/unary.rs:171-177 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-metal-kernels/src/kernels/unary.rs:90\u0060 it does not close everything it opens, so those exact 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":"candle-metal-kernels/src/kernels/unary.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f8a6c3e66e642bea0174fd878d33a88e09ea50b9c74ef7e908d606f6ddac35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-nn/src/ops.rs:364-369 | candle-nn/src/ops.rs:584-589 | candle-nn/src/ops.rs:827-833 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-nn/src/ops.rs:364\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/ops.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86dcfe3b03144e300dab52bfcfbae65649cfe70e73d4786686fc79f8980ee84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-onnx/src/eval.rs:489-495 | candle-onnx/src/eval.rs:524-530 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:489\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4685dd4f60c2c348fd848c522013b5fe67ff5df8e3c3d1ba2eacecc715f54aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/quantized_phi.rs:206-212 | candle-transformers/src/models/quantized_phi3.rs:229-235 | candle-transformers/src/models/quantized_qwen2.rs:186-191 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_phi.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_phi.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"448449926271154266edcd6a7d589bfd6ad24a990d998269eb87cd38857cd95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-transformers/src/models/segment_anything/tiny_vit.rs:76-87 | candle-transformers/src/models/segment_anything/tiny_vit.rs:126-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/segment_anything/tiny_vit.rs:76\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"924489b489ee36db6f2b6810af616a8029803d6164816846a9c02f6d48725908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-onnx/src/eval.rs:1320-1325 | candle-onnx/src/eval.rs:1429-1434 | candle-onnx/src/eval.rs:1607-1613 | candle-onnx/src/eval.rs:1640-1646 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:1320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a64f6e21fa35544c371d904fe44afe8ca109828da1709619665d33cd119d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): candle-transformers/src/models/gemma.rs:358-364 | candle-transformers/src/models/gemma2.rs:377-383 | candle-transformers/src/models/gemma3.rs:457-463 | candle-transformers/src/models/recurrent_gemma.rs:606-612 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/gemma.rs\u0060 and \u0060candle-transformers/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/gemma.rs:358\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"25201056a875d9470e76784da8d19b157da0482bc66f6f6d177a0db129d4b4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:523-528 | candle-core/src/cuda_backend/mod.rs:578-583 | candle-core/src/cuda_backend/mod.rs:632-637 | candle-core/src/cuda_backend/mod.rs:684-689 \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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0ba88708277a87a3d5845084e47db3953e61ea8b9ee88d8109c6bb5058b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-metal-kernels/src/kernels/affine.rs:91-96 | candle-metal-kernels/src/kernels/affine.rs:157-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a83484bda42b676a52a140e0faf775127c667f8e6c18355b9c902189361f1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-nn/src/moe.rs:58-63 | candle-nn/src/moe.rs:64-69 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-nn/src/moe.rs:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/moe.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f769bcfd0f5a55819eed6aa757c6258e312ca0877b8977d41b3637f0cf436246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): candle-transformers/src/models/quantized_glm4.rs:369-374 | candle-transformers/src/models/quantized_qwen3.rs:469-474 | candle-transformers/src/models/quantized_qwen3_moe.rs:251-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_glm4.rs\u0060 and \u0060candle-transformers/src/models/quantized_qwen3.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_qwen3_moe.rs:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-transformers/src/models/quantized_glm4.rs:369\u0060 calls \u0060metadata\u0060, \u0060get\u0060 and \u0060candle-transformers/src/models/quantized_qwen3_moe.rs:251\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_glm4.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d883f12aea8a9e40c404521f6b745c622ac7838e0ee431c05ce02019fcb795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-onnx/src/eval.rs:1829-1834 | candle-onnx/src/eval.rs:2057-2062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"95530115ba70a7316717b3263ffa272231fc76bc5891633be684bc1da795fe66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-onnx/src/eval.rs:377-381 | candle-onnx/src/eval.rs:766-771 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"255737d8fdb16dc02703af547d09a50a57f56b8e4bd3c1316956020e9c22da0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): candle-onnx/src/eval.rs:341-345 | candle-onnx/src/eval.rs:347-351 | candle-onnx/src/eval.rs:353-357 | candle-onnx/src/eval.rs:813-818 | candle-onnx/src/eval.rs:821-826 | candle-onnx/src/eval.rs:829-834 | candle-onnx/src/eval.rs:2421-2426 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b150330ecd5ff23a8f1b8707b22f702edafc271004ecdd1ca551537be8ff8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-metal-kernels/src/kernels/affine.rs:21-26 | candle-metal-kernels/src/kernels/affine.rs:89-94 | candle-metal-kernels/src/kernels/affine.rs:155-160 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-metal-kernels/src/kernels/affine.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b95d55c82641cfe21e0e5a9a2143ee601a2caa445a0aa0c6c256109c77a0e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-onnx/src/eval.rs:766-771 | candle-onnx/src/eval.rs:1802-1807 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:766\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9341a6c2e22fb12e5c8cbd1c90f1657214e6ba7455cbaf9808578e706cb1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-onnx/src/eval.rs:766-771 | candle-onnx/src/eval.rs:854-859 | candle-onnx/src/eval.rs:1802-1807 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-onnx/src/eval.rs:766\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7929abc7ac92ce66d9607d87fde423b1e6646427a7f9220286d7b1a29ac69c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-core/src/cuda_backend/mod.rs:795-800 | candle-core/src/cuda_backend/mod.rs:866-871 | candle-core/src/cuda_backend/mod.rs:914-919 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/cuda_backend/mod.rs:795\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cab65a5e775b19b97939b40440fe03526be9b0a01d3f3bf89f7fc34d923fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/mimi/transformer.rs:132-137 | candle-transformers/src/models/mimi/transformer.rs:266-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mimi/transformer.rs:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-transformers/src/models/mimi/transformer.rs:138\u0060 calls \u0060clone\u0060 and \u0060candle-transformers/src/models/mimi/transformer.rs:272\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":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dc7dec9d146330ab1b3a49e242202d42a21080e9a23ebe08710beeac6dc859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): candle-onnx/src/eval.rs:341-345 | candle-onnx/src/eval.rs:347-351 | candle-onnx/src/eval.rs:353-357 | candle-onnx/src/eval.rs:377-381 | candle-onnx/src/eval.rs:388-392 | candle-onnx/src/eval.rs:813-818 | candle-onnx/src/eval.rs:821-826 | candle-onnx/src/eval.rs:829-834 | candle-onnx/src/eval.rs:2421-2426 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc03bb19101e8b7035a0854c85258ed50c939fd701ab6ce9ba87e1dac7c60d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/segment_anything/image_encoder.rs:63-67 | candle-transformers/src/models/segment_anything/image_encoder.rs:68-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":"candle-transformers/src/models/segment_anything/image_encoder.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ac87433263811c34bbdbe1cb768290f4820eb05fd7ef4e36b3aa5cdafb8324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:753-757 | candle-core/src/cuda_backend/mod.rs:796-800 | candle-core/src/cuda_backend/mod.rs:867-871 | candle-core/src/cuda_backend/mod.rs:915-919 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:753\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:752\u0060 calls \u0060stride\u0060, \u0060dims\u0060, \u0060concat\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:795\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45c4ef6d8acdc7d9213b89af1f697c62adaa639d9db6a30df0ac8aeb3898c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-onnx/src/eval.rs:2187-2191 | candle-onnx/src/eval.rs:2196-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:2187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30cf3ec8c2a1bcc3e7eae1cd2cf9aade98d9ae9c52eac30554950ddb9e7688b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): candle-core/src/cuda_backend/mod.rs:544-546 | candle-core/src/cuda_backend/mod.rs:597-601 | candle-core/src/cuda_backend/mod.rs:651-655 | candle-core/src/cuda_backend/mod.rs:703-707 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:544\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-core/src/cuda_backend/mod.rs:602\u0060 calls \u0060dims\u0060, \u0060iter\u0060, \u0060product\u0060 and \u0060candle-core/src/cuda_backend/mod.rs:546\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":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b46824d5a15311df104e6439ddeb146ba1f7a789df47a831ab84c6c7b9b3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): candle-core/src/cpu_backend/mod.rs:1425-1429 | candle-core/src/cpu_backend/mod.rs:1433-1437 | candle-core/src/cuda_backend/mod.rs:1462-1464 | candle-core/src/cuda_backend/mod.rs:1474-1476 \u2014 \u0060candle-core/src/cpu_backend/mod.rs\u0060 and \u0060candle-core/src/cuda_backend/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 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu_backend/mod.rs:1425\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"90222d400e18b4c59e1dfb20095be3fc5aa85a2801efca93e0929817d66b1178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/cuda_backend/cutile.rs:80-84 | candle-core/src/cuda_backend/cutile.rs:107-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/cutile.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3bf946ebd5bd232f585e3615d33cc5d4aac4dde87177be88027dfecb225273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-onnx/src/eval.rs:433-437 | candle-onnx/src/eval.rs:444-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-onnx/src/eval.rs:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"706b3a447a0aa9495f2862a156e0c4f88ef94d47af69724b1740fe9b8fe1c82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/backprop.rs:510-515 | candle-core/src/backprop.rs:517-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backprop.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7902547708e0f27cea303119aab4be73ba97379d9bca11b7e59bd999a60046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-core/src/cpu/neon.rs:542-549 | candle-core/src/cpu/neon.rs:578-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cpu/neon.rs:542\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu/neon.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"da96dc1fe581fbfb3fbe09f821a20c63425bc16696eed81a780e0c3353d8acc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:143-147 | candle-core/src/cpu_backend/utils.rs:173-177 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc6fd33e8a90e2f53833add38e11be1e73b39843bb3052e2d3fa6823a47f7d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-core/src/cpu_backend/mod.rs:397-405 | candle-core/src/cpu_backend/mod.rs:438-446 \u2014 both copies are in the same file, so extract the block 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, \u0060candle-core/src/cpu_backend/mod.rs:407\u0060 calls \u0060from_f64\u0060 and \u0060candle-core/src/cpu_backend/mod.rs:447\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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"811febc58ab002a6461380da99f5813428b0c73096984db451850237c412ef87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/cuda_backend/mod.rs:1896-1900 | candle-core/src/cuda_backend/mod.rs:2082-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/cuda_backend/mod.rs:1896\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a83d9272a69427d4f54d3f3dc170fd85cd5eb39486f2c3ec072beafcbbb8c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/avx.rs:467-473 | candle-core/src/quantized/avx.rs:554-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/avx.rs:467\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060xs\u0060 to \u0060\u0026[BlockQ4K]\u0060 in one and \u0060\u0026[BlockQ5K]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/avx.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a038942575092ae0506c7c3acc12045117a146024688628f4add39b6068f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/cuda.rs:384-388 | candle-core/src/quantized/cuda.rs:457-461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/cuda.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"df421e8b48c672ad0ac59c964d36902e3188e7f931a8a99877ecc9309d510de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-core/src/quantized/k_quants.rs:958-966 | candle-core/src/quantized/k_quants.rs:1620-1628 | candle-core/src/quantized/k_quants.rs:1901-1909 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-core/src/quantized/k_quants.rs:958\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/k_quants.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ac3600e105b30d136c06bf2fed4446200efb3102329844e7a19ac9c99e21f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/quantized/neon.rs:376-380 | candle-core/src/quantized/neon.rs:455-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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"6428cd7856b79289331a29a1e058125e59e66eed0ff8e1084cd1fa7f7326129b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-core/src/quantized/neon.rs:625-631 | candle-core/src/quantized/neon.rs:2787-2793 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/quantized/neon.rs:625\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/neon.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"27882c523d2bf36836df81e5aa1e7ba16659b2d1b4d35fe9f60e5397c9003bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-core/src/tensor.rs:1674-1679 | candle-core/src/tensor.rs:1716-1721 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c767104774f09e80480855f0bc256edbefc0e7ffd10a42f815f671e6dce2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-core/src/tensor.rs:2693-2697 | candle-core/src/tensor.rs:2699-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-core/src/tensor.rs:2693\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/tensor.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"528d13ef23ea82b0c8c368a7e1f2fbac112cc75695bbf84e36bfe4212b13f5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-metal-kernels/src/kernels/indexing.rs:119-123 | candle-metal-kernels/src/kernels/indexing.rs:167-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-metal-kernels/src/kernels/indexing.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"22abb66f91d0d8f7d314547dcbe9f191ca067ac246297aa38d2f5f26046d9a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-nn/src/attention/cpu_flash/causal.rs:136-140 | candle-nn/src/attention/cpu_flash/causal.rs:141-145 | candle-nn/src/attention/cpu_flash/causal.rs:146-150 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"candle-nn/src/attention/cpu_flash/causal.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec84cc088727a8ab407cfdffd5998326b7f8dc510b1c4aabdfb90f0a6b10d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-nn/src/moe/cutile.rs:80-84 | candle-nn/src/moe/cutile.rs:97-101 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/moe/cutile.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ded85e73028699865e4bd2e82afec9ab1daf7231fb9d98726112a980334e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-nn/src/rotary_emb.rs:300-304 | candle-transformers/src/models/llama2_c.rs:159-163 | candle-transformers/src/models/quantized_llama2_c.rs:46-50 | candle-wasm-examples/llama2-c/src/model.rs:82-86 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51bc7b1e080a8bede5cdb46478cec97d7793fb748e0a81c6951ab30b704bd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): candle-nn/src/rotary_emb.rs:584-588 | candle-transformers/src/models/mixtral.rs:75-79 | candle-transformers/src/models/paddleocr_vl/vision.rs:279-283 | candle-transformers/src/models/qwen3_vl/vision.rs:84-88 | candle-transformers/src/models/recurrent_gemma.rs:100-104 | candle-transformers/src/models/starcoder2.rs:45-49 | candle-transformers/src/models/yi.rs:76-80 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rotary_emb.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"852eabb8c7fa0d7c33bf770c88abf3ec8c027a4904e2671806a060ebdbaded8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/bert.rs:475-479 | candle-transformers/src/models/distilbert.rs:314-318 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/bert.rs:475\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bert.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6123099cf4239f71d311cba6d7259c9f30591fdd7fc64a5b61228ae538ff84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/chatglm.rs:76-80 | candle-transformers/src/models/codegeex4_9b.rs:88-92 | candle-transformers/src/models/glm4.rs:109-113 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/chatglm.rs:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27c0c09904e396ce632b8968540733c6b7d9402f831aac9e84b68b11e104073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): candle-transformers/src/models/chatglm.rs:550-554 | candle-transformers/src/models/codegeex4_9b.rs:571-575 | candle-transformers/src/models/glm4.rs:592-596 | candle-transformers/src/models/mpt.rs:287-291 | candle-transformers/src/models/phi.rs:137-141 | candle-transformers/src/models/quantized_mixformer.rs:42-46 | candle-transformers/src/models/quantized_t5.rs:44-48 | candle-transformers/src/models/t5.rs:111-115 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/chatglm.rs\u0060 and \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 400 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa48fe2e87196088d37c1e5e7a0b4b09d997a7e6f6712f2c0a9285fa3871f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/codegeex4_9b.rs:129-133 | candle-transformers/src/models/glm4.rs:150-154 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/codegeex4_9b.rs\u0060 and \u0060candle-transformers/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"724235f9430f3e1507c4dae1f52f2a30ec6823d2a26210efe6929fcd2f744d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/convmixer.rs:24-28 | candle-transformers/src/models/efficientnet.rs:128-132 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/convmixer.rs:24\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convmixer.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e780a51e8899af6abaec2fad20262f6a767f00a09fb15f4539fa9d09ec847092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/csm.rs:137-143 | candle-transformers/src/models/helium.rs:93-99 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/csm.rs\u0060 and \u0060candle-transformers/src/models/helium.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9e09782523dcb0adbf4b9710306052ba1c73f2452ee60dc58aadfc3bd29130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/dac.rs:35-40 | candle-transformers/src/models/snac.rs:236-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19d2f5c1fc509a1ed5d587a819f21f075383d5e663fe5542712552e28eb06c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/eva2.rs:128-134 | candle-transformers/src/models/eva2.rs:135-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/eva2.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8604e18be6c466c946fa4848b9f535bb75066ebbf5b07a1907972316827ac62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): candle-transformers/src/models/flux/autoencoder.rs:51-55 | candle-transformers/src/models/moondream.rs:59-63 | candle-transformers/src/models/quantized_moondream.rs:23-27 | candle-transformers/src/models/z_image/vae.rs:87-91 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/moondream.rs\u0060 and \u0060candle-transformers/src/models/quantized_moondream.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fcb3c3d1181bce8e6ee91ad08bf23e16bac41f8098cbc2d83413986798d152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:477-492 | candle-transformers/src/models/flux/quantized_model.rs:316-331 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b8bbaf8ff87760603b8b539faefae6c6bebbf9e8a261948e06bace2e3968cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/flux/model.rs:321-326 | candle-transformers/src/models/flux/quantized_model.rs:160-165 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/flux/model.rs\u0060 and \u0060candle-transformers/src/models/flux/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 209 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/flux/model.rs:321\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20641cfdb2557ff53e407aca88d651e82da29bf1436f7a698d49da8cd1990f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/granite.rs:218-222 | candle-transformers/src/models/granitemoehybrid.rs:267-271 | candle-transformers/src/models/llama.rs:264-268 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/granite.rs\u0060 and \u0060candle-transformers/src/models/granitemoehybrid.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 227 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/granite.rs:218\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679f5dc98beeb441d366246fd335c68ef7e975ebc4f4c8fb291daec765df5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/llama.rs:492-497 | candle-transformers/src/models/voxtral/voxtral_llama.rs:416-421 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama.rs\u0060 and \u0060candle-transformers/src/models/voxtral/voxtral_llama.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 220 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/llama.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cc1c4dca7820af63e8b5d5e8cef214884a937718d6d5d4498656271e389f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-transformers/src/models/llama2_c.rs:152-157 | candle-transformers/src/models/quantized_llama2_c.rs:39-44 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee3be4ded40627de7958f5b5a5e529415ecf3ad948b06e997d86630b1c9560d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-transformers/src/models/llama2_c.rs:175-182 | candle-transformers/src/models/quantized_llama2_c.rs:62-69 | candle-wasm-examples/llama2-c/src/model.rs:92-99 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d49d137fb3c4840194463eec2b630f9eddadbb9d20bbb59ca22868d7607ad66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): candle-transformers/src/models/llama2_c.rs:280-286 | candle-transformers/src/models/quantized_llama2_c.rs:167-173 | candle-wasm-examples/llama2-c/src/model.rs:194-200 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/llama2_c.rs\u0060 and \u0060candle-transformers/src/models/quantized_llama2_c.rs\u0060 as WHOLE FILES: this scan already matched 17 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a8df6589700088824e06408664367ec8b2c289ccdf833e0aba6c153cbbd1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/metavoice.rs:863-867 | candle-transformers/src/models/quantized_metavoice.rs:166-170 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/metavoice.rs\u0060 and \u0060candle-transformers/src/models/quantized_metavoice.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5aa6f89f6f53dcb5a7c080332175ecf3999a2d9bb995ce00ff531153d173a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): candle-transformers/src/models/mistral.rs:145-150 | candle-transformers/src/models/nvembed_v2/embedding.rs:45-50 | candle-transformers/src/models/quantized_mistral.rs:60-65 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mistral.rs\u0060 and \u0060candle-transformers/src/models/nvembed_v2/embedding.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 154 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mistral.rs:145\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f8f667e3e099e4a0508504fe110985f4b61adc0b1648c1de3b1f8dba991480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/mixformer.rs:186-190 | candle-transformers/src/models/quantized_mixformer.rs:114-118 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixformer.rs\u0060 and \u0060candle-transformers/src/models/quantized_mixformer.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/mixformer.rs:186\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"869e0353f36896ae1cbbbfc6d4b4c8d1b4ced3aad1237b2ab3157a97de25ef30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): candle-transformers/src/models/mixtral.rs:108-116 | candle-transformers/src/models/recurrent_gemma.rs:136-144 | candle-transformers/src/models/stable_lm.rs:118-126 | candle-transformers/src/models/starcoder2.rs:78-86 | candle-transformers/src/models/yi.rs:109-117 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mixtral.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f79945037c939455e236b809d8acb20a5b06bed4b9c1d8f9ab398abaf39aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/mpt.rs:67-71 | candle-transformers/src/models/quantized_mpt.rs:44-48 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b88c4278f52ea9a4d75f135e22967f9cd19ac038fef79ec2d4df3c0617cdd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/mpt.rs:153-157 | candle-transformers/src/models/quantized_mpt.rs:130-134 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/mpt.rs\u0060 and \u0060candle-transformers/src/models/quantized_mpt.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4650c597acd9164f12e34f876c59f16a95d7af4f034300a204e0887ad0eb686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/model.rs:106-110 | candle-transformers/src/models/stable_diffusion/attention.rs:132-136 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/attention.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b83b807f235826dd1ad3901a403b7fec26423a7cc6b679e35852ed6f8f07fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/nvembed_v2/model.rs:113-117 | candle-transformers/src/models/stable_diffusion/attention.rs:139-143 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/nvembed_v2/model.rs\u0060 and \u0060candle-transformers/src/models/stable_diffusion/attention.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d668a66dc2b8cb9063836c7e74fe4668f42d9a9c7e05c05cd47a2cdb58bbb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:291-297 | candle-transformers/src/models/qwen3_vl/vision.rs:96-102 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca542617ec0770c600885a68fe0cdfaee5aee973a8e96ebd90cf124d55b927f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/paddleocr_vl/vision.rs:499-503 | candle-transformers/src/models/qwen3_vl/vision.rs:137-141 \u2014 \u0060candle-transformers/src/models/paddleocr_vl/vision.rs\u0060 and \u0060candle-transformers/src/models/qwen3_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 10 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecac8c54f100229ad4130ac36bbcd015598f9d171626a754c0cc8988868ee393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-transformers/src/models/quantized_lfm2.rs:120-124 | candle-transformers/src/models/quantized_phi3.rs:101-105 | candle-transformers/src/models/quantized_qwen2.rs:73-77 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_lfm2.rs\u0060 and \u0060candle-transformers/src/models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-transformers/src/models/quantized_lfm2.rs:120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"80271b1eca64920c8e4c9ff908f7c8a46bc8cdc19670c28dc3d8c13eb303e425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_recurrent_gemma.rs:98-102 | candle-transformers/src/models/recurrent_gemma.rs:333-337 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_recurrent_gemma.rs\u0060 and \u0060candle-transformers/src/models/recurrent_gemma.rs\u0060 as WHOLE FILES: this scan already matched 14 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":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6af82c0314a1b055ce61692138b9b5e5ddf89326cd4f2cd1cbef0432022fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-transformers/src/models/quantized_rwkv_v5.rs:201-207 | candle-transformers/src/models/rwkv_v5.rs:248-254 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_rwkv_v5.rs\u0060 and \u0060candle-transformers/src/models/rwkv_v5.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56164a2ee64e87f4073ecc2909a70e2f4e7071f83b5a3da5a84f6d611544d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/quantized_stable_lm.rs:54-58 | candle-transformers/src/models/stable_lm.rs:158-162 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/quantized_stable_lm.rs\u0060 and \u0060candle-transformers/src/models/stable_lm.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce1239cd80d9ce0eb958923130e04847b549f0d4c2f78f58ae4da618c89cb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-transformers/src/models/qwen3_moe.rs:282-286 | candle-transformers/src/models/smol/smollm3.rs:376-380 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/qwen3_moe.rs\u0060 and \u0060candle-transformers/src/models/smol/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-transformers/src/models/qwen3_moe.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0568c0e58fd550f81be3a1d7191d35393d02b3cb256b8d1677731ee44fba848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-transformers/src/models/whisper/model.rs:210-223 | candle-transformers/src/models/whisper/quantized_model.rs:206-219 \u2014 before extracting anything, compare \u0060candle-transformers/src/models/whisper/model.rs\u0060 and \u0060candle-transformers/src/models/whisper/quantized_model.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c9920f5f421bbe48df4210086559bddc07e23c531b8d776c117344ffeba2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-transformers/src/object_detection.rs:27-35 | candle-wasm-examples/yolo/src/model.rs:725-733 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/object_detection.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf610519a01e1bec928f0456c515337b23a5feefe9e0aee861f48f7e3ddb49b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): candle-wasm-examples/llama2-c/src/app.rs:107-177 | candle-wasm-examples/yolo/src/app.rs:146-231 \u2014 These two members are variants of one another: 33 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd61b42282e0afe379752cd23f59e13293e578f7a9279aed0cfbcb69a189da6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): candle-wasm-examples/quant-qwen3/src/m.rs:488-548 | candle-wasm-examples/quant-qwen3/src/m.rs:552-614 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/src/m.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8863e42e569e803c0c93f867bcabf03008564ed4a0e2293a806258383fffb7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): candle-wasm-examples/moondream/src/bin/m.rs:50-87 | candle-wasm-examples/phi/src/bin/m.rs:41-81 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/src/bin/m.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd2fa1d9f8e188aecfb8771442486e3140529ca0039b33f9d23f1b726ea707b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-wasm-examples/blip/src/bin/m.rs:125-143 | candle-wasm-examples/moondream/src/bin/m.rs:197-212 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/src/bin/m.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c671ad954cf21c9f67dec96ef1d47f18883e2b9813b9a186898d46d9846996e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): candle-wasm-examples/segment-anything/src/bin/m.rs:38-74 | candle-wasm-examples/yolo/src/worker.rs:48-93 | candle-wasm-examples/yolo/src/worker.rs:127-172 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/src/bin/m.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef00743ec7181ec671ef597881f267c94e3ae73ba7421fe0f676fbe55105be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-examples/src/lib.rs:129-150 | candle-examples/src/lib.rs:155-175 \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":"candle-examples/src/lib.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"605d6274972a0988ef9f651f7ac24a26d1a57d4dc0d32a329efdd4903aa718ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): candle-examples/src/token_output_stream.rs:34-51 | candle-wasm-examples/blip/src/token_output_stream.rs:34-51 \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":"candle-examples/src/token_output_stream.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd21bc05467d405fe78f4a9943f64255c7124c521e1033649778bf6392a1f36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): candle-wasm-examples/llama2-c/src/bin/m.rs:75-103 | candle-wasm-examples/phi/src/bin/m.rs:91-116 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/bin/m.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e60a2a4177b6fad7fd2247185ae30438f96fc9207a3d81265889e07d8ad4d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-examples/src/lib.rs:84-99 | candle-examples/src/lib.rs:106-123 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/lib.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38e729dd594175a4700c0066528d823758727e5f69d0292e3485d61e003cf0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): candle-wasm-examples/llama2-c/src/worker.rs:299-325 | candle-wasm-examples/yolo/src/worker.rs:225-245 \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":"candle-wasm-examples/llama2-c/src/worker.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6282cc667b923fb92020f27d7160e338f077e534cddf14e249ecfe7188a7b524"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): candle-wasm-examples/yolo/src/worker.rs:95-110 | candle-wasm-examples/yolo/src/worker.rs:174-189 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/worker.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7315ce80f6c589192061b7453689a1f2cb81e51049f6f16c2b33a44e1977df99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): candle-wasm-examples/bert/src/bin/m.rs:17-28 | candle-wasm-examples/t5/src/bin/m.rs:28-43 | candle-wasm-examples/t5/src/bin/m.rs:126-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/src/bin/m.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d60d2be39e60313b2f488958b0846091f08dea38a9511797f7e97641e4796e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): candle-wasm-examples/t5/src/bin/m-quantized.rs:32-46 | candle-wasm-examples/t5/src/bin/m-quantized.rs:129-139 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f961f1c46945a46f6335929733f196790e57e11c90af4db4da530fafd38748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): candle-wasm-examples/yolo/src/model.rs:535-540 | candle-wasm-examples/yolo/src/model.rs:547-552 | candle-wasm-examples/yolo/src/model.rs:622-627 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"007fb496ad490b95d1d93d61413b5343adb6369c5bc78105a06f8242bac2f7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): candle-wasm-examples/whisper/src/app.rs:114-128 | candle-wasm-examples/yolo/src/app.rs:116-130 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/whisper/src/app.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030218de96e52b32fa67b5d9ee4ea8ffe07617aabb161b0f8320f3d55c286d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): candle-core/src/test_utils.rs:49-57 | candle-core/src/test_utils.rs:59-71 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/test_utils.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb95d29a251f03594dc3421a427e5b42ad68e1a847ff7d0d26010bdbefae7ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-wasm-examples/yolo/src/model.rs:661-666 | candle-wasm-examples/yolo/src/model.rs:690-695 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adb67f85ba909daf1761f40323f63233cbda53407542f59f182bf314a626092"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): candle-wasm-examples/yolo/src/model.rs:124-131 | candle-wasm-examples/yolo/src/model.rs:190-195 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca039afd6bd371858fe013ae6daf938e07d4cf9c8903c895e93c5f0aadfbbfef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): candle-examples/src/chat_template.rs:446-454 | candle-wasm-examples/chat-template/src/lib.rs:635-642 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0045d7835c03aca64a15c8170c67aed2c13c66df64e92eaff85eacfdd65ad83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-wasm-examples/yolo/src/model.rs:670-674 | candle-wasm-examples/yolo/src/model.rs:699-703 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfd983a484b87d52586a08c222b903cfc972bb69d61e31cd4a2307a0abd682d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): candle-wasm-examples/llama2-c/src/bin/app.rs:1-5 | candle-wasm-examples/yolo/src/bin/app.rs:1-5 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/bin/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82a3ef8218e75dc76fd197705bf08650d48542cfe02f796e15f8be938b99164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): candle-examples/src/chat_template.rs:395-398 | candle-wasm-examples/chat-template/src/lib.rs:545-548 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04a33f087e4f0d221397a051e9315225d7dd9ded4e269bbf622d648674e8655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): candle-wasm-examples/t5/src/bin/m-quantized.rs:51-119 | candle-wasm-examples/t5/src/bin/m.rs:48-116 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs:51\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e239a0932c8e91f4491d469e897bc5c6fb199153050e48b78a6c91607a70b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): candle-wasm-examples/t5/src/bin/m-quantized.rs:143-176 | candle-wasm-examples/t5/src/bin/m.rs:141-174 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs:143\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0236846f068453ee532ec47bdb8fb5b471b947203d014db38913d4e40dcd8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): candle-wasm-examples/yolo/src/worker.rs:49-83 | candle-wasm-examples/yolo/src/worker.rs:128-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/worker.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dd638e79b84533b2110b86a765aee27e2bfaa02df39897f28d9086c216209c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): candle-examples/src/chat_template.rs:196-223 | candle-wasm-examples/chat-template/src/lib.rs:251-278 \u2014 before extracting anything, compare \u0060candle-examples/src/chat_template.rs\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e967fc240c991c9c968a95ec7151a524d7b992793d4a179481a33db6aeddbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): candle-examples/src/chat_template.rs:167-184 | candle-wasm-examples/chat-template/src/lib.rs:227-245 \u2014 before extracting anything, compare \u0060candle-examples/src/chat_template.rs\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"09252690456f904f57d8dc5377e0efd6a69f1a635a609b37caa96b160c808b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): candle-examples/src/chat_template.rs:337-354 | candle-wasm-examples/chat-template/src/lib.rs:459-476 \u2014 before extracting anything, compare \u0060candle-examples/src/chat_template.rs\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cb328a39204e08564e38d1605d9f49d940b13c845f6a24575154d5fdccb986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:161-177 | candle-wasm-examples/yolo/src/app.rs:215-231 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:161\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ab81f28a17eb8c5fc678f0601949ffeeed2b03f192b383b99dbd754151dbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:224-240 | candle-wasm-examples/yolo/src/app.rs:244-260 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:224\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f7df831e885f50abd83c6788307bc14e8166d63f925333adaa546aa45099b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): candle-wasm-examples/moondream/src/bin/m.rs:247-261 | candle-wasm-examples/phi/src/bin/m.rs:134-148 \u2014 before extracting anything, compare \u0060candle-wasm-examples/moondream/src/bin/m.rs\u0060 and \u0060candle-wasm-examples/phi/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/moondream/src/bin/m.rs:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/src/bin/m.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9428e1c505360ad06796d2f234117d92b876c125913d998c0a44a18f61a75efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): candle-wasm-examples/llama2-c/src/app.rs:11-29 | candle-wasm-examples/whisper/src/app.rs:20-38 | candle-wasm-examples/yolo/src/app.rs:10-29 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/whisper/src/app.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c208e5f1147536a01716a05b9fb88e2c5c2c5b6fa8a90a97d18095d3c781edc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): candle-examples/src/token_output_stream.rs:54-67 | candle-wasm-examples/blip/src/token_output_stream.rs:54-67 \u2014 before extracting anything, compare \u0060candle-examples/src/token_output_stream.rs\u0060 and \u0060candle-wasm-examples/blip/src/token_output_stream.rs\u0060 as WHOLE FILES: 98% 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 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/token_output_stream.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca3e8ab47911d56665307221a41cb48f1c1e13d92c6fe53258647fe07c26260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:94-105 | candle-wasm-examples/yolo/src/app.rs:133-144 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8c491f67b1973dde8660ecbad12f2131acf5b7b8e6d6fa7fb08eee74f8b82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:241-252 | candle-wasm-examples/yolo/src/app.rs:264-275 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:241\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e34258f4a9821f04bebf64038ae631c99c112ea3f19bfb50b5ee79d0cf36906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-wasm-examples/yolo/src/worker.rs:96-107 | candle-wasm-examples/yolo/src/worker.rs:175-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":"candle-wasm-examples/yolo/src/worker.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b5c64c7a8980ac15e9086fde15ec7f684705be9d3d643c8648e1774e00cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-examples/src/chat_template.rs:417-426 | candle-wasm-examples/chat-template/src/lib.rs:577-586 \u2014 before extracting anything, compare \u0060candle-examples/src/chat_template.rs\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-wasm-examples/chat-template/src/lib.rs:589\u0060 calls \u0060reset\u0060, \u0060clear\u0060 and \u0060candle-examples/src/chat_template.rs:429\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":"candle-examples/src/chat_template.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a63bab3f80327f00b1bc3867fdb71a383c54553d79de4e3480936e415fa5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-examples/src/imagenet.rs:15-24 | candle-examples/src/lib.rs:69-78 \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":"candle-examples/src/imagenet.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a559cf9be447e83df88bacc1315d48f2e73a07ea5c2306cedf64795bc6f349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:108-117 | candle-wasm-examples/yolo/src/app.rs:147-156 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"48369e5ff474fb8e0a9bf08149d491e97ed2a429d4e95acf47122484722a07d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-wasm-examples/llama2-c/src/bin/m.rs:94-103 | candle-wasm-examples/phi/src/bin/m.rs:107-116 \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 \u0060candle-wasm-examples/llama2-c/src/bin/m.rs:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/bin/m.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1973898d3ce05b66363bbdb46c1b2141fe53ac39075cb82c1e5d160b080cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-wasm-examples/moondream/src/bin/m.rs:73-82 | candle-wasm-examples/phi/src/bin/m.rs:70-79 \u2014 before extracting anything, compare \u0060candle-wasm-examples/moondream/src/bin/m.rs\u0060 and \u0060candle-wasm-examples/phi/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/moondream/src/bin/m.rs:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/src/bin/m.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b52d1549577fe30d87aa4569ae795e83b916da5d51c64efede7bb616fc9ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): candle-wasm-examples/quant-qwen3/src/m.rs:536-545 | candle-wasm-examples/quant-qwen3/src/m.rs:602-611 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-wasm-examples/quant-qwen3/src/m.rs:599\u0060 calls \u0060push\u0060 and \u0060candle-wasm-examples/quant-qwen3/src/m.rs:533\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/src/m.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffad5614ac25fb13bb426929836c27c709246489687ca193e2a2c28c8944142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): candle-wasm-examples/t5/src/bin/m-quantized.rs:36-46 | candle-wasm-examples/t5/src/bin/m.rs:33-43 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbe3612f95e297fc8a50d30392a29857cade74c50af1af55963f0081dcc4a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): candle-wasm-examples/bert/src/bin/m.rs:73-81 | candle-wasm-examples/t5/src/bin/m-quantized.rs:160-168 | candle-wasm-examples/t5/src/bin/m.rs:158-166 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/src/bin/m.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7e9e4af7c4c8e162ea49588fe5aba7e6aa5f7340f9fd76ba3ed0078808cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): candle-wasm-examples/segment-anything/src/bin/m.rs:57-64 | candle-wasm-examples/yolo/src/worker.rs:72-80 | candle-wasm-examples/yolo/src/worker.rs:151-159 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/segment-anything/src/bin/m.rs:57\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/src/bin/m.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ff50dab0b88308c39dca44165ffefcd2d86e0ceb45d528d9a0cb53717059a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): candle-wasm-examples/moondream/src/bin/m.rs:57-65 | candle-wasm-examples/phi/src/bin/m.rs:49-57 \u2014 before extracting anything, compare \u0060candle-wasm-examples/moondream/src/bin/m.rs\u0060 and \u0060candle-wasm-examples/phi/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/moondream/src/bin/m.rs:57\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/src/bin/m.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dca259d5827f26be1abc6cbfd094a43b995b41cd61aa137202a9b89c9d85cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): candle-wasm-examples/t5/src/bin/m-quantized.rs:69-76 | candle-wasm-examples/t5/src/bin/m-quantized.rs:152-158 | candle-wasm-examples/t5/src/bin/m.rs:66-73 | candle-wasm-examples/t5/src/bin/m.rs:150-156 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e79afd404e95643fe0e13d3aff25cc71b297e051032fe12ba96b275d9b871ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): candle-wasm-examples/llama2-c/src/app.rs:74-81 | candle-wasm-examples/whisper/src/app.rs:115-122 | candle-wasm-examples/yolo/src/app.rs:117-124 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/whisper/src/app.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f015299467f2f132de92c397f2dbdfe8b7e438c4789d3220a8c6e21ce0845246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-examples/src/lib.rs:134-141 | candle-examples/src/lib.rs:159-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-examples/src/lib.rs:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/lib.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c7939748a8821daa252b63ee0f1d8de894539d8b9121ad58c49639332e8f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-examples/src/token_output_stream.rs:35-42 | candle-wasm-examples/blip/src/token_output_stream.rs:35-42 \u2014 before extracting anything, compare \u0060candle-examples/src/token_output_stream.rs\u0060 and \u0060candle-wasm-examples/blip/src/token_output_stream.rs\u0060 as WHOLE FILES: 98% 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 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-examples/src/token_output_stream.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7189bd427df5ed1ccbac2e83b16a2f2bf289f00e4025c31e12a3da87df8fd77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-wasm-examples/llama2-c/src/bin/m.rs:83-90 | candle-wasm-examples/phi/src/bin/m.rs:96-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":"candle-wasm-examples/llama2-c/src/bin/m.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"89202034c7c2d6979a1736a67a869a87652b3c1a189d54052b94a045a798f45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): candle-wasm-examples/llama2-c/src/worker.rs:300-307 | candle-wasm-examples/yolo/src/worker.rs:226-233 \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 \u0060candle-wasm-examples/llama2-c/src/worker.rs:300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/worker.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9046f7d22294e657557322b6cb41440a05e6e5779d37721ffb879c95a2790ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-examples/src/lib.rs:85-96 | candle-examples/src/lib.rs:107-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060candle-examples/src/lib.rs:119\u0060 calls \u0060from\u0060, \u0060resize_to_fill\u0060 and \u0060candle-examples/src/lib.rs:97\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":"candle-examples/src/lib.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b3743839cac65097efbd504f213ab12895b2b88a8f4615718dafe17d054243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-wasm-examples/blip/src/bin/m.rs:127-133 | candle-wasm-examples/moondream/src/bin/m.rs:198-204 \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":"candle-wasm-examples/blip/src/bin/m.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"30361377bad4cf22b9b0c82415f934368c941971de11a3debe7a27a701034f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:182-188 | candle-wasm-examples/llama2-c/src/app.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":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e0537944a995ab54c278c2abdb544949b2a1fa6f06f1a28b16284670457e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-wasm-examples/t5/src/bin/m-quantized.rs:133-139 | candle-wasm-examples/t5/src/bin/m.rs:131-137 \u2014 before extracting anything, compare \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs\u0060 and \u0060candle-wasm-examples/t5/src/bin/m.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/t5/src/bin/m-quantized.rs:133\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/src/bin/m-quantized.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"12171cd8abbb8b84be169da219a20ad4d2debe91bbb043ce594995cf21c56cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-examples/src/chat_template.rs:449-454 | candle-wasm-examples/chat-template/src/lib.rs:637-642 \u2014 before extracting anything, compare \u0060candle-examples/src/chat_template.rs\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-examples/src/chat_template.rs:449\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060candle-examples/src/chat_template.rs:448\u0060 calls \u0060IoError\u0060 and \u0060candle-wasm-examples/chat-template/src/lib.rs:636\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"0471528b4d972cb743ef7ecf0b65b8bbe8f6eb28002f92e6c0a4bddeb4c9e602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-wasm-examples/blip/src/bin/m.rs:80-84 | candle-wasm-examples/moondream/src/bin/m.rs:90-95 \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":"candle-wasm-examples/blip/src/bin/m.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be9209cc1489eb9ab4ac530e6c4cb3acd381c992f2fca8e18bdd743c1df1d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-wasm-examples/blip/src/bin/m.rs:139-143 | candle-wasm-examples/moondream/src/bin/m.rs:208-212 \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 \u0060candle-wasm-examples/blip/src/bin/m.rs:139\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/src/bin/m.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a42d59db42a6083ff7277b1be791221a205de8a0da845c1b9e7246ce0d8a102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-wasm-examples/yolo/src/model.rs:761-766 | candle-wasm-examples/yolo/src/model.rs:840-845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/yolo/src/model.rs:761\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8fe05a5dc181f279d34fceb315f9d23a7afd082b716001f535505b4f536dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-examples/src/token_output_stream.rs:26-31 | candle-wasm-examples/blip/src/token_output_stream.rs:26-31 \u2014 before extracting anything, compare \u0060candle-examples/src/token_output_stream.rs\u0060 and \u0060candle-wasm-examples/blip/src/token_output_stream.rs\u0060 as WHOLE FILES: 98% 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 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-examples/src/token_output_stream.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c74cb26eb8e4d4a1de9c530803fcfacb79f9f558e4259f4516b837902a2aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): candle-wasm-examples/llama2-c/src/app.rs:63-67 | candle-wasm-examples/whisper/src/app.rs:104-108 | candle-wasm-examples/yolo/src/app.rs:62-66 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/whisper/src/app.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbbb470c57318257941c543882640f5b3988c4bb0ff13ad540d72ad73b98926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): candle-wasm-examples/llama2-c/src/bin/m.rs:106-112 | candle-wasm-examples/phi/src/bin/m.rs:118-124 \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":"candle-wasm-examples/llama2-c/src/bin/m.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fddf751c6d5002f4ebfb83d56b28241078866240b6d86f8d73a07dbd20d649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): candle-wasm-examples/yolo/src/model.rs:378-389 | candle-wasm-examples/yolo/src/model.rs:393-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/yolo/src/model.rs:378\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8781124f267e4ee83b65dff8f4f0c9250cffb6509b2773c2bd9ba2083d9ca34b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): candle-wasm-examples/yolo/src/model.rs:264-274 | candle-wasm-examples/yolo/src/model.rs:279-289 | candle-wasm-examples/yolo/src/model.rs:294-304 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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 \u0060candle-wasm-examples/yolo/src/model.rs:264\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04660720aa7965cb7200ed2d125077ddfdc782495260290f6ab5a5a605953e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): candle-wasm-examples/llama2-c/src/app.rs:143-149 | candle-wasm-examples/yolo/src/app.rs:202-207 \u2014 before extracting anything, compare \u0060candle-wasm-examples/llama2-c/src/app.rs\u0060 and \u0060candle-wasm-examples/yolo/src/app.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060candle-wasm-examples/llama2-c/src/app.rs:143\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44932f46f830671d1fb130a26186e037af8ba40d7099c8317c8a1048a9c16f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): candle-wasm-examples/yolo/src/model.rs:536-540 | candle-wasm-examples/yolo/src/model.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac094ca35d942c8e50d79f3d98278a984cfad3fb8b69c1b0dd646c7d54ec358f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Tensor (LCOM4 8): Tensor\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":"candle-core/src/tensor.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0a96e4d6c97a516b9ec3d810151de11e8aa006c6ad1dcf68af9f0ebbb7b090"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: candle-onnx/src/eval.rs: candle-onnx/src/eval.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 345 in candle_onnx::eval::simple_eval_ at line 250. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-03 17:36:13 -05:00\u0027 --until=\u00272026-11-01 17:36:13 -05:00\u0027 --full-history --no-merges -- candle-onnx/src/eval.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":"candle-onnx/src/eval.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"130793c0db8c8b4f57fc07e5af22cc97af726c40f20aa9ce4a134de12c77dbf2"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 7 significant file(s) lose their only recent owner: candle-core/src/quantized/repack.rs, candle-transformers/src/models/gemma4/audio.rs, candle-nn/src/moe/cutile.rs, candle-transformers/src/models/qwen3_vl/text.rs, candle-core/src/cuda_backend/cutile.rs, candle-transformers/src/models/gemma4/mod.rs, candle-transformers/src/models/qwen3_vl/config.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c3ee3c93c7d4064a9ad0b8643e070e8b1bfe72f623952ae448b9ee40169de6db"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (12 single-owned of 344 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 344 of the 419 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: candle-metal-kernels/src/metal/library.rs, candle-metal-kernels/src/metal/command_buffer.rs, candle-transformers/src/models/mimi/transformer.rs, candle-transformers/src/models/lfm2.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Besides suppress tokens, we should apply the heuristics from \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":"candle-wasm-examples/whisper/src/worker.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ace5b34adecd71ef9c773ba9203ad30e8729cfb91597720f22d63ba1f0a792b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Besides suppress tokens, we should apply the heuristics from \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":"candle-examples/examples/whisper-microphone/main.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4a191de28c09ed3c71d04140ae8a077452b3cfd55aa0b1ba6c3c9c4599c831"}},{"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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac81da357a4d4ca19f094d9e25538728610f59833e78055d9314de03085ba8c"}},{"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":"candle-transformers/src/models/trocr.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"9763a54b4ccfc01bc3f0d571753dfd18519c17ae3ab1f420939e02d6f63b21db"}},{"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":"candle-examples/examples/musicgen/musicgen_model.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b8ce5383f7f94a033e90cab4ed17bc5de849534f551ef2492e66d3304f8bce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Proper absolute positions? \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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd6c66e1aa91d29712da974d7750f05397ba0becd8f7f8b7a1b57cda34f60d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support cross-attention? \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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3257ca4d2d6cb8c06b7945907aa14f81a25f1bec508e8c17bdbf0cf4c72fe71c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support cross-attention? \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":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8115743771551546aa8449f30728bd7fcfff8a067a4bd3db58aa4c90ad0633ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support something similar to \u0060apply_chunking_to_forward\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":"candle-transformers/src/models/bert.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"603b6426cdd85553cf11ade877e5f1b3107b492da12b9752929388c07e27a3de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support something similar to \u0060apply_chunking_to_forward\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":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91b03a40e54128c7bbe23db6d9249c863bbcbf555d8374cadae63901138b80e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could trim the tensors to MAX_SEQ_LEN so that this would work for \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":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c438cb26e43064e3064fe5d710ebf9485b230e9009d025211d6184861a6ad0fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could trim the tensors to MAX_SEQ_LEN so that this would work for \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":"candle-transformers/src/models/falcon.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1681afc3124fe17345a613610f6376ad4f0702178ecfb13f8bee7a9bacb85a50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add cross-attention? \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":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f530b4f0e4c66df91587a5dcd24a7c4a0a9ba541d7a6cae236d40f58169680fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: In order to fully test ConvLayer a model needs to be found has a configuration where \u0060conv_kernel_size\u0060 exists and is \u003E 0 \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":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c08933bfebd12b63924bf117b6c4c46e46c5dde4163680aebff920c463df63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Apply dilations! \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":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ebd2e8c3707ad64bffc68c264189cb637d0a3673435645fad8806844944730"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle the sliding window in the attention mask. \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":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ebcf7a3ceb25001d80549e507c3e343cab170586e7b7c54d566f63a40b31a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Not supprting Mamba layers (blocks) 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":"candle-transformers/src/models/granitemoehybrid.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e993a1ffe70e559910423d7819836d23a9712048f14ff725bc8d59285aee56"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: As of 2023-08-04, gemm is slower than expected when multiplying a matrix of \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":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1e6413cefb1d411f239b8df3e9947c798c95d604f9f8b08cb5cb953e56e3d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: causal mask \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":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7dc8ad6f1d7256338d38bc25bd18c81c3a0f8f30bccf9a2d68c6525a9281e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: speaker embs. \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":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6ca5654a53a69e495b66387259b128238e8d510a06b68a3b64e801481c8312"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: b \u003E 1 needs varlen CPU flash with interleaved cache support. \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":"candle-transformers/src/models/quantized_qwen3.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9d951008c69b1e8d5c1e3373cb446b19a84401bcbeefaed3a59c562943d420"}},{"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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6ebe7ed3342758b00f72d3842cc6f1427cbd6c0be1f69c72d502dbede2ed3f"}},{"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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c0cf8743ee4a8e913fd73811b2ca71cd8900d357b649ea9d1915322b9d4c5c"}},{"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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20a40a7b6a545a439fda7f7b83d777d7adccdd6a08f4cb30f03a2e227ab6b72"}},{"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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3beb4c96b15ca828ddaac7d0cbee8eddbd11c169435a464622316fc62b35ca"}},{"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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabf664e32507c63d7420daffc530bbef6235d5d3e36d884e0a239641c3ef75b"}},{"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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4804dd77524e948253a05cccda1ea6f40b071a0bc31d6fdf5b167cc75a9603"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1950aad1e941e0850aff9d20c4f7a808ecfe30c0d1169982165226f0f4eb4d7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b56e00f73ad4c646c6b8b8abdce9c24f08a31767cf12ce9c6992397f5dfa3b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a3ec32ba5d5df7c0c5cf7ff58912d410f8ab039479774467dfd7ae5756bae1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"1687396ced7df20a370c0b86e38d98b75eaeee805538cbe19d33d450c9329b5c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6a4f5e2b65c9398a8717eef483a79649d264776433bbbf3a00f27b449c8285"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clamp for f16? \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":"candle-transformers/src/models/t5.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa050ff30347d39628043be478be4ca99101f68635f84c2307f6579f29305e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: re-visit this \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":"candle-transformers/src/models/stella_en_v5.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"307396fbb5c100668a6e4223e1d8efdf5427c00141b16719f4392d8b4459375b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: quantizer if we want to support \u0060force_not_quantize=False\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":"candle-transformers/src/models/wuerstchen/paella_vq.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"76668d011741c265aee9b560fe6036a8e3d893f6d19b46b6e15167fb5a4d861b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: revert the call to force_contiguous once the three matmul kernels have been \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":"candle-transformers/src/models/stable_diffusion/attention.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c899fb1ce069a1d139ccf372bf8e5566535d8531835d8b0f6366cdefc055ba3"}},{"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":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b563220076d74726edabf78a9774a0e24a07da2c804fa1dae3fb9000fe6a1f1"}},{"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":"candle-examples/examples/whisper/main.rs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0353d9f2f15f83af565d48eb02d3727a49f1cff2ce7eb07a819d2924bb50d91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return to the original image frame. \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":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebe5296fa420502255c7f7ce905cae91331b4dce079467586a35a4be169140d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove duplicates \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":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dadc7703637186b2453992c832b4c3b7e3b2e593245a7dea1d58a8d28dd0787"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should ensure for the seed to be constant when running these tests. \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":"candle-transformers/src/models/mimi/conv.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c12eb8b7e544a49ebd7e1374f7ecb767be920f020dbd6787f51fa27b2582b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should ensure for the seed to be constant when running these tests. \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":"candle-transformers/src/models/mimi/conv.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4804b6b16b479aaafbac6da46afd1557c9d06027ce23fd453358ea8d2b04172"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: avoid repeating this. \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":"candle-transformers/src/models/mimi/quantization.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7c1f500ffcd45d79658bed7bcc256e1ae59798d89d41ecd69c3f10461f89cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe use bias_ff here? \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":"candle-transformers/src/models/mimi/transformer.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb24de7ba46e131d9864d3a4bc30c4b865410f73f6bee50e15ccf216305df148"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: process of multiple images/ new line \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":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d8fc92a2c341260654ef5ab322b371ba6f11fe92df2df5a8f684da19b54442"}},{"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":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a073f80eee3dc5a2a857bf0d637587158e65ecae4d4ead9ea8a53c01db87e580"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: rewrite 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":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"785c192c25ae5264d3f99ba7925ea1287429f41bd781d977bf85176566210955"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO it would be interesting to add the setter maybe ? \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":"candle-pyo3/stub.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"166376f05c321dbc48c8444283f8590f31b44904736177e828df4b283cab2b00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Something similar to this should probably be a part of candle core. \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":"candle-pyo3/src/lib.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef52d6b1123994c1368b0a66d6b2c12b5e734cf7f70cf3b5d0ded8b4015e8873"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle arbitrary input dtype and shape. \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":"candle-pyo3/src/lib.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"53554add1996c175ae5c4ee3a1120891ecd25a101ac8d1df2096fe3fc86fc291"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle arbitrary shapes. \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":"candle-pyo3/src/lib.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dbfe3934d9ab6b64a0395c3a431bd603769c59c03ca26148f7cbb5eddbf576"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Do actual initialization here: e.g. kaiming_uniform or xavier_uniform \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":"candle-pyo3/py_src/candle/nn/linear.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2588cbe9b91644fd3e79c97cf84ff8372823a0e9c75986c2b95f0ab844f06f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove \u0060args\u0060 and the parsing logic when BC allows. \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":"candle-pyo3/py_src/candle/nn/module.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7837c35a879597bcd4b723e66cf1c57c60e89707039f26db576d4b5d90d47f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support cross-attention? \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":"candle-pyo3/py_src/candle/models/bert.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc127c60987b19faff96b78d2f21659794f28856dab7085570564e3337d19f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support something similar to \u0060apply_chunking_to_forward\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":"candle-pyo3/py_src/candle/models/bert.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"367ea80e6bdcb39a5098870c678923339f34d074ce626f3546b466e11e2f9c4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: maybe repeat k/v here if we start supporting MQA. \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":"candle-pyo3/py_src/candle/models/llama.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e315f105f089cc3bf8b5167e56f18c7d89fe6d28906240d5c823eee5a0fbd2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Validate node.input for each operator. \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":"candle-onnx/src/eval.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce62f11fa7ad9e85feb88df7aa1cc2307db053c29277d0d4dce8f0f87643b9a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: current implementation of broadcast_pow cannot handle negative base, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-onnx/src/eval.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"681f02f5d375388fa510854da657947bbeaff90a58f031659e7b7a1f5dc2976a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Provide an op to handle the ONNX generalized gather op ideally in a \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":"candle-onnx/src/eval.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2118bb27076c90d1b3921c354f2eb331c6c0fb7ac0ee2aa029c5eee733ccfd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support sparse_value etc. \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":"candle-onnx/src/eval.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1515815912d56829cebe36d9b2859d79fcf366b5e8cebfbb8e74fbdbe593b72"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle empty set \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":"candle-onnx/src/eval.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31e8016159979ecbb482bc9fb5e87f6dbd18b5145e1ffe559d1539074df074c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle empty set \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":"candle-onnx/src/eval.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"674855b56dc7b00df007310dd3c7f4d1a1c327cb36e6c7f4d68c0894118e1059"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This version is only compatible with ReduceMean V13 and below. \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":"candle-onnx/src/eval.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"82eaa1296580b8cda0a19829960e48e0f80e434b0bd735b90ca40bfc526d8c37"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: depends on layout \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":"candle-onnx/src/eval.rs"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"52dfa49ecd61152411ecbfff9ce58cf22376fa61da681721f2e613a6d149b683"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: depends on layout \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":"candle-onnx/src/eval.rs"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5152010c6a22bca9c05f8cb97633207699646be60d3a6e56fc6b7f2123abd7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support groups. \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":"candle-nn/src/conv.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"443be7a27dc36dfb2cee739814b8653f0fd281ea0b0bee217752db57a945ffde"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: using \u0060candle::map_dtype\u0060 causes compilation errors. \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":"candle-nn/src/ops.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"695c837c40ba33c23e70c07966fcd1b6b5bfacc445c41f38819c47d40bb3a819"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we have a specialized op for this? \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":"candle-nn/src/ops.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93b662414c2f13060ab3b5f2797179c770087fdc80cc04d15db79eb3d577698"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: provide specialized kernels for the common use cases. \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":"candle-nn/examples/cpu_benchmarks.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd5fe3c86831e96b094a12ea81399e3095986fcd010cf280fd0a53ce413178d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: provide specialized kernels for the common use cases. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba4d3f5b9dd8f933d366d81f43d37465e0152b9cc4654657c19b8ac8f014628"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: provide specialized kernels for the common use cases. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8196f470f5a0c985d130eeadb41963ccb033e1a325eadbccb451eb613fe97434"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// - final type != bf16 (TODO maybe just template this kernel too?) \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":"candle-metal-kernels/src/kernels/sdpa.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"20682f3a33418058e15417c909fd649236d698d66b394aa6dd4c45db98306e47"}},{"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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"88df77e8b7baeb121ac0ecda208b315402632aecf95cd677a444ee1817ed8338"}},{"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":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb0962b596a4cc51abd4b7bd7bc30d7e628bc68b13225e506722a61aa05bc87"}},{"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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"be37f6f83f4378629b05d7213db652f7c5b9987431c835f3441caec9fb2e85fb"}},{"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":"candle-flash-attn/src/lib.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5deafb77e1d2a60345f96fa854fb1657bfa9b32054c810e3a0a0b1651c6754"}},{"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":"candle-examples/src/bs1770.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a80fbc20232625113a3296d666430cf4090a0216b0219625eabf0a572c2410"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Change to \u0022stabilityai/stable-diffusion-3.5-medium\u0022 once the maintainers of the repository add back the monolithic text encoders. \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":"candle-examples/examples/stable-diffusion-3/main.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c29509038e0cc7380205cb6b4416bf5f9ef4631bf4aab4ed0af336ce9f9003"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: candle-onnx doesn\u0027t support Int8 dtype \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":"candle-examples/examples/silero-vad/main.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e4ed33116f4f0090782341576685c091a4409bb130395fc3ab0de90116cb2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: swap to TheBloke model when available \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":"candle-examples/examples/quantized/main.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"863e8497251cd219c479ccd7124131dea65d7ea0a1b353f2fe292094c5ebd40a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add an offline mode. \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":"candle-examples/examples/musicgen/main.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"29dcae1a9b583d19b52825a24f971cea99e5c1cd73d313a9af9c29066126c6c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add an offline mode. \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":"candle-examples/examples/falcon/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdca94757c454c8d8fb5c20cd548207f57d5080bf10a8e7af3e355118cd1e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add a KV cache. \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":"candle-examples/examples/musicgen/main.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b32512e8e9f4777a3b9aa7732bf7d476ca83a97f76105f949288f8062564e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: layer_head_mask? \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":"candle-examples/examples/musicgen/musicgen_model.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee157d9ae74f9cbe8d21f51bc5b742c96c64d4193a314eede71aaf8bf8b4e7d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use the config rather than hardcoding the offset here. \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":"candle-examples/examples/metavoice/main.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"534f0949404230b2f6c44564f9e243db735f2bb8043755040419c29ba7021004"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe add support for the conditional prompt. \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":"candle-examples/examples/marian-mt/main.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a173996da0180315d6001f5995889c341c9a5aded3310fe6a0e49c6b090963aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe add support for the conditional prompt. \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":"candle-examples/examples/blip/main.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5233831600ebba65b8e7cd3e54ffc06f949842693035bec3f452e7a666b3ae8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo!(\u0022Q {:?} K {:?} V {:?} - x {:?}\u0022, q.shape(), k.shape(), v.shape(), x.shape()); \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":"candle-examples/examples/llama_multiprocess/model.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b4435bf7515bd518d0da74db2192ec1c75f82b01395d4635793c0f62b3f70d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable. \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":"candle-examples/examples/llama2-c/main.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76d4e1050f81eb99ee6d5e1aa4fd1fa5c30474563a1d0a5ad74b714c875f734"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add a way to deactivate the backprop graph tracking when computing the \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":"candle-examples/examples/llama2-c/training.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6640182ca7749f107227d7edd53d4c9d9afa7b92f6e091a9fd3471ad966d2e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Switch to generating the two last arguments automatically once concat_idents is \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":"candle-core/tests/quantized_tests.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8844b971bf77710c4a5d95861ecc02ed89eaff48be68a014ca4657443c3a6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Switch to generating the two last arguments automatically once concat_idents is \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":"candle-core/src/test_utils.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd02b2c5f069945f05488c77d8d848b72cc623c96381772cc61fe5a6e622241"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make the usize generic and part of a generic DeviceLocation. \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":"candle-core/src/backend.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ced93fd6f81b4c736e98c570f96d4c0d0f44bba6b7b070a523299f1a595cc2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid using a buffer when data is already on the CPU. \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":"candle-core/src/convert.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"787795b3caa033822d694a10e6fdd2106e14ab90cb9424346b19a737885a6948"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove the special case if we start supporting generating f16/bf16 directly. \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":"candle-core/src/device.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b05a1f0c90f209094d31c89b88662cd4d1cd62ef9c50dad33cd76ed0445be9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove the special case if we start supporting generating f16/bf16 directly. \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":"candle-core/src/device.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"9925c88319790f92d1d248db8b8ad6bd17c2d36a09753fd2d216f361217d1b0a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky parser for the npy header, a typical example would be: \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/npy.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1759f76ab99b42d36a76a4a03ab4d74de605168043b0b1b972229028b5540a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add the possibility to read directly to a 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":"candle-core/src/npy.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"379c148d44a68eea272f70fab0d0a5d400c7de9adadd1f1492bed095d1dad5ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: have a separate ordered dict and a separate default dict. \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":"candle-core/src/pickle.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"280b0dc13c72ae955b6952a3a05487c41f327fd026d3b172d364330d31c8b616"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid the unwrap here. \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":"candle-core/src/safetensors.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"618e4c56bda38d3830c0c5c7f3483050f7c6b7ff46524dcf2e096b90ce165f5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid the unwrap here. \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":"candle-core/src/safetensors.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f24759eab4f07189abb541f4a9ed11910b3ebf77263bd78152510fae1a69cd4"}},{"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":"candle-core/src/safetensors.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"303836fe15a4dded90a2024810fd77ab72e03898cf719a40070303c9f59ec5ae"}},{"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":"candle-core/src/safetensors.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8239c0b16c49934d819a64ab07d78d8fa1494a9f94d5962b3d5396383e179c41"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This makes an unnecessary copy when the tensor is on the cpu. \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":"candle-core/src/safetensors.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd84c128b8f71d3066843e09af79f1235f8546ce33538d73c106e1ce209084b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we also have a flush method? \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":"candle-core/src/streaming.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afefd22cb10b34b1957e6450d8e367ebf2b5857f96e1625113de3a1e99e8178"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also make an inplace version or a pre-allocated? This could be tricky \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":"candle-core/src/tensor.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1f3c9eb0f8541f12fabe8dbe25424928002d025255cfb87ea0105ab8a22d56"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid concretising the broadcasted matrixes via contiguous. \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":"candle-core/src/tensor.rs"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b58e16b4fe1402af614af4e2cf1737f64b36fa306d62e651e99445c46f4ef2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe we want to add a more efficient implementation at some point. \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":"candle-core/src/tensor.rs"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e065b5415c02c902daefb5d2323507390e76c2817a17faedc9782d8a900d37f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Mmap version to avoid copying the data around? \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":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e43cdb93ffe344520ab4d45d8d9a142de721f3a8ce78eb91d4680e2e65793af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: dotprod \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":"candle-core/src/quantized/neon.rs"},"region":{"startLine":3967}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eb5cbc7a00e3fed8411e4770ad98fe6e1329c9e3ae2cde22a9eb00f6b0b188"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support for F16 and BF16 though this is likely to require some upstream \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":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f155c587b3dbad08286d50a1458b6dad0b0ac1be8dfdcf2289a7b9e14e6246"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support for F16 and BF16 though this is likely to require some upstream \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":"candle-core/src/cuda_backend/device.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bf71eaa8875ab4285d1fd7d0ce3f0c671c719f645400338d3353037c0371b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO other cases \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":"candle-core/src/cpu_backend/conv2d.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab9b09095d4ed53d9267bf86f9831ad5085ee3ce6d1f70441a52172f09e26c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe we should not implement [Clone] here and instead have an explicit allocator \u002B \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8a49471d2398bc28e96a4ee7c234c567a71fe571651a46fceb2c2d49c58d09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Specialized implementation for the case 2*sz? \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"746eb9aebd9e5b481b37c78f8fe24d8a3f6102fe9e824fb2d44935533a526727"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Specialized implementation for the case 2*h, 2*w? \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be77093f471da3656ea94da08f5124f924f22bef32578b9c751cf30ef058485"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid making this copy if \u0060inp\u0060 already has the appropriate layout. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8f7b981aa3449a896e78315c031b34d77a47b039a6bd8d15373512538bde55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid making this copy if \u0060inp\u0060 already has the appropriate layout. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd296fbcf70eab208339a40eeec3e1113d7c69a56a5dfccf334c423df063c852"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid making this copy if \u0060inp\u0060 already has the appropriate layout. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2ab25b4cac3ccd10b74fc3315ccd8193ee5897566839921b6a1230527351c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: find a way around the quadratic number of cases below. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c70e632280bf28e563bac50c630eaafd6da0f7fd60fc42a3d251ddbed36ec50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Have some generic map for functions that apply on num_traits::Float elements. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2473}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c06d094461ab187471c7c1dd27e9b133b6350f452e1245ef7c893999f7c10a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Have some generic map for functions that apply on num_traits::Float elements. \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":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfa2a7c2145b49413ddacfc11c36de61d4c02d722209c65624b2eedd9b8dd53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement from_buffer_iterator so we can skip the extra CPU alloc. \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":"candle-book/src/lib.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2589dbddbc475d89d516c61c7e36cdfee43d5616ebb6db4140ff6b66ad8adf0"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060tensor-tools/src/main.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tensor-tools/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9213b58173fa7fa7069e1e7b44552747cf4301c01416bc68c36370d7a0d34d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 12 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is \u0060candle-transformers\u0060 (75368 LoC, 765 module-visible types across 22 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2ee2290031218917cd3d220ead1603e8a1f5ef4a5589500c316510321d41050"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d88706ad5a3bc96e9854f2c1b0ba252eb758dd870fa58f64224dec8532dc4780"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"440e5cace23c87b0c5536014492969a0e288526595b54ccfaa8fe21accd48044"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"1f0488336cb31ec9f30fe2d94ddf0a64dcc8ac4f46b43d07e409afa9eff3e9d3"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a00425b826ecda8ae5e7003413e2acaf056e9869688752fc8797c67f571c0910"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59f74f6873c346f0c3a3701dec4067edc4ee3a2fe45dff4e3511259bce29b7df"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 223 of 344 significant files have no living knowledge, while the repository is still being changed at a low rate (51 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 223 separate risks. Counted over 344 of the 419 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/debertav2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c18b1d827ad46862cd40e50ce4afd3a7b3177121447f2ac39709572f4e2e4fd"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"574cd3bb021e4b2646bafe447361fce85f6f19c6ae052aebe6b495c7275d94db"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b8fc8761a09613b47d89a863cfdd5379877d088ff972efa495cd05a737c1e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb71e3425de9202b8f1c0374cc6671bb378f353278e1ed786fd40fb075ba4bfd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/metavoice.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1778a2ab401ae1243a0859a5b516dd49fa855e727b6d0883f57557377af73af"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v7.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dcf052ac10a0b442b8fd111e77a87176ca4ca31c80b7baa631f02664a1d737"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/transformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6151a37baf6a5a15b7f6da7c14a54912b0433577e4a33f6d26a98d532597fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/kv_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3d61cd62fe46877830603cdf9732fe168397049d365d25ba426751e3b9f9e5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobilenetv4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbbf760d773df1a7d820493a5386611a8fb9644db0c1fb86b73e340b0d96b16"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/uni_pc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2f21e504b048e8367e89e08f0da899fac67f0cb3a63de20d8b046928b9143c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/t5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e7d8e08b0cac35c4e7b3774ee1879f5fa9d3005818306fd6157f8f02c2059c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/imagenet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5ad2b052f24ccde642030522e8518c2138b6687d3922c7f094d1e655a3fa10"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00283d7861b21802dfb2d74efa8786166f17d176fb8c06a900d04e300b1b9d5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dfdde02862fa151c88c6da244ce8945189a5570474d057c87770b82978880d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"847bc6772a1ac8ff61ab8f72f65448255a8e0b43e75918c25eaf74ee99094a2f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d_blocks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff4ea7387bb362be1ac5bb067bff9009a02fcb03d818043014d505202a4714e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/src/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dc82506699c5449718efc378003d18fe6d6d081e855ccc3c7615204eb9939f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/siglip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c673b2983150295cb4b140d307b2fed3da44939a1fe814053e2d1ca34757f31"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/encodec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf494b5511274a8378b9e8de06d68931af64fea33c99bc592105f04130a883d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/chat-template/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d191bf655323280d1edab9c48916043e4b286fb6066b5d8a2b53d5ae0c0d4be2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/snac.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87fc0d916961b64deabffe33c802b5fc9b39bf8cbe107ea766f68bcfafa1eff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/recurrent_gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b39d55ec39aa7d38b9182714a657564a3a8eadf950bfb179ab9bcdeb358cc5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4241d0760177000eccf293867c33cfc6af87bac8aedec6764df76b4ff95b9c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"777bda77f278981c3454cbaffa538a74e994a17a4544cdc13e7f042b481fe112"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_lfm2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ea78fa2b14fe64e834fbc2a7ed37906021000c13de0308fadfdb31590b0f87"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a488630b48829764a83ee539e12dbcc4811b92dab4f7831f59c778475e4df3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/marian.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e84eeb03e4b5f8e07fae9437dfb49b4271461f095256bac0600f67c7f80db5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/src/m.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a648ba5cb025dee2550c5e482739849e97f2911cb54f883a089e8d0898085e83"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/glm4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81d529c384164a20ab006adca8c6b3b0f93e94461641b752edfc37a99a0001e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granitemoehybrid.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3792fd816844147e6f744cc967e84e98b04eefbcc3943767464ead2f2c2043"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/text_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd4b1c338c654b5492e462963ae3ea68927f90d3e6e57f64d8bfe345e577ffd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/codegeex4_9b.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f73aa9eda372476ccb27f37dc0e8a262252b518b73fed637089c053776438d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfee029be6a1b14ebf8e62bea9f4d86cf623bac7978813909d0054030c455ac8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chatglm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44f58fd9c8508163ca7e16bb75998da96653aa8057b56e97956b5109d3f7a83"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/tiny_vit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c334ab128b2789f62d5979dfc28e940b403d51d9fc1edf2158c06f00c358f34"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/vae.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cacacb21bd62751c343ebfbb1bbf04455cc74040b276d2fecb451fcc01356b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c62c432cbd341e38df1f7992ee005b5c3c85fc7642404d105555c0ac7b1264c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/xlm_roberta.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbae0db380ad70a07da96e9ba29d36ab9601e838748d17f4f7e4fb4fa063982b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/based.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49f1ae1360e629d61c7af208e2aa69420d4bbc35582d95d6392ab4f57181081"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/csm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8811cb118ad94b8add6262d4d92da584de2805df6809e60a271e2bb53e6b6ae0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26da049f5e633e9f7e56f78bf2a27b24be29d47802b144bcf072e76ef7a52401"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixtral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a840e9064cac7e717abd8995a92fe658d416bc78ee061a4a99cd2f896bd9e60b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/display.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d0a9076b751136de5323fbe2d321269b1a761bf2224e972474069e13f177e5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tensor-tools/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2682ca78a85d52f6cb1299a0363fa66dbb70402025e7fa795325566cb1b8cb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/container.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14e4217623ea9d2977d804881701f0ab4bbc5dba716e646fef56fce8e73572e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_gemma3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcdb69db8439dc2e3a60ce250448a07851c05d17152fdb650ce706c8ecf03e1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen2_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc02a9b732adc841d6b2368dfeb0ddd12882bd6819be05085ccfeb1a0876a0b2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/simd128.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5065d8f46672841e225bce974963f00bddaf71225099fe6180242403e8f7b58d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c8aa0e1ef68e55c42777dab079873fce7099ded506afdb275456e10460467c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d292301ab45fab6434238e6b86ab61025cd6e1e4231ab75f7c74e6ac250f309"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/falcon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec8881a1bf74bd97ce869e19edc8e72f201d0e8b5a58e900f7dbcd660da2bc8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/trocr.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97b8410ff51acd3660fb8be75cf66dec9be25d6a2684a971ce4474361b291bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/chat_template.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c1a8aff4305d6aa1f04b79beaee56814c339d8c7ae6355ccb9fe925764659e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/parler_tts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7365c784c6bf30a03a0711b268c7a1ef9e1be49f112fb6f09263fb87ebed3ef9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/depth_anything_v2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b06d065e11344e79db21390a451c977d59b024e9f8e2dc06eee3ef3716741d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nomic_bert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90881a70041ec98ee5beac27ca4878ba286c9f381bb152248032491f37463439"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llava/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8a337342cb3fe34d4afc84c608c0c3ba274b1d8b0c75e9e44ec76453b98928"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f662d664b14f5f66972d8537ea76c39cc3e29699e4fbef49d22811369117b98c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/granite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eb9e4c52ea3470b1439ed6ce80596a7403badb9d624552d79b49ee85b9bfba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip_text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5490b788fd152af47f8884ba4820254ea6c517240bbc26ec5a31d248d6090fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/sam.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00feaba9c86141ac6f35990e4cc68368d6ed92e2eb2ba732e95d811f648801f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_blip_text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8badb95c55cbd5a023b95436d217330ab33175b4407ab6326048461766c0e685"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/blocks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84a6482d0e2d6476116c07e0e08aa01e8ddfe6180f578868a310adac9db1b21"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/image_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d626271ce826f0a19acd88f89f34ccc00670893186c8b4750a62d4bad4ecd51"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18e3873d8d613899ad52d52a831c8eaa3433ffcd13d8e22c418a7c821060518"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mixformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"556dfd1a2f887e4930981916cee71131dcecf98f747c7d728c968edfdc7527a8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/phi3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad4f44362ce8a9e8c8246f2b13816947e00f230c12cb42b3aabcfa27f6ff15a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/distilbert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62462bb82533c31290a59bf8977a2873959df580e7a3fc704c5b56c89f975205"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_recurrent_gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da3bbbdf7c0ea5ca1a7ed6f233fb916c20d39ca1dc575369d303dbc76c54f82"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf489d63d5d03904e69d589d6484161559db04d96479c412ee3f54d560dc48f4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_lm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"423b263965ac03e5ebc534eadd8bbc7d30492f6721a6683f7873fa995d2c18e5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/fastvit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb34b9c222bee3f35c90d30f259bb864c3887eab93cffb5f662aaa8570ce8080"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/unet_2d.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffee22ef678f33d605a6e583b94af8185598d86600d9686ec76add1a109701f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/quantized_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f9db30ae4801614caaa118bf28a122ba941efef256abf82ee001fff8f72c13"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/seanet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaab3dcca5d2e08e0343db775ef5325f82ef7b4f7f504e3af7f346133689fd0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a23c946fd4efde5a611b816e46308be91bb7f6cbaa305b9125aea12ca69a7a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientvit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc20dc578a398789819ce6db6d8a3cd8ff858060e8fc03be9d654d7e6758e41d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/eva2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5688b0f8959693b16cfe2fa9a5fe93ab1703a703c5a3cc4cf3e52c2ce2c0d9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/clip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9035c26b981bb2e8a07bd6fd3590f485a281c9a656e300eff005b3f0d3e0838a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/diffnext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7480dfa0514d6a6199df64c3bcb092d7c849a55aa4b574b277fcf2e626309afd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/quantized_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a75cce9d7c41db3e39686b1245ae9c4288cd2811d17f03cb0cf3c475dc9377"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca972b2399f379046215c4743bb203bc3e1de7a3d14b538285f5eb792796999"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/jina_bert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5ac6cbd6f7c1610373bd18ddc0f061fec89b0704cae1e8e8e3643e47ec8e07"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/quantization.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24df9775102021d9b389a271e8903d6851b6ceaa2681f34da5d17dec81ca4393"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bd762d67e5f8d5d61258170b394d2a4beca968d314dad2377fea2d93dc3afc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/beit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23dfa9a2a945b903ef03d18a8af072e53e2dbe0b46b6adfdfc724774800270"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/autoencoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1790e9c63611351be8cfc3e0d32610104241c26645f296ba07f2a0ad581c91c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/bigcode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b720f63aa760b23e570870d40123c7e6b46b1c884e391ee44016defc23f7b69c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/helium.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ba8df4d07ef21e17fc2b5966fbb5f3b913589d7958c2d13a5e214809393bb7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/vision_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15aa18d79e4f741407b58460b9d998042daea60c8f11623e4328a0643a03187"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/accelerate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8db5848749465500e94dbcefe769c9de85d6bbf25ce8b6edbb6141d214d09f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v6.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"452c0458856138e730b334a37b36545f8df33915add0b06c5f04ff2aad431c5f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/vit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58795a32f7b7354e1f172a171f4e60a0cd84be21d36296749e9f6738784d0828"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mixformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"592e16918b4f01eeb8dbb8e22bdfb73c4d662fb2a537767fe73b6d9f695326fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/yi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dad38973c3d170a1919d6542f7132cdc479797101a94ae71926f86007ed07c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/phi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"811c0dde43c303473b647427c0b8efc9a343d89fb61d214a851a769d090ff1bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/vae.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaf04282b10099d03feea73e61b27553efb87d166c63cf2e4051ef020275f9d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fa12d9aae663e9b20e9aadd15fba9ddf60e5d0694c45ad656a9b4fd8787576"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/rwkv_v6.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbf6716b72c41786f55b953a0bd096be4941cb2f0097105beadc93ecc7f1956"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee5ed0f12c7366c73903b10e790cd27e237a9620e8cb0ff14ea0ecfade36f55"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe7483dffb8b90dab2c3445a12500afddb8467735193a203ba380d2cdf3520c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_phi3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a59757a16717c83a3b8fc412b50cc430e5a50bfbf3a357fa99d7f95d3ca768b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/starcoder2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c771dab1015ad639fbcda714bf5fdbaae55ef8c1be39bdb92a49af8d119afbef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/text_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad557dcc88775707c4a8b795cb72d7f87d67d9b59ae28e7a174aff1c9489b19e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/olmo2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b117ea74afb57e44917bc14934011b4dc58ff8bd8c10cb0cc983d1044b6251"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3a61efe01c14f642001dae14e6c6a37383919bcb5adcfffad501891ebe8b97"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/mkl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19148991947afa125c3cecb439d7a087384778bd57c0f2d401306aff5be229cb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c28995cceb04acc06a6c039b27876cef4da2d5b6b7f69723a12078e7d40c045"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/rnn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b45f3def0b6c6583779165f3b511db8df67e36fcfe12189ccd4ee8133c8eea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1964a6c78b6764d51a937f31dbc781e2ebdcddd5867fbfacabcc04014cbb5e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/pixtral/vision_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be464a5c470507431cd58906f84a9ec5ba90783c359c0034cbaf5f9e3af7fcbf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba51cdae13486b32437d8f87f07a16add20afb2be58ad2438415b0bae398f0c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_phi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a19da70968ae63b9b78eb2dc15a96bd132919c240c94e0b0eeac6d8bc8e745"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dac.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f26dd50d8f160a70b6527c30f9599998b96a61501c863b652c26548170b331"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_stable_lm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24af1b0e3edc64f6a7ea0ac20a6b58bc46a194e7cdc829b870165b92a21a3988"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/batch_norm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dc2c5a1a6c47244317d0c9fd81bcecad0a47dda3b5f34e11a593d7c93b3f44"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/moondream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30984cee1645d04bd262b25c81fcd7f8696d8a9fa17a2e7549ff3abddf0cedf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/whisper/src/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a0c85b84d25be8738549b8cf018be79b8f2af6de05b8bb095df475680ccc1b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mpt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"811cbc11b5b8408eea6ca54e94a7c622b0ac8817a327a275a598b09a3b42a6c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba0767992544dd6375e0e1963113f8b2d9c55ce1c7dd7651e0d57154f6dd42"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/src/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97a501d5c27a6aebe04e4c127d0efe1873d76d2b6d6950c5921efbd8c4b68c2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/audio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2a5cb3b0d470b2dcf82cf704e260562b109372aaecf2917b42b3be5bd8134b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/blip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5aadcf28838c55e0f6113894c3c70199784770cbe9746961b4712c5cae4365"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convnext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ab7257b19483563992a1d9486d1d5f70e6bac471f226e84e22d72de91be341"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/dinov2reg4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9df4465ef160a218bb9cc720ab13006c28131d71ec112e92665bcc2cd1ddd7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/efficientnet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a31cec64e14434814ae1ce81edb6532c8272c086e30a1d795886881868cb4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paddleocr_vl/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dcf77099547c25d39cba29a0545b3d3ae60e3ae8582e3c73bacea07b416a6d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobileone.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd8b881444e4965e44ef7d2a40a377f5bac36e458b1081e999ef6f07245e460"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_metavoice.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c3e99a714f6c46a5a5acf5651221bfe773bf357febdaca42f99e10d882ad1f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c398b8dd886af2c291d0ffef4f306ec5612f51984f402191992b998e32f0c4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/attention/varlen.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc97e772e52767713c52794310b01718f133c8c9b0f890bc41a69d4593efdbb5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"172502a771e347b1578657cefbb73f4567c35e5e9a9cb8188daa9b91a0b762c1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/prompt_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aa4daafa918e690d5787357d0d40ae0a011c0973ad44fae1b514fd77980b4e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/repvgg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c605e8de4de9d471c5dcbb10f8640e5467ff8c957597cc8110e2be70cbf2d2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_blip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a02734c8c61a8f644d58ec422e87db7b01eff2f709e8c46ae24bfc975d1f47"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/stub.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c9ef998c7c6e83551fd21bccb3b70e9eeff9dae687ec68f6b43fa76896e4c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/models/bert.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20aa2fb27de9fb1473ba612a05c196905a9a34cc577917084b1cdd2c846aeae1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/src/profiler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded64e658542c91486fe1eabdcba6e1e547132b10001c4b0afc155f3cd729ba6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/euler_ancestral_discrete.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47aaae9fc458c117a3b75dfbc3c940fbe18cfe84088671e0ec90f0e36c2994b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llava/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68aa5c7d942c550bf7981e78c81b211be79bc8f3433ce35eb5111a638e8f9a49"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_llama2_c.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"420188cd8dc7b61db73558e7ab28576634c0dca8e40455899d74c452ef9a10dd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/dummy_cuda_backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f0588c19dcae4c0d35e3edb40d905e61b09c414a2b1399217c9dd108604992"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/hiera.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"876db89daccd7d296ece9040f897bc029fa692d447822c6de344953767aacd8e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/vgg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"607df5cae3d57559d8916b91e7b5815306c13deec61122b97fb8152c4cbc72be"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/dtype.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7964cb3a3cf0436ea269b481a9bea2bd392a5c8b240aef7f42abf7c1b4fe327"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/cudnn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e7a04e3903b28036837e5fffabd4fe76a0feee212dd614715e2769a9cbcb3e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/ddim.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79e889832eb2338779e3a4ef175bb31bc3be9acdc87983e4627b053aef44643"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/openclip/text_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a95f7e887936a1229c0a379d203e34675687e5978d3874b595ae1a0f8c4ca9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/mask_decoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e28ad7ab9d57463888e03209a74d09e116e54ad195a485d845b58743360e6bd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/indexer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3fb6a6e37eab39f258c6599ce6131e9d8f4ba6931e1a40634e76e2cc1cd4d9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/ddpm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"722dd7347db39559e28234310b6feb6a7328c924da90140a87ede000749f5e2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"755c36e186e1ebaad294fa7b2ebf6d96d5c763aa22bf7fe45b6a6c94a3784b4c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/resnet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4194e5fbe6746086a26f1f40c274f642d0d9ae44a5a08b3c03f0d5d6ec3dfbe2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_moondream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bba5f6bc4fc850cb25b172de0e2bd6a9d05d6db69e4ca7df93e425d8b596b5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mimi/encodec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1642c2e7c48a7199ab1c8fb8405f55fadb657e21144047605c8265bab77ebacd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/nvembed_v2/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1599e9bc4d3dbf833afbf8e2a0f134fe8c3f77024a514093a6805c037af00a7f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_mpt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b71a5caad3be5aada84c9f2fa1ef3b3006c9d7c098d5e8654f58e463200b1a9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mamba.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54da48832e62800ba8a039a932c257aaaf09d0279e052d7f2dc0741a87c1e7bd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c599ee60148091a7102ec476b8c3954b9b1126ca530c9bacce9d867cb0d74c01"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/serve.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23388cda8eafaa30c19cc159d4d0718852005b7e5c7174aca3507aafbedde04b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/dummy_metal_backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0953dfb1c6a82f4810b62b8790a455d65a971f5395cf62a2a6cad9131d981840"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/paella_vq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82097bc9326025cbe4753f5155313d94b34ec78a0cb7528b834d5f1cd0e8e6e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-book/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f7365a8ebb9583bdf44d03daa3cfecddf4626140c501e7bd9f247ef7464c05"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/transformer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"550dc51b7792c0176927ebc11c28a124096d026182b825d74b1735faacd69078"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/scheduler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7eb0f4995a844de019495eff659f8362d287d3200dcc82c01c45de29a7237e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-book/src/simplified.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b15131557ffbd64e87fb583f182d3586cae588e5014ac3d5ed68ec22441516"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/llama2_c_weights.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66c84c78b936c7264f4c90e1984db0b37b3b1524034173defe4e41481c1870f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/chinese_clip/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4699581af00927d61d3542a82d251d3365d17a0697d6df305436beb07ecef65d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3950b79189bfc21e7370a0ae1c0cd63c5f1af5f2f4041919dbe3d9cf8b6a12a9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/vision_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3929b31caccf43a0e848cf546a1e13534c0ed12f3768f8b22d1c64dc719c4cfe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/common.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9e901cca3428c18738af501a239233e7da0cbbc3d9e68befc4c1090ca8b87f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/streaming.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d28382d33c757bb62607ccc87e4424c9dc5fe75c3ecf7a3e5f8d9f3fba3c30"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/models/llama.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de592796ab2b014bdd049dfff75b9dfb9593d443cad3f3ec76e5db34801157f2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/whisper/src/audio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00529e224aa7ae8a2eec553736bc43b4d1fa37b6c0741bf2faceacddaf15109"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/paligemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1ef9793ba7969a6e099ce7391e55b049bf3346c6ac6e42390d054b58cce53c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/optim.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71480be521d0779a9d503c10827ab01434ab5c1d01eadaafc941ac5129d095bf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/with_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cd0c5aba7184a31b0429d52b2fe2d6e330d2efac9a81c7c9358a402f67ca1e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/batcher.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"348a9ca93492b32b7fa9aa2a48a1266cd9a22628c46f3ff4f4b80d636a8bfc06"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf91e766ed0daa000907cf2845c93714baec75e6edc274922ab0aac4f75d1a53"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/preprocess.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1904e94bb658fa57f3edb55b2023cf8a0fb4c65b6389e6f3cd06a50a38bb5979"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3fa5ed9a82d05e6c51640530b7cebd0847af82b0967309cf7d2be8a76ecf40"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/mnist.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cdbdc6498afc30bcf3cef8da8d4b3c14275589c44074981b3b3f718c75bc93"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/clip/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f7f492d100a4ee49e19e296d4fc2b32c1134d50906c6774924e1e23e21e83b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/vision/cifar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8465c2371b863b34ea822463202231a4f8385ef68aaffac03de4e9cdd6947c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/encoding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"557a057eeeed6d6e5c00ecddab400ea5a036e236e3132c643ca293d47a9a7977"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/convert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59027a4c6f48c69b0e5b12e0b0e8a141aca88251a749e25b3230fee2ffd258a5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/variable.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffea5f9898d0ef74a608a6608a38916c5a4dc22ba37a087452dbbb7060a603f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/resnet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8a3aeac0d14dd6e588b4fadfccf3d571d5dae260e3b7ff79db90dbd2710d48"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e1757fe5dcc1711c2590565c398aa4cc088e8a6176f0b7383a8b492a72438b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/e5.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1b9137f7906e51ef2d94eb6a49be6e0364080af9251cd79e0cc7ba644749e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/var_map.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3f24a117956a32ae0b57ddc355ba70e67448151f3c09d0721b89713ff029fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/nn/linear.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c39b7ceeff9814f70b157664375fd3de5b1b3204f49606b9444f3efbfebd1d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/object_detection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a197b71192eadf4d7885803efa9fcbca3f2e513e8815358c7c3a63081af9b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/nlp/tinystories.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50248d5fe8905d11048981c30dbc0283be4d9a354fdf840db8ac680290b12ecb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/segment_anything/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f62d30a92086ebefaa1fd99033875041ef10fac20482dece748873d2d33703"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/quantized_nn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c17d606eb9ff48021546fe1949f83819783d3809455eb070f6ceedbe8de61da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/attention_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3b5b47848c3c8f7c9b412c1412775794f6817a359b0f4307a368d787a93070"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/flux/sampling.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff82afe06c9ce6956b6f8de501c4bf4e08ba598cce316bf7795482f19693179f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/loss.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cf2284a72792a2d13e66cc30bc2b04c16541c109fbfa675efefe41604346f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/z_image/sampling.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8a77863ddffe1787ba501d5216bebd54ea693c71612fafa4948cab25d24194"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/linear.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4dd7957de7d35e54f4c6574f65db10e2d56998cbf7028618370ac725bef2fa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/activation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22072858a8e77f7e4cddd1d430ccf008a6c189d87b937b24805a1dd63b4e56e2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/prior.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"721cd50ee6f33e84ded387362b4e8a5bae3709ca1aebfe81608fdf31b8c80e67"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-datasets/src/hub.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9ea50531832ce057ee48ca2d19d26b66832993ba272f7cbc01a8e56d8cd40c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mmdit/projections.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"266e866f8eb9cb058e08542ed49c7c0fbca1baf6b92dcff7d9057da6966f99f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/quantized_var_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0686330813aedfd3c1ac803fbf0f698aa315ac825921ede9d757bce45f8db3bc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/scalar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9836bc711f0a9800fee0ffae1b1ed7a9357d48464d7d11c402cbfae2d5df07"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/mobileclip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce6023b4760d1e16e8d6c88887d911efa353755bdd751862f462a5228eb620c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/src/shape.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e506f82fd070740778d56a1d4466314670c5e550139e6128462897f7600ef80c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/pixtral/llava.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c91aedb1433a4beb0d3b48b0e5f1791bbecdf90b82fbabcbb4059a3f86aa5b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/convmixer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbf6a0906a86c0f38310bb26c6572afbc9d8de51a95d0f152b0abd9b7368c02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/quant-llama.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4dbd0ddc3fea0b789805565f83c50e29b41d45329210e5d7d6fb7ef6599619"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/wuerstchen/ddpm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de443d4a7631205dd6a08bbe53703873bc66b21039a6587a14b3951b60a6b78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/group_norm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707e9dd693e4fc6704151cc1a7cee33a3f57f182e6d3f2d31bb0a5e0c1143a99"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-examples/src/token_output_stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"761df863d130c045fdfa8078495ff3c135ca12af999c0d6cf099fe31f25913c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/src/token_output_stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8396a7b39b115552113d0d27195407119d6833054cc98f45801df270e081e875"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/strided_index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10e28209999bf742f7c491895dd39c17ea0bd5fea6bbaa764b1349df0bd9a80"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/whisper/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"234761bbd71379fadf353c348f1779b207c3d57a3fa30682c73b26818c30f9f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/_additional_typing/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077d5d59b1ce0996f0e319ddc86682a18205ebc75755099446753c49e5551381"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/smol/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"228f39c5e2bd44502f1b26f15bbe100db6b8d6e37d46466ade52c67c3cc31a97"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-nn/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb67f49ec4b8f4e8c25db99432fccd25c34ff8b2a3449ad3f283fd1be299a66"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/stable_diffusion/schedulers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28ed367e9768e9ccd1faf49fda072161b5ca3ddf05b3315b4d2f9dc72cb0fa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/persimmon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e93134588ee28c5312782ec02a8929e0a1315376338fa73ec1e861077a8eaa9"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: mod.rs \u2194 tests.rs: \u0060candle-core/src/metal_backend/mod.rs\u0060 (context candle-core) and \u0060candle-metal-kernels/src/tests.rs\u0060 (context candle-metal-kernels) sit in DIFFERENT parts of the tree yet change together 67% of the time (34 of the 51 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 34 shared commits counted here, the most recent 3 are \u00604b46187c\u0060 [Metal] Improve ternary further (#3242); \u0060e33d776d\u0060 [Metal] cast improvements (#3241); \u006073fd9c31\u0060 [Metal] further improve unary and binary (#3239) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/metal_backend/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e5289835338ee78f32cb5358dcb482b097f1a17834852ffd49cd50d934d3a7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: backend.rs \u2194 backprop.rs: \u0060candle-core/src/backend.rs\u0060 and \u0060candle-core/src/backprop.rs\u0060 change together 55% of the time (16 of the 29 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 16 shared commits counted here, the most recent 3 are \u00605498dff9\u0060 Add bilinear interpolation support (upsample_bilinear2d) (#3237); \u006038276855\u0060 Add the scatter op. (#2921); \u0060be4555c5\u0060 Add the conv-transpose1d op. (#1251) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4d73844cb805cedd2e32b325512764b33df1a9765dd7c480b8251120081d27"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd1ce4b725d41dbba8de2b096b75707b5dcf83b2a39825186b49ea3031402e5"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f561378f6e27e30c931146ea28d3dc971f4c5ab13b7a39feeb8cdfc5beaa9028"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"316d5ea2833d8b273459ee0999284c79fa13657fba0c6ccf611e6288c8ebdb97"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"363b7fd5f6a6d3318f23151419b5686e0d6aab329802a7899cdcc49d403731ef"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8352a1789f122e4736784f026c1077e546594f2dfcb4cf194d3d5dbc38a971"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"34227613f56b5272886df361324accb5299a4a0f3afa8f2fb59f8b51ed789198"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"226fbce32b0f448102ea600142ebb4fd92b8eadb05d8766fe3837e4e17460e3e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cacb08e0e652df8f09a891b84f0ec924bf06c09cb3d4be54079d1337fb0c6c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6dbffd3416a0a920c69d867b77f916d579b5a9536922045f1865cd1b05d0aa5"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c285ca3e0d584958eea364d00debfb35d21157cf4828f29ce592c94cf1b48cc0"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab04c269d4b4da515dfe0b2696d66e76b0bacc2e39eae2a1e85e69e7a55708dd"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"3000e7b0ac1ae47eec9f486a06d0d25549121ce8f595feb3ec874b233800403a"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3163334ae49504e2d21638947a67aab4e1a4715fb16c84b262741ab984dc1b33"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb69a184dd5e07c8538991f351e837e9dd049fa50263e08d2d56b1a8af779e9a"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"19745542e3a0188d9dec82a7bad91c87bf8fb3b0aa08644be5c80ab497529438"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1acf1560ba9a1fec92af439360088a641edda57b90f48497c1c795ea470fad9"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d00bf2b858dbe3530c96684646a1ab745bfa149f8c7d2b69724d1f4b8845d"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62bb0b041947de5c18d0bddd4fb9b4c84a85dafdff10edba045623fbecb25d0"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b13468e33805aaa7432496d446104618be86b12368e50fd580f18b5dfe94b6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02b4f0e0631a523096b9193dc4debda89352f670e2bd51d73b878f4f6b989cb"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"30918a4677578526582fa9d5c8f160c966617511a61554af2ca13f9f0b8397cd"}},{"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":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5630ac86f0eb1b44171c6afce90964fca1e758ce2bc1bc3f96e0c176daea0e98"}},{"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":"candle-wasm-examples/llama2-c/lib-example.html"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7549929aa7a6adcbf7360bf7c43c4a73b9a5399780335ac4bf99d61adff051"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/lib-example.html"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c714065b7b6d02aa67c866e10e8123776f178c5c3f8631be626b649cc7dcba"}},{"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":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ebb245aeddcd424e1c61cfd26c5d7aa7f4ef4463922d43a0a46ceb2a728c1d"}},{"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":"candle-wasm-examples/phi/index.html"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecee810f5f3ac9590faa940828a9f83b5601b24a7143315f5f4db08f01e8097b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/phi/index.html"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d74eca64274e541137fe0bbc3b83289b72a9a847a0577ce380bbf062b4163e"}},{"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":"candle-wasm-examples/quant-qwen3/index.html"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b16c783acc0ebfc517ec3131a00f166f6563e84f9ec3f3de9fbd008bf6cce0"}},{"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":"candle-wasm-examples/t5/index.html"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16a1c5f330b2e5cd02bedc17fb81674b8f6a56b5fab52eb6ab45dabb58e8de6"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5371764d321d09a039eca0a410a8a29ebc966a9cefbf10574b01521be635b3a8"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"166e730ead4bd5f4fcdcb58def6710a7942ec3d2718e4481074290ca4feb6830"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/lib-example.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd005eb62893f35f43b9c48e3f9b0231441b94cd7a5ca228b5790c6ef08b980"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52f941be20a2a51729ebc547624e6bb35a9d75300097b0e454c5b69cd6ad3e6"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/phi/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"120fb7eebf8c08c71aba590453c570088068148c1458d51f9b6a72c217106783"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea4bb9e4f560491e0acb858a60a9e864da9c1168fad462487bbde1e2a3cd38f"}},{"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. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e017669e65f741cecaaaa1f4a9546f0bd125b113213a68f7cbf45065cfa23c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/index.html"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b10210521ae14530860d105b291b2b9493da4d8d03a0f0d1cf64f55b5ff5243"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a03c96752b1498981abb88863dbb45667102b7bc658fb27f3eac21e1472bf5"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2486349cbf718c38d0ace9c4d39be5445e9b18ab57877b2c1e754bf5a5ad74f"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/whisper/lib-example.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bfdd0431ff207442a069683004f0741e904e196d20870cf83a0d11a7dfbb14"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b4a6aa2595a97062f5f251193d3b1f43ea2ef14aa2fd977cd2c34c804e564c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d34570084fa8e9df3dfa7ac1d00ec3da6fb854f2858a473fa636d4a1ef8a34"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aecfe2ba8b3640c608653e1acf5364e25c5fae8b68039ba895022f530a5d28e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ccanvas\u003E: A script attaches a click listener to this \u003Ccanvas\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b09ab3e88d1483c6a9fb023cd87a3fd30259e64a4ab06a19c2575752b323578"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/segment-anything/lib-example.html"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3f8f8480acbf929056bb1c27caec5bc5afe4b156e34900b4486704063d2a30"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/yolo/lib-example.html"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf2baa9fa89ba8e2c52a82a791977bb4ce523965a52acf7741ef7306a9207dd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3823aafd39bff1a56849fac6da7a93423e925cd26c62d0ffe3c1c21834e2cf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff4896d61b4c44870fb82bdf069e981e014d2975cbfd4d76009cdb6967cc725"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a2c3567f810ae86734ce740ba1350c1978f8b61284d4cfde88bd5b4693bc59"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee3397677bdbb753f13dbd40b3b521a49be2dfd06dedaae155a507156c41c28"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/blip/index.html"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e06a6498d63d0e57de3a8c51529129f678f0f1793352684471c1ee152fac83"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/lib-example.html"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"20686a4836975797696d01e3d540f53244a8e2c5f98ef0ab6a1ded549225fad1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/lib-example.html"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a15beaa58a3e261551e07347af01d41f65ea5844b7ccbf2f49ee8c3482eb5cf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"218e976a9c6536e55f7de0033b03fa568204f420275c844d536639f224117cb8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/index.html"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22c300f727c49d38788ddb72d54dc8154e76ff5104f11b6d6e54264c9a8c535"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/phi/index.html"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07dc29461058bb87df54a8337705b9007a6d80c032700f4c829d5fa6b404887"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/phi/index.html"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34228332425384042b38ccc199d664f5d26df840147de40d324482a8e584646"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060.thinking-toggle\u0060 sets color: white on background-color: #667eea \u2014 3.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/quant-qwen3/index.html"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"15baf26b6a88f6491f9abca6cc39660fabd93e467b2ae4e9a18155030845b3c5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/index.html"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6853fc9eaf5d2df963054684273eac493bac8689b54fae78bb40568de2ea6a8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/index.html"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"87beceb0cc62c686cde8c09cdf9b40aa7fef0e274b9b9d2eff7bd5bec1741be8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (4.4:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/whisper/lib-example.html"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b367ee43ac808c40b96088f85c77e922d028e7b73a5c5d939c4f9d2ae8d9388"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 6/14 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060candle-wasm-examples/bert\u0060, \u0060candle-wasm-examples/blip\u0060, \u0060candle-wasm-examples/moondream\u0060, \u0060candle-wasm-examples/phi\u0060 and 3 more."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch github-actions/pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060github-actions\u0060, \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9543c45344490268a908fcdf5b07b99fa178c0fb540259785ff4e506b7cdddc9"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 14 plain JS \u2014 the untyped files are candle-wasm-examples/bert/bertWorker.js, candle-wasm-examples/bert/utils.js, candle-wasm-examples/blip/blipWorker.js, candle-wasm-examples/llama2-c/llama2cWorker.js, candle-wasm-examples/moondream/code.js, candle-wasm-examples/moondream/moondreamWorker.js (\u002B8 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 9 sibling directories (12 clone groups): 12 duplicated blocks under candle-wasm-examples/ have copies in at least two of the sibling directories bert, blip, llama2-c, moondream, phi, segment-anything (\u002B3 more sibling(s) not listed) \u2014 11 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 12 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 12 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 12 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/moondreamWorker.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e09adab318ae834402d210e0ae638327142f31be1073a4547000db7ca86856"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (114 matched lines \u00D7 2 locations): candle-wasm-examples/moondream/moondreamWorker.js:6 \u00B7 candle-wasm-examples/phi/phiWorker.js:4 \u2014 the two spans are one implementation copied and then locally edited \u2014 652 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/moondreamWorker.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bc5bac710368b9388cbcba271ae8da0df3668711b0f4e3a21b63aa766417fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2 locations): candle-wasm-examples/t5/T5ModelConditionalGeneration.js:2 \u00B7 candle-wasm-examples/t5/T5ModelEncoderWorker.js:2 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/t5/T5ModelConditionalGeneration.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e64c7c3a70f44be306e51906a608e1f980209c1883a4dcdacc47329e7aae28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): candle-wasm-examples/bert/bertWorker.js:20 \u00B7 candle-wasm-examples/t5/T5ModelEncoderWorker.js:27 \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":"candle-wasm-examples/bert/bertWorker.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39c5fb7ddf8ae1b07703b67f13572c825eff81f4a32583bed220f5fdd504d14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): candle-wasm-examples/moondream/moondreamWorker.js:59 \u00B7 candle-wasm-examples/segment-anything/samWorker.js:39 \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":"candle-wasm-examples/moondream/moondreamWorker.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d970b183e7ef9d85edb46169c754e8a9ce475427d4292417d4ca42cf984d8b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): candle-wasm-examples/llama2-c/llama2cWorker.js:30 \u00B7 candle-wasm-examples/phi/phiWorker.js:54 \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":"candle-wasm-examples/llama2-c/llama2cWorker.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ef2fd91f90f7dbf9b18b0b104cdfb4adf9648ed3bd4e057400ae7387823651"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): candle-wasm-examples/llama2-c/llama2cWorker.js:88 \u00B7 candle-wasm-examples/moondream/moondreamWorker.js:176 \u00B7 candle-wasm-examples/phi/phiWorker.js:130 \u2014 the 3 copies are spread across 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/llama2-c/llama2cWorker.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb60e9c8f6bd1cacab1eaa6a151093575cc8f124b297d5b7af33e67aac8c168"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): candle-wasm-examples/blip/blipWorker.js:26 \u00B7 candle-wasm-examples/t5/T5ModelConditionalGeneration.js:29 \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":"candle-wasm-examples/blip/blipWorker.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bec6b4404e91d94d81b61f74fa1c20432239131ee526c969273ee88e9bf5485"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): candle-wasm-examples/bert/utils.js:12 \u00B7 candle-wasm-examples/t5/utils.js:14 \u00B7 candle-wasm-examples/t5/utils.js:48 \u2014 the 3 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":"candle-wasm-examples/bert/utils.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d775cfe7173045e305ccded12229b71d5c9d0a8d1525bbcd51733a05a3b3f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): candle-wasm-examples/llama2-c/llama2cWorker.js:71 \u00B7 candle-wasm-examples/phi/phiWorker.js:105 \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":"candle-wasm-examples/llama2-c/llama2cWorker.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9b300f61e45b94a85ee9f26749b553b102497b1702ab8551888a6d8cbde1ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8 locations): candle-wasm-examples/bert/bertWorker.js:5 \u00B7 candle-wasm-examples/blip/blipWorker.js:5 \u00B7 candle-wasm-examples/llama2-c/llama2cWorker.js:4 \u00B7 candle-wasm-examples/segment-anything/samWorker.js:7 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 7 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. There is one copy in each of 8 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/bertWorker.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5890fc2a80bedbeb26095ef9a5132c7306853803586435a4114c85aa67b8ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): candle-wasm-examples/t5/utils.js:10 \u00B7 candle-wasm-examples/t5/utils.js:44 \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":"candle-wasm-examples/t5/utils.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ef2a562013a71b06fd82301c4c79334f1f7fb16f0be3484b65e62650a8525a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): candle-wasm-examples/llama2-c/llama2cWorker.js:3 \u00B7 candle-wasm-examples/yolo/yoloWorker.js:4 \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":"candle-wasm-examples/llama2-c/llama2cWorker.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03a280b828ab89668db90b149610b190cb22cf06f447c51f30e079eda1eb5ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): candle-wasm-examples/moondream/moondreamWorker.js:128 \u00B7 candle-wasm-examples/segment-anything/samWorker.js:127 \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":"candle-wasm-examples/moondream/moondreamWorker.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14822c61611c5960cf42659fffc35844640c86e819654c506065e6cd824d512"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cdn.tailwindcss.com\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository. 10 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/bert/lib-example.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ca31594f25a6758af712fa084942dc45e6c5930533974c1b68d90053a43380"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.imageArrayHash[this.currentModelID] === imageArrayHash \u0026\u0026 this.instance[this.currentModelID]\u0060 appears character-identically in 2 files \u2014 candle-wasm-examples/moondream/moondreamWorker.js, candle-wasm-examples/segment-anything/samWorker.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/moondream/moondreamWorker.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0417d4022ec96f50a1aafbe173d882196d816dab0f2ddc5df98b860871401b66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(lhs_m1 == 1 || k == 1) \u0026\u0026 (lhs_m2 == k || m == 1)\u0060 appears character-identically in 3 files \u2014 candle-core/src/cpu_backend/mod.rs, candle-core/src/cuda_backend/mod.rs, candle-metal-kernels/src/kernels/mlx_gemm.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"62747bdafbd4e6b31a9e205553d5ea952cfaa71430ff863e8b5f60e4caa90a16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(lhs_m1 == m || k == 1) \u0026\u0026 (lhs_m2 == 1 || m == 1)\u0060 appears character-identically in 2 files \u2014 candle-core/src/cuda_backend/mod.rs, candle-metal-kernels/src/kernels/mlx_gemm.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06366b78852b2fdd4f76283e600a45971fe0c78ea9351f9b706888f56d41481"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(rhs_m1 == 1 || n == 1) \u0026\u0026 (rhs_m2 == n || k == 1)\u0060 appears character-identically in 3 files \u2014 candle-core/src/cpu_backend/mod.rs, candle-core/src/cuda_backend/mod.rs, candle-metal-kernels/src/kernels/mlx_gemm.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"7196558745d7d185f2f1fe4c7e5d5f54728aec26a2e068f602e174472535afaa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(rhs_m1 == k || n == 1) \u0026\u0026 (rhs_m2 == 1 || k == 1)\u0060 appears character-identically in 2 files \u2014 candle-core/src/cuda_backend/mod.rs, candle-metal-kernels/src/kernels/mlx_gemm.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"00424ab8d6ee35fcb90461832b534eb0e538fcdc1a319701b611f1ddd2c78a90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.num_experts \u003E 0 \u0026\u0026 (layer_idx \u002B 1).is_multiple_of(cfg.decoder_sparse_step)\u0060 appears character-identically in 2 files \u2014 candle-transformers/src/models/qwen2_moe.rs, candle-transformers/src/models/qwen3_moe.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/qwen2_moe.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a43fe021aebbd403d0e01e93dbc346c2799a8346d06fb7ea8abccc685249d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060check_empty \u0026\u0026 layout.shape().elem_count() == 0\u0060 appears character-identically in 2 files \u2014 candle-core/src/cuda_backend/mod.rs, candle-core/src/metal_backend/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cuda_backend/mod.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5b2efb0548e4f2174d6afdac4591939bdb2ff173c0d07012b20669129855ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060height_in == height_out \u0026\u0026 width_in == width_out\u0060 appears character-identically in 2 files \u2014 candle-core/src/cpu_backend/mod.rs, candle-core/src/tensor.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99dd005db8cbb061f234770c08e4f454c9b602e1e775fabf8e3cd59f7f4359b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kernel_l.is_contiguous() \u0026\u0026 params.dilation == 1 \u0026\u0026 params.padding == 0 \u0026\u0026 params.output_padding == 0\u0060 appears character-identically in 2 files \u2014 candle-core/src/cpu_backend/mod.rs, candle-core/src/cuda_backend/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/cpu_backend/mod.rs"},"region":{"startLine":2884}}}],"partialFingerprints":{"codehealthFindingId/v1":"f244ccd8aac3ed7f36668a30b808eaf48d4a08d4e3c3ce26ac381cf9894201b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060q_rank != 4 || k_rank != 4 || v_rank != 4\u0060 appears character-identically in 2 files \u2014 candle-flash-attn-v3/src/lib.rs, candle-flash-attn/src/lib.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"636997a46ee194d054784eaa31a267fdec92a6391c0ea67fbbe68ee1df141c8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.layers_are_rescaled \u0026\u0026 (block_idx \u002B 1) % self.rescale_every == 0\u0060 appears character-identically in 4 files \u2014 candle-transformers/src/models/quantized_rwkv_v5.rs, candle-transformers/src/models/quantized_rwkv_v6.rs, candle-transformers/src/models/rwkv_v5.rs, candle-transformers/src/models/rwkv_v6.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_rwkv_v5.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b645879bc6bbdc48dd29f947af3f25fdef4df114685660c477e5234242523c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_cache \u0026\u0026 key_value_states.is_none()\u0060 appears character-identically in 2 files \u2014 candle-transformers/src/models/quantized_t5.rs, candle-transformers/src/models/t5.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-transformers/src/models/quantized_t5.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"58544df6d3a659cd4bdc6dd55575570a8bbe973bec29143cee7259eb3f683eb1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window_size_left \u003C 0 \u0026\u0026 window_size_right == 0\u0060 appears character-identically in 2 files \u2014 candle-flash-attn-v3/src/lib.rs, candle-flash-attn/src/lib.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"068032a2334fcacec4a0464176b61c069548b9f177449a3f0b933ff99cafa192"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window_size_left \u003C 0 \u0026\u0026 window_size_right \u003E= 0\u0060 appears character-identically in 2 files \u2014 candle-flash-attn-v3/src/lib.rs, candle-flash-attn/src/lib.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89a99f560ae96856107116acae521a99ed8dd8e8240a725a2ba905bcf5c8563"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window_size_left \u003E= 0 \u0026\u0026 window_size_right \u003C 0\u0060 appears character-identically in 2 files \u2014 candle-flash-attn-v3/src/lib.rs, candle-flash-attn/src/lib.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-flash-attn-v3/src/lib.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"513aeaf16be787f388c06bd274857d677194fe09e701a7cb86d4e10f7ad7f28c"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060len\u0060 is read from the bytes being parsed at line 483 (\u0060read_u32\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 484 \u2014 and nowhere in its scope is \u0060len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/pickle.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4872c9a4f2692161892d350106df62bc7ad840f1633165319af8ff51f3dc14c9"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060len\u0060 is read from the bytes being parsed at line 110 (\u0060read_u32\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 111 \u2014 and nowhere in its scope is \u0060len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d184fa78d8ae062eec497d962dd9839735e9819702f98b2e41ad86bf833f8f"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060n_dims\u0060 is read from the bytes being parsed at line 196 (\u0060read_u32\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 200 \u2014 and nowhere in its scope is \u0060n_dims\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060n_dims\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4706f42aa8d35d7f971aa396c5c36791e098332894af63d8b34cff0adf70b3c9"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060name_len\u0060 is read from the bytes being parsed at line 197 (\u0060read_u32\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 205 \u2014 and nowhere in its scope is \u0060name_len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060name_len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/ggml_file.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b4b4b48d8422948ceb718b27f301db5f02800ae8df2427565a103b1a6c4ca1"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060len\u0060 is read from the bytes being parsed at line 42 (\u0060read_i32\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 51 \u2014 and nowhere in its scope is \u0060len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-core/src/quantized/imatrix_file.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c109025c4b63b589311ef0f66604e34517a421ffef92c64b505622545b35ddf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 18 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/__init__.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c873df9afd3f59e729b04fe3a050d75766c8819596ae1d4eba43168e4f75082d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 24 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/__init__.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d549efe51b1688a8ae9902d09f4069ce753e217a6d48e066e08530220aeed8ee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 40 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-pyo3/py_src/candle/__init__.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee0b7347367d6c933108b2aa3ac697658129c1b430cf566044d238fcee2f982"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060to_json\u0060 turns every \u0060Err\u0060 into \u0060\u0022[]\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"candle-wasm-examples/chat-template/src/lib.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a8e758486f908c14840c34e76ab2e009c89655b79c77dd79f364b755947453"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":10,"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."]}]}