{"$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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"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":"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":"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Operation::eq (cyclomatic 241): Operation::eq has cyclomatic complexity 241 (threshold 15). Of this number, 240 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"rust/lance-table/src/transaction/conflicts.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"676ddae2349cd6470b6d2ccbba304fcbf1d7dbc120ac8a9a7149f087713d77e6"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion_exec::expr::safe_coerce_scalar (cyclomatic 211): lance_datafusion_exec::expr::safe_coerce_scalar has cyclomatic complexity 211 (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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2528333b4ca4ca69ed56de17738d37c9f257bb5fa5861ec16f779692a373dd7b"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction::build_manifest_prepared (cyclomatic 200): Transaction::build_manifest_prepared has cyclomatic complexity 200 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c40343c30faddd7e313b898e0fc8779bfd783eca1049ab987094c068918a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderableScalarValue::cmp (cyclomatic 188): OrderableScalarValue::cmp has cyclomatic complexity 188 (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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87ec5480490351fe47c5a421452980969e53895e8ba8211f5b7de679ed74037"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::and_bulk_search (cyclomatic 139): Wand::and_bulk_search has cyclomatic complexity 139 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 65 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b11ba662b3942f3849f236ea946be03d633866f6a36a703236922627a509e"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::maxscore_search (cyclomatic 128): Wand::maxscore_search has cyclomatic complexity 128 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d38268e3910fd3627ed39db97140c0d45fcf452c819c5ac1d82182f0d06343d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner (cyclomatic 127): lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner has cyclomatic complexity 127 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5b6c212ae57a4e8dded3837ec69785dfb770ef5769094490533492f0447f40"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceDataset._create_index_impl (cyclomatic 79): LanceDataset._create_index_impl has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aeb2e27ec2c3f503ebbbb7c71dccd2b7c490d28790dfb8746cea5dda453babb"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::scanner (cyclomatic 72): Dataset::scanner has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"8854b6689408d2600249fd577a16ef85a8aa5857150d77a7260f1f0bca1f99fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ZoneMapIndex::evaluate_zone_against_query (cyclomatic 70): ZoneMapIndex::evaluate_zone_against_query has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e61c200817f1f035f248c8d31946f7689497ce5a5d59bb069d14361ce7456f2"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_create_index_txn (cyclomatic 62): TransactionRebase::check_create_index_txn has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check/create_index.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aad92482914290a2fc92cb8757c84ad1088e1626b2b20e16db3de8a2055493"}},{"ruleId":"D1","level":"warning","message":{"text":"Planner::parse_sql_expr (cyclomatic 56): Planner::parse_sql_expr has cyclomatic complexity 56 (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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2362518ab809715fb70de73d65d5445c6b70a703e68c8afc190e2fbd8f59089"}},{"ruleId":"D1","level":"warning","message":{"text":"BloomFilterIndex::evaluate_block_against_query (cyclomatic 56): BloomFilterIndex::evaluate_block_against_query has cyclomatic complexity 56 (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":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"47944f71e5259001582d0fc1f229f13820d5e0d3da947871e3a7c40bc7f8314b"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::create_index (cyclomatic 51): Dataset::create_index has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3d0d8cfc33a8636103182f8da8c92e2f3d9e1f06f3ac79f2f8209a9f2b8cb6"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_arrow_scalar::serde::format_string_to_data_type (cyclomatic 49): lance_arrow_scalar::serde::format_string_to_data_type has cyclomatic complexity 49 (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":"rust/arrow-scalar/src/serde.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc01ccd40247b81a8a55f782a597e5c55547ad65b65026d12cdfc21243a6e209"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateIndexBuilder::execute_uncommitted_impl (cyclomatic 49): CreateIndexBuilder::execute_uncommitted_impl has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b979844ac0362fe2d7f33552d44ee94d6ae4566181dad41d4c4435614e4ff6b8"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTask::cleanup_file_if_not_referenced (cyclomatic 48): CleanupTask::cleanup_file_if_not_referenced has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef4da7aa1e4be9e7981a60684883bb640c61ebb0448721cfac2d41af35a7c13"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::append::merge_indices_with_unindexed_frags (cyclomatic 46): lance::index::append::merge_indices_with_unindexed_frags has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23f6b75fb2cbc9522a23d9710015c75667338cec197765a68c33f261a97ea86"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::complete_maxscore_single_essential (cyclomatic 45): Wand::complete_maxscore_single_essential has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e434bb32b61c1270f5905a90a2e45a49160cef51ceff6d8d540ce514074f4cc"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_namespace::schema::arrow_type_to_json (cyclomatic 45): lance_namespace::schema::arrow_type_to_json has cyclomatic complexity 45 (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":"rust/lance-namespace/src/schema.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dec146e5deb7424d49d3c238ee91556b9170816f30d6f9cdb23a0a4eab6bb1"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::parse_json_number (cyclomatic 44): Parser::parse_json_number has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/parser.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9541e2c84693bbef2e4527b447518cbaad8be6c7951bf7e1939e4e2a534e6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::vector_search (cyclomatic 43): Scanner::vector_search has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ed9283f140db1739047557efd8cbb275ea9db6618adbf7fa2cd985df8ab677"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_update_txn (cyclomatic 42): TransactionRebase::check_update_txn has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdbacaf4fa575c2a12ce18c107d7505d76795a91bcde2f8500e309233f11260"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::frag_reuse::build_frag_reuse_rewrite_entry (cyclomatic 42): lance::index::frag_reuse::build_frag_reuse_rewrite_entry has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0467c8eb2202378d09f059242f0e567092f199fe3d82f65e389c367035e3b01"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::ivf::v2::partition_search::search_partitions (cyclomatic 42): lance::index::vector::ivf::v2::partition_search::search_partitions has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e65ad012749cb002e6c1525b14cfdc818d08655d6a5e9f6a1617371c2e7a1d4"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_arrow_stats::find_min_max_indices (cyclomatic 41): lance_arrow_stats::find_min_max_indices has cyclomatic complexity 41 (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":"rust/arrow-stats/src/lib.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ca7e20b9c1b619c844de01bf7381c2da6bb96aca44f760efc2fdeea33477f7"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_rewrite_txn (cyclomatic 41): TransactionRebase::check_rewrite_txn has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check/rewrite.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"220d05f867445b09a43df9582eddf804bcaec88aac8cf698652d77ffc7602f19"}},{"ruleId":"D1","level":"warning","message":{"text":"pylance::dataset::prepare_vector_index_params (cyclomatic 39): pylance::dataset::prepare_vector_index_params has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb3fb13f76c4fdbc06bf61dc04d5b342d1c1ef537e9bf01128d8be29cc30f47"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultCompactionPlanner::plan_groups_with_budget (cyclomatic 39): DefaultCompactionPlanner::plan_groups_with_budget has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"739bbe4eca2292d48435cb1fadc44cb4a9851e01b94d46e348680da943ec9f43"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalType::try_from (cyclomatic 39): LogicalType::try_from has cyclomatic complexity 39 (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":"rust/lance-core/src/datatypes.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d12f619b33df6f696e40ed561723891100540b8d77192c0da70c6cfc289d05e"}},{"ruleId":"D1","level":"warning","message":{"text":"Number::cmp (cyclomatic 39): Number::cmp has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"646da907e9df33ab08cefe92c5ccb6b4a255057176b4edcd6f729d33c019f1c0"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::commit::commit_transaction (cyclomatic 37): lance::io::commit::commit_transaction has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"938626e8ea7a5a2a4dd214111d4d514a0cd44fb368f78a71c3d51ed1e58f0a36"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::substrait::normalize_expr (cyclomatic 37): lance_datafusion::substrait::normalize_expr has cyclomatic complexity 37 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"882adb0e33d22512d81dee471b1891e2fae608171a64a2cc08d5e9fe74cc99d3"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_data_replacement_txn (cyclomatic 36): TransactionRebase::check_data_replacement_txn has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79a1f18a20c209ca1e350c84597a9c10fa2a1c6d4708f9c94a59fe18aa15fa8"}},{"ruleId":"D1","level":"warning","message":{"text":"PQDistCalculator::accumulate_topk_with_scratch (cyclomatic 36): PQDistCalculator::accumulate_topk_with_scratch 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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9701d5fff9a2087317fbb755e14fb08ed7acb08285b4b6b965ac616e07371f"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryNamespace::describe_table_impl (cyclomatic 36): DirectoryNamespace::describe_table_impl 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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1ffce2602909f7fc71d2b435ed28278b45629a55e41b85afb50e49e5973c33"}},{"ruleId":"D1","level":"warning","message":{"text":"Branches::cleanup_branch_directories (cyclomatic 35): Branches::cleanup_branch_directories has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"903331298270b4cfbd6d228ffae4ab45fc47af339d388590e902d5068eea5585"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::append::merge_scalar_indices (cyclomatic 35): lance::index::append::merge_scalar_indices has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75d8d0c1125d0ef6e12027be49d325c6509c552df33cf713f8f9b89969388c3"}},{"ruleId":"D1","level":"warning","message":{"text":"DecodeMiniBlockTask::map_range (cyclomatic 35): DecodeMiniBlockTask::map_range has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d697773c0066f992ceddac4b23145552862b4609268fc7517c0fb377d1cb83b"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::zonemap::validate_seed (cyclomatic 35): lance_index::scalar::zonemap::validate_seed has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c39bd26e819a101dcf0919902ff017bdd54eaa229a579fc0dc63b603d1b7cdd"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction::try_from (cyclomatic 35): Transaction::try_from has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d5b6bc96b31d1abd17c1cf4ae86a07b746b6bff87322dcd693a81e208db45f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::blocking_scanner::build_scanner_with_options (cyclomatic 34): lance_jni::blocking_scanner::build_scanner_with_options has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e2199aca117e19cf18acb39ede99850904994711e5e37124370d21aa7fb2cf"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::create_plan_impl (cyclomatic 34): Scanner::create_plan_impl has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe9c6297a901787737625aaaf4fdbe11feb30c03d6f7072f8ad3bce265b1b88"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::exec::count_pushdown::try_rewrite (cyclomatic 34): lance::io::exec::count_pushdown::try_rewrite has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/count_pushdown.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ea44199610456dd29fc15d9c2fccaa7bc8c8a952de39b2fca420d40c1509f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::axis_delta::x86_64::transform_width (cyclomatic 34): lance_encoding::encodings::physical::axis_delta::x86_64::transform_width has cyclomatic complexity 34 (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":"rust/lance-encoding/src/encodings/physical/axis_delta/x86_64.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7696ab5d169c577e95515bf08039e6aa69f4f4c31c098a5a8abaf632bf600785"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::transaction::convert_to_rust_operation (cyclomatic 33): lance_jni::transaction::convert_to_rust_operation has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae3565b4d69d64b150ce8c3f19361374d4fb779a7cdfa5756d1cb6ca630701e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::commit::commit_compaction (cyclomatic 33): lance::dataset::optimize::commit::commit_compaction has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/commit.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c735deeaed9558570f269efb77d8458f717d52a924b2236912dc14b50e5501"}},{"ruleId":"D1","level":"warning","message":{"text":"pylance::dataset::write::get_write_params (cyclomatic 32): pylance::dataset::write::get_write_params has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/write.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb73031c27bac33b759a1146f612793304efd2a75a1b8dda60a26b00b61dedf"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTask::delete_unreferenced_files (cyclomatic 32): CleanupTask::delete_unreferenced_files has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dee1820559465b3c89cb2a6299f7c9a59dc2a2729c15f927e9640168c372723"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::analyze_report (cyclomatic 32): MergeInsertJob::analyze_report has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63ecd74492de4cb1dd9777f2b38da1c3e6c75251be530654b7e5631464fab96"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::execution::rewrite_files (cyclomatic 32): lance::dataset::optimize::execution::rewrite_files has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c2cb61e95cff7fe1ba8d2ace91e4ac179eb21b38400565e5126358986586c8"}},{"ruleId":"D1","level":"warning","message":{"text":"PrimitiveStructuralEncoder::encode_dense_page (cyclomatic 32): PrimitiveStructuralEncoder::encode_dense_page has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f625735a91f0354a57f7e9330b5aa5b01a31c358aa02f0fb5748b3dc135919b"}},{"ruleId":"D1","level":"warning","message":{"text":"PackedStructVariablePerValueDecompressor::decompress (cyclomatic 32): PackedStructVariablePerValueDecompressor::decompress has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"167232ec3661a1ba5da7a49bc7866f81e491b91360d795b0f2f245d62bf10750"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::graph::beam_search_acorn (cyclomatic 32): lance_index::vector::graph::beam_search_acorn has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c9dbb43dc2e59b2165e910ccffc7e3da178677eb6160dddd2662608918ddd2"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryNamespace::query_table (cyclomatic 32): DirectoryNamespace::query_table has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e0627ab5999504feb0c17772176f4b58a2b274c2179cbbd914328e3155e2ab"}},{"ruleId":"D1","level":"warning","message":{"text":"scanner._build_vector_search_query (cyclomatic 32): scanner._build_vector_search_query has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"359dca91b11997aaec24cea19f8fbc307a7f762b29e8dba3f4db7120b063c058"}},{"ruleId":"D1","level":"warning","message":{"text":"Merger::execute_batch (cyclomatic 31): Merger::execute_batch has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/merger.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce99adf319b4bcf14b3913cfb63b05d076f930ec9d07e6c4744731af96bf76c0"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::finish_create_index (cyclomatic 31): TransactionRebase::finish_create_index has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e56131abe75d89b6942c70d3d0257c0c3c2b702228d14442d5561a5303240b"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::write::do_write_fragments_impl (cyclomatic 31): lance::dataset::write::do_write_fragments_impl has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f683281ff3ce3a366b9e77b5768fda821d547a00de446bc714df8c3fe579cc"}},{"ruleId":"D1","level":"warning","message":{"text":"RawInvertedIndexParams::resolve (cyclomatic 31): RawInvertedIndexParams::resolve 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":"rust/lance-index/src/scalar/inverted/tokenizer.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3629c457c000314cb930dbac58b91f588925b3d686f606bec0fa08713ba7a73f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::system_index::frag_reuse::gate::classify (cyclomatic 31): lance_table::system_index::frag_reuse::gate::classify has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse/gate.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce41b3d42dbfcab0ce784f97b9d32c9b251679f456c66503fbe8267e2b4f95a1"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_compound_scorer (cyclomatic 30): Scanner::plan_compound_scorer has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f52d5d2825b741d57aa4fd1100383e9e607ce4471d2f1d92701e826bdf3e041"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_txn (cyclomatic 30): TransactionRebase::check_txn 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7390bcf61f50f846e2d3297d625f9b9a182a7622e6dc2c045fb6cd305d8dc35"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::search (cyclomatic 30): Wand::search has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fb447610164c91686075bc8bca9b2aa58e6d43fe7ee120cd2b83aee62b7a18"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::transaction::convert_to_java_operation_inner (cyclomatic 29): lance_jni::transaction::convert_to_java_operation_inner has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"844a2b9ccbfee0e7ee3ca242fc678bf94a3b8cb6778e69acdbe92793e333fcf6"}},{"ruleId":"D1","level":"warning","message":{"text":"fsst::fsst::build_symbol_table (cyclomatic 29): fsst::fsst::build_symbol_table has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c690cfe2d221775126969d42b190dcef051f058b2d344eb35250b8f074b707"}},{"ruleId":"D1","level":"warning","message":{"text":"VariableFullZipDecoder::unzip (cyclomatic 29): VariableFullZipDecoder::unzip has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"69372127131a0539260475d5d10eb5dceefd052a95671fb280dbe089d9b88337"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row (cyclomatic 29): lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2468e1e81479746b3bd8c48d46f32399327e6c0fd708f4d802eaa6085dd9dd4d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::sparse::planar::encode (cyclomatic 29): lance_encoding::encodings::logical::primitive::sparse::planar::encode has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47b3733c0cd56dddee56ac1a8e908d3c3f92fde9131b8b59109a9ae6d55679"}},{"ruleId":"D1","level":"warning","message":{"text":"RawJsonb::serialize (cyclomatic 29): RawJsonb::serialize has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/ser.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4dc5a57b98c441fae547333063392c2aabd6a60b884cc20dc6271235e2b8c6b"}},{"ruleId":"D1","level":"warning","message":{"text":"FileFragment::scanner (cyclomatic 28): FileFragment::scanner 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":"python/src/fragment.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62bbb54f338a594ae9f7b121591d4e556e437743a01b06edf421500a3c89057"}},{"ruleId":"D1","level":"warning","message":{"text":"LsmVectorSearchPlanner::build_knn_plan (cyclomatic 28): LsmVectorSearchPlanner::build_knn_plan 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":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3903e1df34c021d58063b147954dc1793ca9901f72fd8670d9a1b2e5e19f21"}},{"ruleId":"D1","level":"warning","message":{"text":"CommitBuilder::execute_inner (cyclomatic 28): CommitBuilder::execute_inner 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":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"43acb54b80b4527db8e4a4a3e410c64a4826fed1a9011232ea7727a1c15d62a2"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::versions::check_manifest_storage_contract (cyclomatic 28): lance::dataset::versions::check_manifest_storage_contract 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":"rust/lance/src/dataset/versions/mod.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eae89bb44b802fc0706a83196844cf36b0f7d3fe6642b0ad3c0caf5c85cb03"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::optimize::consolidate::plan_index (cyclomatic 28): lance::index::optimize::consolidate::plan_index 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":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5738d807328ae30feed6740023a26d3c1b3e448b54b7f7cd786527a84d0c0ab"}},{"ruleId":"D1","level":"warning","message":{"text":"DecodeMiniBlockTask::decode (cyclomatic 28): DecodeMiniBlockTask::decode has cyclomatic complexity 28 (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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"51258f28d45879b07f09d91b713e583e3dba3b4a422e8e9b88ffbb97505981af"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializerContext::normalize_specials_and_plan_splits (cyclomatic 28): SerializerContext::normalize_specials_and_plan_splits 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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5541508cb4653f087061b6923379a919310857db2d041f060419e80656859b3f"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexWorker::process_document (cyclomatic 28): IndexWorker::process_document 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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8b8f6cd0efd7d7118129b5628e7a33b6e6c1ebc68dc61087001519d6dffee6"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::next_and_candidate (cyclomatic 28): Wand::next_and_candidate 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":"rust/lance-index/src/scalar/inverted/wand/conjunction.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c69a0d0c094887136ed990a8c3c9b58562a577e03121c6bf7876f25ae018f6"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_io::local::remove_empty_dirs (cyclomatic 28): lance_io::local::remove_empty_dirs 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":"rust/lance-io/src/local.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"52745b4a74a77b3aa139df81e68c572aa5a687732650bd92e1c4070d2ed09453"}},{"ruleId":"D1","level":"warning","message":{"text":"RowIdSequence::mask_to_offset_ranges (cyclomatic 28): RowIdSequence::mask_to_offset_ranges 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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf691737d152b74316e8f2d7ff157db0d0330ce2cb1284565a6cebe66c61f18"}},{"ruleId":"D1","level":"warning","message":{"text":"PyLance::into_pyobject (cyclomatic 27): PyLance::into_pyobject has cyclomatic complexity 27 (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":"python/src/transaction.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b420076c2f48d185ac74f8630d32c80defccc2656dd32b4ea2660706aa5033"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetBuilder::load_impl (cyclomatic 27): DatasetBuilder::load_impl 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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"da504b1338e8c7141d24426b75fc054ff99a1fcb003fa479f0f8788c775cba47"}},{"ruleId":"D1","level":"warning","message":{"text":"FilteredReadStream::plan_scan (cyclomatic 27): FilteredReadStream::plan_scan 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"2900f75dbec46674c7c8f655f6903f10fae9c5a4f15c9ae61783c645828a973f"}},{"ruleId":"D1","level":"warning","message":{"text":"CompoundQueryExec::execute (cyclomatic 27): CompoundQueryExec::execute 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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"838890fb293e8ddbd531f4c302328b3c72947a88b7a7f624a61f3b8877021667"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::blob::external::collect_external_blob_uris (cyclomatic 27): lance::dataset::blob::external::collect_external_blob_uris 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":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"46acc6a766429eb22a6552ecdff35018ae287f0e266923e36e5f455a7b41876f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::binary_copy::rewrite_files_binary_copy (cyclomatic 27): lance::dataset::optimize::binary_copy::rewrite_files_binary_copy 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":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e57777da57a8d5d72116a9e48b3d74b7df13f9721de6e7966d659db4ca2337"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::schema_evolution::alter_columns (cyclomatic 27): lance::dataset::schema_evolution::alter_columns 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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70a0e1dacac2cc33cc5674d4d00730cc1fcbeec67c309b9ceef3821cbffdd59"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::build_vector_index_impl (cyclomatic 27): lance::index::vector::build_vector_index_impl 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d653bf9c18ef74e0f07b7c3f1dfb9e3c60943ee6f9163f3ee7cd830c30bdaed"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::commit::do_commit_new_dataset (cyclomatic 27): lance::io::commit::do_commit_new_dataset 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":"rust/lance/src/io/commit.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d561d4a433f4937b1574fbbc6279d523255181d1162170cf04f6a6ef8db54c7e"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonbItem::partial_cmp (cyclomatic 27): JsonbItem::partial_cmp 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":"rust/lance-jsonb/src/core/item.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"402b2d7a8f16c901c67b7f97919e1ea576e27179604b67b5ee7801f561c1b515"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryNamespace::build_index_params (cyclomatic 27): DirectoryNamespace::build_index_params 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":"rust/lance-namespace-impls/src/dir/index_params.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca4f67d9ccf1ea02e0d33afa419012ecc7ac46eb29337fc9d65a21f1daf911d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns (cyclomatic 27): lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4cf7fd60ec89934deef5aba1985741ef05c5cfa135763f930ebf3346039aad"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceDataset._prepare_scalar_index_request (cyclomatic 27): LanceDataset._prepare_scalar_index_request 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":"python/python/lance/dataset.py"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9482c6ac25cef9b7ab2755aee0214d3750d3d004b2670b3bc1dd5a9b945a5607"}},{"ruleId":"D1","level":"warning","message":{"text":"FtsMemIndex::to_index_builder (cyclomatic 26): FtsMemIndex::to_index_builder 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"db24672ac7ebed4fc5f410145dc87be85204a130de3615a7fb1a6f630fb99de7"}},{"ruleId":"D1","level":"warning","message":{"text":"CompactionOptions::apply_dataset_config (cyclomatic 26): CompactionOptions::apply_dataset_config has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e44223367fd51655d5a1fbbce6fee04e9eee67a8b7421f0b11f1460978b361"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::create_data_file (cyclomatic 26): Dataset::create_data_file has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":2832}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6d61791c1c71206ce0c5476e57e74e56e27aa03a3f18a94becec6f92b81962"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::merge_existing_index_segments (cyclomatic 26): Dataset::merge_existing_index_segments has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be56b7b32a01be50c8f410d8267012fe6718cedaf94ab12eb9971f261b728f8"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanarSparseScheduler::try_new (cyclomatic 26): PlanarSparseScheduler::try_new 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e303333721bda46f97d06db6398b787ba36622dfccef5d02ff1cdfe91f415f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::encode_chunk_f64_rd (cyclomatic 26): lance_encoding::encodings::physical::alp::encode_chunk_f64_rd 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"59412fad48aa099058b745d31564449bd50f47ea39513f242c2afb6d2d054192"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectStore::read_local_staging_files (cyclomatic 26): ObjectStore::read_local_staging_files has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/local_staging.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2628f4ddae9bc706e4e8c12c101c708440d889826db19fdf43f8d4150f8ad8e6"}},{"ruleId":"D1","level":"warning","message":{"text":"BlobPreprocessor::logical_to_prepared_blob_array (cyclomatic 25): BlobPreprocessor::logical_to_prepared_blob_array has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ab605e13ae3a71c7e419e2b3abba280146c72714d8964f77ba34ad7d4a0d85"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultCompactionPlanner::plan_with_budget (cyclomatic 25): DefaultCompactionPlanner::plan_with_budget has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"6226e73843563ba33e2c6c36ec657bfd9a53132bc53799d31ca90a0a0c52ca9a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::mem_wal::write::replay::replay_memtable_from_wal (cyclomatic 25): lance::dataset::mem_wal::write::replay::replay_memtable_from_wal has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/replay.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c3720e39bdeb1d72f1fcda84fbeeba91ed673a8d6e2ff640869b139e9d490c"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::ivf::train_weighted_hierarchical_kmeans (cyclomatic 25): lance::index::vector::ivf::train_weighted_hierarchical_kmeans has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f78e688e91e0c2c94587f72a54ab1e327ce8ff2c91a4cd5df89098ace9e8b56"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::compression::create_fixed_width_block_decompressor_inner (cyclomatic 25): lance_encoding::compression::create_fixed_width_block_decompressor_inner has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6c1e429652e205314bb32b686b200b851436b156f0292f1bdf934a1d4498ad"}},{"ruleId":"D1","level":"warning","message":{"text":"PostingIterator::merge_optional_freqs (cyclomatic 25): PostingIterator::merge_optional_freqs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"009f92c5f9b99d2f331e4036745bc69bf1d9230de80a44452634e000e80d892d"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryNamespace::alter_transaction (cyclomatic 25): DirectoryNamespace::alter_transaction has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d24bcb77ee205f681a86908ab8827cfc0500244cb32f15d2e1764388d720759"}},{"ruleId":"D1","level":"warning","message":{"text":"U64Segment::with_new_high (cyclomatic 25): U64Segment::with_new_high has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bd4b9f9a6a8d6465d8c6692d3dd99d5e4631f44bc54f97e3720c0c9cb9927a"}},{"ruleId":"D1","level":"warning","message":{"text":"pylance::dataset::optimize::parse_compaction_options (cyclomatic 24): pylance::dataset::optimize::parse_compaction_options has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/optimize.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b11a7d8d1da27051f8f7538f69bd0aadddf69cd6141494e80c672899ee0df43"}},{"ruleId":"D1","level":"warning","message":{"text":"pylance::scanner::vector_query_params_from_dict (cyclomatic 24): pylance::scanner::vector_query_params_from_dict has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/scanner.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d13787183a62fc46d5c45281afc0c909c609d0853a59cd8095bc4dc880a42c"}},{"ruleId":"D1","level":"warning","message":{"text":"FileFragment::validate (cyclomatic 24): FileFragment::validate 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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c5c0324c448ba9ca72fda56a5a8ef0c04df8aa392783de747a8d86c3c6b1a8"}},{"ruleId":"D1","level":"warning","message":{"text":"FtsIndexExec::materialize_rows_sorted (cyclomatic 24): FtsIndexExec::materialize_rows_sorted 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf8dbb3e117275719fce0bab149e0af96a5bd565f758a3b6a608b51c2f5f528"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::prefilter_source (cyclomatic 24): Scanner::prefilter_source 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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec86e029a68fd88d129e8a4239e62c4fec3957f81ea3d15dbdf38f42eb4dbd6"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::update_fragments (cyclomatic 24): MergeInsertJob::update_fragments 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. This shape REPEATS in the file: one other method here (MergeInsertJob::update_fragments::handle_fragment) 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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d478477a2d34874e44b534cc9e1a65641cd5c1f6395f8b00cbf395d82b0440a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::index::frag_reuse::compute_tagged_retention (cyclomatic 24): lance::dataset::index::frag_reuse::compute_tagged_retention 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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6298a28007977671762f325e88e24057fe8523d6d0588f4ff7ddad18bdfd30"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::build_distributed_vector_index (cyclomatic 24): lance::index::vector::build_distributed_vector_index 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"e613d6d4fbc50f896f7e085b8ba71607d002d1b45791bb6455c9c3ef154a312f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::signed_zero::rewrite_node (cyclomatic 24): lance_datafusion::signed_zero::rewrite_node 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":"rust/lance-datafusion/src/signed_zero.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"754ad16e3d42588fe39c562d587314dbb4cd3c3365e4a9d469a3a58790ed0c43"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultDecompressionStrategy::create_miniblock_decompressor (cyclomatic 24): DefaultDecompressionStrategy::create_miniblock_decompressor has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a93cf79573c0559911a9d84f790825b1bbf674096c772ab255020921989f5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"PrimitiveStructuralEncoder::sample_unique_ratio (cyclomatic 24): PrimitiveStructuralEncoder::sample_unique_ratio has cyclomatic complexity 24 (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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d346e6fea8d8c5ec210ef62b5957cc7b4f66d489ad90951a61c6dcb47e5e996"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::inverted::index::flat_search::tokenize_and_count (cyclomatic 24): lance_index::scalar::inverted::index::flat_search::tokenize_and_count 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":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"144d90e3b7c3986841a5d29bc4521987c99d49fe1cbd6251a14066166d41cd2f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::zonemap::parse_seed_for_binary_copy (cyclomatic 24): lance_index::scalar::zonemap::parse_seed_for_binary_copy 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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"e399a6bbd257221fd8e844e0643f07fc587377d7ef3937f4c6511c671d7a0b20"}},{"ruleId":"D1","level":"warning","message":{"text":"FtsTokenizerOptions::apply (cyclomatic 23): FtsTokenizerOptions::apply has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fts.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"268872f876b315642addf0aeb563e41a682ff9e6289d0b552a413507aab8bd72"}},{"ruleId":"D1","level":"warning","message":{"text":"TakeOperation::try_from_expr (cyclomatic 23): TakeOperation::try_from_expr has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ce41f10c811e068d4932965248714a4566e6168b3610529ef0f6e8a1af05b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::validate_options (cyclomatic 23): Scanner::validate_options has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78f34c7fa1190d6296a3f2185ebd9d6309e18be7a15954136ffb2e98c557fe9"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::open_vector_index_from_metadata_with_plan (cyclomatic 23): Dataset::open_vector_index_from_metadata_with_plan has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"c933f9899bf30d262138a808976f489c77ab6b93f45f2d872e43a3a6bdd2e784"}},{"ruleId":"D1","level":"warning","message":{"text":"TopKLateMaterialization::rewrite (cyclomatic 23): TopKLateMaterialization::rewrite has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/topk_late_materialization.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ca735eafe0045b6a34e8897c7bc3ecdd73c8065f8a132fdaabb91b9bb016fa"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::exec::filtered_read_proto::fr_options_from_proto (cyclomatic 23): lance::io::exec::filtered_read_proto::fr_options_from_proto has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read_proto.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"057e6eb78c4d9910fd8acc8c33083105a3a4db0080e8794792fb5a311de4450a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::planar::validate_page (cyclomatic 23): lance_encoding::encodings::logical::primitive::planar::validate_page has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/planar.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5921c3c7329dc59ddc8e87557aab558b7140662cb9e07fcfe1ac41adba65b5"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_file::concat::validate_blob_field (cyclomatic 23): lance_file::concat::validate_blob_field has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd6dc2cba2de384229fe37095d271761adb2c50896f2d006035e16b3f9b84c9"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_file::versions::v2_3::reader::validate_compressive_encoding (cyclomatic 23): lance_file::versions::v2_3::reader::validate_compressive_encoding has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_3/reader.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bd4b38ddce176bf750a1253976bccef2ca9887277ef4f1e0234fab138e45d9"}},{"ruleId":"D1","level":"warning","message":{"text":"BitmapIndex::search_with_options (cyclomatic 23): BitmapIndex::search_with_options has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f105676c1c049ae5c2837838ad705846ac93c0ac6a0e497c92c4e766a5f0c2"}},{"ruleId":"D1","level":"warning","message":{"text":"BTreeLookup::pages_between (cyclomatic 23): BTreeLookup::pages_between has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e92618498057904593d958f13c5e2baffa879453d031e34f9c9d378a5d3416"}},{"ruleId":"D1","level":"warning","message":{"text":"CompoundScorerPlan::analyze_node (cyclomatic 23): CompoundScorerPlan::analyze_node has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"41968bc00ac66657ee308597b07ac2cb0b9404365f5a09282c4c7c1458ffb327"}},{"ruleId":"D1","level":"warning","message":{"text":"Deserializer::read_with_jentry (cyclomatic 23): Deserializer::read_with_jentry has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"defbdd1137c199cc182279f57b692752da9582b03bd2453160d8aa41f051ab4f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::transaction::row_version::resolve_update_version_metadata (cyclomatic 23): lance_table::transaction::row_version::resolve_update_version_metadata has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14eb65f0dd7e90c37b60385ad7255eb2b17b4f8d9709ee18ae0c2d332e10e8b"}},{"ruleId":"D1","level":"warning","message":{"text":"dataset.write_dataset (cyclomatic 23): dataset.write_dataset has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":5777}}}],"partialFingerprints":{"codehealthFindingId/v1":"689bf29bfba459a6b1802f5cde9dfcea4f5e90212b513dd613e00172897e8230"}},{"ruleId":"D1","level":"warning","message":{"text":"PyLance::extract (cyclomatic 22): PyLance::extract has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a482ebc80de684b6c1bab410b38ee6d09101bb87977656f428bf55e0c50a73"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTask::process_manifest_file (cyclomatic 22): CleanupTask::process_manifest_file 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9136eb740c002e5276b0fded7f92be6b8fcf56e9ae5b93d5554d29faa2ffe953"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchRefineExec::refine (cyclomatic 22): BatchRefineExec::refine 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":"rust/lance/src/io/exec/knn/refine.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d7bfae6de184f8b1bd2faa9a067ab88b2d2209927daec78bbcdaf929b6d2b6"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::scalar::index_matches_criteria (cyclomatic 22): lance::index::scalar::index_matches_criteria 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":"rust/lance/src/index/scalar.rs"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c914c34db1528dc7838d367132a4fc1ade0bda3c7bd2b0520934eb73f8675e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::exec::knn::batch_probe::late_search (cyclomatic 22): lance::io::exec::knn::batch_probe::late_search has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/batch_probe.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a905857d97d2f5cb85d34b7df584c673dc37c387103995605352208c5c57f272"}},{"ruleId":"D1","level":"warning","message":{"text":"DataBlock::from_arrays_impl (cyclomatic 22): DataBlock::from_arrays_impl has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"456e0361d7260b0bf69c11c22a16b8440e64eb805f99ddc5769e81f2c8084c54"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanarSparseScheduler::init_from_buffers (cyclomatic 22): PlanarSparseScheduler::init_from_buffers 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc8f1ba898ba545cebfe2fdbd9bf64bbdc322a531ce9bbcf33d993a4ecefecb"}},{"ruleId":"D1","level":"warning","message":{"text":"RleEncoder::encode_chunk_rolling_slice (cyclomatic 22): RleEncoder::encode_chunk_rolling_slice 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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ab5b5df1fb9040c37b2f983fc464d40d50fee7008cd0b932c76db740c72868"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::axis_delta::try_tensor_per_value (cyclomatic 22): lance_encoding::encodings::physical::axis_delta::try_tensor_per_value has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/axis_delta.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf52f3e9a141c69e7096da0924c10210d9f14e6b3de3fc43fc72d2ea7005f33"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::prepare_score_first_and_window (cyclomatic 22): Wand::prepare_score_first_and_window 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":"rust/lance-index/src/scalar/inverted/wand/conjunction.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ebca29716df925c354c9bcbc96873849d3b330cfbf252fd4ee4ccfc87a1a71"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::bq::ex_dot::unpack_group (cyclomatic 22): lance_index::vector::bq::ex_dot::unpack_group has cyclomatic complexity 22 (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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"afefc3bda1a348ce4f1d435e3e38acaae0bdad385334a98db2290ebbdb914d8b"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceDataset.__iter__ (cyclomatic 22): LanceDataset.__iter__ 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":"python/python/lance/torch/data.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"b096b0c12d076de0037b0d6ba4a00313e813a90889f35a6ffa9be9dfaf0d3c57"}},{"ruleId":"D1","level":"warning","message":{"text":"ScalarBackend::insert_array_and_report_existing (cyclomatic 21): ScalarBackend::insert_array_and_report_existing has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9731a454f97ae694ce3bf85ed98ca884223b436adf869e06060dbcf5c6324f3"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_corpus_query (cyclomatic 21): Scanner::plan_corpus_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9a79f68337115bb7c3f0aa23baa63b2ac6b6818effd104d04b939fcff8b227"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::execute_uncommitted_impl (cyclomatic 21): MergeInsertJob::execute_uncommitted_impl has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"0137966d742faddbaecde2bf7b4689cb6c58e00fb1902c24d3055a608bc825f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::commit_existing_index_segments (cyclomatic 21): Dataset::commit_existing_index_segments 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":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc155b31b5e91b2a723bf17f3a342d3cd44eb38090201df220f864353d69ec4"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::scalar_index_info_with_plugins (cyclomatic 21): Dataset::scalar_index_info_with_plugins 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":"rust/lance/src/index/loading.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dc600313f56156ac9ebcb0c6fee6afa0026ba3ed55990651e4793c8b3504ca"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexDescriptionImpl::try_new (cyclomatic 21): IndexDescriptionImpl::try_new has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/statistics.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea56bc5193a4b862f18e16877c607acb6a07c1ea63bc30aced2b971d3b9878d"}},{"ruleId":"D1","level":"warning","message":{"text":"FilteredReadExec::try_new_row_stream (cyclomatic 21): FilteredReadExec::try_new_row_stream 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef02a8e15d5d6054886a60f31bc7219d4c92bdb1fd22d34a025f8a9e5c2b8bf"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::blob::validate_prepared_blob_value_array (cyclomatic 21): lance::blob::validate_prepared_blob_value_array 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":"rust/lance/src/blob.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec37437e8f855015210e089fb72ee98150ba3340d10f8f2fa54f93ce77aabd"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::frag_reuse_with_stable_row_ids::history::validate_frag_reuse_history (cyclomatic 21): lance::index::frag_reuse_with_stable_row_ids::history::validate_frag_reuse_history has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse_with_stable_row_ids/history.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9429edf940fc561e782af3da8ae0b4de6c1871b6955f2b9a63607330d38f8192"}},{"ruleId":"D1","level":"warning","message":{"text":"Field::project_by_field (cyclomatic 21): Field::project_by_field has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"577c6a54e0949c7c4ce1a8ccf4f78da059def909b559efde16979156ac3e71de"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::lower_decimal (cyclomatic 21): lance_datafusion::numeric_coercion::lower_decimal has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"363659da1938ef5d2fa3fed64995cfe7259a26f3b6061c175f51f37bb2f6e6d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkInstructions::schedule_instructions (cyclomatic 21): ChunkInstructions::schedule_instructions 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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"73610e0b9fbd10d4d4dd4577af95e496d02b8f192fcf984fde1b63e23adb1ec6"}},{"ruleId":"D1","level":"warning","message":{"text":"PrimitiveStructuralEncoder::should_dictionary_encode (cyclomatic 21): PrimitiveStructuralEncoder::should_dictionary_encode 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b950ae555743e9926fd816faa7bd860527df1fa54febf94e3eed964609f88b"}},{"ruleId":"D1","level":"warning","message":{"text":"RepDefUnraveler::unravel_offsets (cyclomatic 21): RepDefUnraveler::unravel_offsets 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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cb7400b48e50ce6d1ba8e153fc4dc7654a11b4e33abc98ead5e2ad9b8ae14b"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::array_encoding::physical::decoder_from_array_encoding (cyclomatic 21): lance_encoding::array_encoding::physical::decoder_from_array_encoding has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/physical.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82021a1c4ffcaa0d4a93a5e0fb9fac8ae9d4c3ad3bfc2e54416f45610b23e2f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range (cyclomatic 21): lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range 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":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db5afece924b52c4e0ea4b447404011c51b43df96221fc41ec299a7a60fbc4b"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::fixed_size_list_almost_equal (cyclomatic 21): lance_index::vector::distributed::index_merger::fixed_size_list_almost_equal 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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae44c9b68b2ad9c9a3bd8e80e645c3f2c31747ba6565e5cf589246e9ba2fa38a"}},{"ruleId":"D1","level":"warning","message":{"text":"Selector::convert_expr_val (cyclomatic 21): Selector::convert_expr_val has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd705b20f8a53ac6eea412fe00fc7b641b710a9b2a531434f45adb5bc72f64cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestNamespace::create_table (cyclomatic 21): ManifestNamespace::create_table 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"640dcd865a30e35405070c812df3d45f2d31265495fb62c5ce87733b37cc751c"}},{"ruleId":"D1","level":"warning","message":{"text":"data._to_tensor (cyclomatic 21): data._to_tensor 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":"python/python/lance/torch/data.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdbe4fd1dfb1aec2a7b67609574a1cdbcbf32058205be0eb487ffedf9ba5f50"}},{"ruleId":"D1","level":"warning","message":{"text":"Checker.run (cyclomatic 21): Checker.run 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":"skills/lance-table-maintenance/scripts/conformance.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe080427388c13d0dfdd32996d9d3e39d1a3730dbe3d9508ea2375a16033c8d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::index::determine_index_type (cyclomatic 20): lance_jni::index::determine_index_type has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/index.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee656eb79f6e706cad3956a8e66cf83335bc8425af13c6b498dee4f1e5fae3a"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::new (cyclomatic 20): Dataset::new has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f878503721110b5fb1600fa4b3c5b52832a4c609acf3650ebaeaffc6dc5d5d8"}},{"ruleId":"D1","level":"warning","message":{"text":"fsst::fsst::decompress_bulk (cyclomatic 20): fsst::fsst::decompress_bulk 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":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aa90c0d582b9909aaea7f2b0b72e275d5101cd2ff9481ce60f088a3baa61b0"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTask::run (cyclomatic 20): CleanupTask::run 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a1882d4a94b076d323e739423a3f301c463574a099aca72b4cd18d2a858970"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTask::process_branch_referenced_manifests (cyclomatic 20): CleanupTask::process_branch_referenced_manifests 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7a2d8498ce2d07b8bd57ffdb94c1b39229bbdfe46a7682c887c187cc9a36b9"}},{"ruleId":"D1","level":"warning","message":{"text":"BytesBackend::insert_array_and_report_existing (cyclomatic 20): BytesBackend::insert_array_and_report_existing 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":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"42503ef2b733143e0a4e23ffec95e245de69f09afe44b4a417b705eae1b88d78"}},{"ruleId":"D1","level":"warning","message":{"text":"ScalarMemIndexExec::read_rows (cyclomatic 20): ScalarMemIndexExec::read_rows 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scalar_index.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"703f2831d3865eaab628976b0d79a7ed0709201a089989286b35b56f8cd813b8"}},{"ruleId":"D1","level":"warning","message":{"text":"LsmFtsSearchPlanner::build_source_plan (cyclomatic 20): LsmFtsSearchPlanner::build_source_plan 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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc56635156bcff50c8fa90ff4f8ad2679a7014004311a76964307d8e049c932"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_phrase_query (cyclomatic 20): Scanner::plan_phrase_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d2ebc50f1be233b0ccb3b9409853674993be55e538c45542a384e3dba242ed"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_combined_fields_query (cyclomatic 20): Scanner::plan_combined_fields_query has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb10ba8ff67ef23b8c61c597a1856ad096237709739e9e1db2a6bd9f89c103da"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::new_filtered_read (cyclomatic 20): Scanner::new_filtered_read has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9859994db8c4b73db7a6fd2e7d063c34f893bb60c4863e6769a571e73c58c239"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::filter_addr_or_ids (cyclomatic 20): Dataset::filter_addr_or_ids 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":"rust/lance/src/dataset.rs"},"region":{"startLine":3643}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f65cb731d981a89d08642d576f1dab3800283f99ba3addd79fa104827dabbb5"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::finish_rewrite (cyclomatic 20): TransactionRebase::finish_rewrite 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":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab960286f266847964ca0379aed43e30f65004b0ee48cf74d1d545eb05e3e9"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::write::seeds::seed_writers_for (cyclomatic 20): lance::dataset::write::seeds::seed_writers_for 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":"rust/lance/src/dataset/write/seeds.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0896d97defaa9e047fc94e619d6e80b52f91208d201f80413072ef4c3fc00565"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::frag_reuse::validate_folded_deletions (cyclomatic 20): lance::index::frag_reuse::validate_folded_deletions has cyclomatic complexity 20 (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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c531703d6de5899d07f00d40c76e0c03332469e39e05a2df95d8f043cab56e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::optimize::consolidate::validate_commit (cyclomatic 20): lance::index::optimize::consolidate::validate_commit 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":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"c550663977f79c3eeaff2e90aec0b6f6a6e5ebf02ec7724719b8ae8a7de7f7d3"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::commit::do_commit_detached_transaction (cyclomatic 20): lance::io::commit::do_commit_detached_transaction 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":"rust/lance/src/io/commit.rs"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed18027cf03196272e93c2518aff18eaf83da6ab516cbc226dc4f46076cc447"}},{"ruleId":"D1","level":"warning","message":{"text":"BitpackedPageDecoder::decode (cyclomatic 20): BitpackedPageDecoder::decode 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":"rust/lance-encoding/src/array_encoding/physical/bitpack.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ddf6092cf58dab2e5e05f5cce52b64c930263a439fd22880448ee18147db14"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFieldEncodingStrategy::validate_v2_0_array_reachability (cyclomatic 20): ArrayFieldEncodingStrategy::validate_v2_0_array_reachability 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":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679dc3922e69a7db1b495646b517fee3fc04e310583d3759191187157336902"}},{"ruleId":"D1","level":"warning","message":{"text":"LookupKeys::match_page (cyclomatic 20): LookupKeys::match_page 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. This is NOT this file\u0027s highest cyclomatic complexity: BTreeLookup::candidate_pages_for_values (cyclomatic 21) 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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d9630447db7274f5d2870c67192cd373ac5823f5953fd1cce62c008849d38f"}},{"ruleId":"D1","level":"warning","message":{"text":"FetchedPostings::into_loaded (cyclomatic 20): FetchedPostings::into_loaded 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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"101b460159f2c4a959855e316e31dbbc5c59bdd1012fba016d30e7cb676e0642"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonFlattener::flatten (cyclomatic 20): JsonFlattener::flatten 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":"rust/lance-index/src/scalar/inverted/tokenizer/document_tokenizer.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f850b758cedb64269cd7e3dbe955f8ea8016a53d152001cf34c8b0713141c93"}},{"ruleId":"D1","level":"warning","message":{"text":"Wand::next (cyclomatic 20): Wand::next 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":"rust/lance-index/src/scalar/inverted/wand/disjunction.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"503b9369b588e1e69c94fc097d7ff072550b3543c7bd9a667a80a3bb0070df36"}},{"ruleId":"D1","level":"warning","message":{"text":"RQPairScorer::stage (cyclomatic 20): RQPairScorer::stage has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c78a61e524aa3973d1747d85aa48db1b89d5feeb32a94b39422fe0fc737f225"}},{"ruleId":"D1","level":"warning","message":{"text":"Number::compact_encode (cyclomatic 20): Number::compact_encode has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Number::decode (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47160b3121d0d33b9961f4f0a3334e06e401ad246a82b1250e54a256f44e83f"}},{"ruleId":"D1","level":"warning","message":{"text":"RowAddrMask::for_each_selected (cyclomatic 20): RowAddrMask::for_each_selected 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":"rust/lance-select/src/mask.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b6483444dc9f786230929d90afbb7cb36c154500fd0dbcdbdc0543f22646cc"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::transaction::validate::merge_schema_valid (cyclomatic 20): lance_table::transaction::validate::merge_schema_valid 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":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e97532e10656a1a8f835bb1d4869f6de0c796bb7380a8cac8b30aa8db2596e"}},{"ruleId":"D1","level":"warning","message":{"text":"LsmFtsSearchPlanner::plan_bound_search (cyclomatic 19): LsmFtsSearchPlanner::plan_bound_search has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10966324df8dc6af2a30add6b3f9be37d7957fbf6b142713a260f2b5a5587f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_match_query (cyclomatic 19): Scanner::plan_match_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"369a741dc183e1ca2134abb70d3169e2cc1bcb536e8873ef1ae77d57c8d00ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"Updater::update_batches (cyclomatic 19): Updater::update_batches has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/updater.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dde47db06daaa17a6180ca20bb39f51da38917b3af1664922f5b765cc74fcb"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateJob::execute_impl (cyclomatic 19): UpdateJob::execute_impl has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a380343b6362d11c6eefe51a8b2e97e58b0000e03e9e3ed679fa7394645c7171"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::count_indexed_rows (cyclomatic 19): Dataset::count_indexed_rows 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":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1644ceb516b81a8b8c1b1ffb4b3a49a7bc593dd0e027cf91406a6cb3f398a4"}},{"ruleId":"D1","level":"warning","message":{"text":"TakeStream::map_batch (cyclomatic 19): TakeStream::map_batch 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":"rust/lance/src/io/exec/take.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5612be5ed6f0621fbadd95bb1ad27d9e309f431df8359da218cf214b010e12"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::cleanup::build_cleanup_operation (cyclomatic 19): lance::dataset::cleanup::build_cleanup_operation has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1f1685ce446919d8c6a6da7737f0423fa62a23c374cace50e9a24f359b83c5"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::take::do_take_rows (cyclomatic 19): lance::dataset::take::do_take_rows 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":"rust/lance/src/dataset/take.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5013f65a7f2ee26274f778e13824de62da7a1b083dc373ae1521b057133e7923"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::updater::blanks::blank_plan (cyclomatic 19): lance::dataset::updater::blanks::blank_plan 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":"rust/lance/src/dataset/updater/blanks.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"db95693eeb799f54c94b47b749087ff5ea88640fd50c089480ea7c5b39cb6bf5"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::write::validate_and_resolve_target_bases_with_primary (cyclomatic 19): lance::dataset::write::validate_and_resolve_target_bases_with_primary 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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8874cac088f0a46e36e403963f3f2c36a53227d5b5e1cbce514e90b36facef"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::provenance::fresh_fragments (cyclomatic 19): lance::index::provenance::fresh_fragments 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":"rust/lance/src/index/provenance.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"950be266d1f34e699c1f2b010fcc6a0331aedfbb1e2cdcaace780ebcfaaa197e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::provenance::prune_stale_segment_coverage (cyclomatic 19): lance::index::provenance::prune_stale_segment_coverage 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":"rust/lance/src/index/provenance.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"5911c0967f481bb292e38a59b8172669dae9e6d0533410c6fd85ac34b7ab3459"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::builder::merge_partitions (cyclomatic 19): lance::index::vector::builder::merge_partitions 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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2b28e61b2cc3f61c11ed00e02a90ad084334945b4e1c1a654f2ac5fcb6fcd3"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::dedup::plan (cyclomatic 19): lance::index::vector::dedup::plan 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":"rust/lance/src/index/vector/dedup.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6588c50b52a048b71162458b62b6ee76f5e52a3dc3afe330b87d054f4be2e19e"}},{"ruleId":"D1","level":"warning","message":{"text":"Field::try_from (cyclomatic 19): Field::try_from 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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"39145e3b9ccba8040087fcc02c3c03b0489a875aa5acaeafa70bcaac56027187"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::logical_expr::resolve_expr (cyclomatic 19): lance_datafusion::logical_expr::resolve_expr 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":"rust/lance-datafusion/src/logical_expr.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45e0f3693e25ea6f7cc111eee75ef7cb0276d72fe6191fff7f1d8aa75f7c461"}},{"ruleId":"D1","level":"warning","message":{"text":"FixedWidthDataBlock::byte_position_entropy (cyclomatic 19): FixedWidthDataBlock::byte_position_entropy 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":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b9333de9e302384438cd94288659b2e35ef17cb859edbdb17d191d4c8e4964"}},{"ruleId":"D1","level":"warning","message":{"text":"FullZipScheduler::schedule_list_structure (cyclomatic 19): FullZipScheduler::schedule_list_structure 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":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a979f6828cfbf80de1cf8dd5687050cc06eb0fdfa656193d07aae5a299f458d"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanarSparseTask::decode_checked (cyclomatic 19): PlanarSparseTask::decode_checked 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"490bc0c3cbb21934282c7478e452289e6601f4770813149cac0cbc9d6c7dae89"}},{"ruleId":"D1","level":"warning","message":{"text":"PrimitiveStructuralEncoder::serialize_miniblocks (cyclomatic 19): PrimitiveStructuralEncoder::serialize_miniblocks 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"6743055c551cd22b39777f0b1c0e905f7dc081e34212bc80ee4e4a6c51fd0187"}},{"ruleId":"D1","level":"warning","message":{"text":"PrimitiveStructuralEncoder::is_constant_values (cyclomatic 19): PrimitiveStructuralEncoder::is_constant_values 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"055794e5896d427007d78d368cb1327b0de87aa0b013aa63b28af92c5b8b28f5"}},{"ruleId":"D1","level":"warning","message":{"text":"RepDefBuilder::concat_layers (cyclomatic 19): RepDefBuilder::concat_layers 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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"146116360d0f8400e3d3850b589e9b56db627f500d8ec7916a1333cf6a288e55"}},{"ruleId":"D1","level":"warning","message":{"text":"ReqOptScorer::position (cyclomatic 19): ReqOptScorer::position 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5c3a051f4c966ab83c7e159a10b4cdfd43bfe03914794b5777448c9b54bc24"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_io::uring::thread::run_uring_thread (cyclomatic 19): lance_io::uring::thread::run_uring_thread 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":"rust/lance-io/src/uring/thread.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0b130ba3c43e0d7f4f2bd2dcd39e153c6962baf23990c479c710e07e06a116"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jsonb::util::parse_escaped_string (cyclomatic 19): lance_jsonb::util::parse_escaped_string 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":"rust/lance-jsonb/src/util.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20def6b9792d8adc7c44c2634247d745dcc5dea677de71b7f8b0d68b8b11a8a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_linalg::distance::arrow::dispatch (cyclomatic 19): lance_linalg::distance::arrow::dispatch 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":"rust/lance-linalg/src/distance/arrow.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b767efb8d5dda2dc7beb30c4f23434aef763cae99fd63109cf69540334aad61"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::format::key_existence::extract_key_value (cyclomatic 19): lance_table::format::key_existence::extract_key_value has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/key_existence.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2035a80f047f50e0ca6e45afdfffb8493d256a59de99541e92fc0b0e092cad7"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::utils::build_compaction_options (cyclomatic 18): lance_jni::utils::build_compaction_options has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: lance_jni::utils::scalar_value_to_java (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/utils.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dfe640a5343f071fede513355282eadc0c1f82622bff454be19c9b91c1a54e"}},{"ruleId":"D1","level":"warning","message":{"text":"MemTableFlushHandler::flush_memtable (cyclomatic 18): MemTableFlushHandler::flush_memtable 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":"rust/lance/src/dataset/mem_wal/write/handlers.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e4d94f2f328f8d414921b8c785aed97bf2758ef47afffce5078569b24f7816"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::knn_combined (cyclomatic 18): Scanner::knn_combined 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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37d7d39602f1a6746872c43abd3844fb98b99aeadafcbf164a79907e7d42240"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::create_indexed_scan_joined_stream (cyclomatic 18): MergeInsertJob::create_indexed_scan_joined_stream has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e3b892386d0ddfaf666ffe59ffba23aa46092b56df562e4726685020cf209b"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateIndexBuilder::execute_multi_segment_fmindex (cyclomatic 18): CreateIndexBuilder::execute_multi_segment_fmindex has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ea0d1256a2923afccce3fec3c56a67a7dff4db38d28823f93c1de5a6efe448"}},{"ruleId":"D1","level":"warning","message":{"text":"KNNVectorDistanceExec::execute_batch (cyclomatic 18): KNNVectorDistanceExec::execute_batch 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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebca57f9674137298fe490f7abc4174cd101c5c04f8d702473377b399df2c93"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::remapping::remap_index (cyclomatic 18): lance::dataset::optimize::remapping::remap_index 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":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8280e6269f8e57cbf8de924b55597f4e45d3319b8c8850a13b3b777a9b5064ab"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::optimize::commit_optimize_indices (cyclomatic 18): lance::index::optimize::commit_optimize_indices 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":"rust/lance/src/index/optimize.rs"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cad087bce0a04e96cf01c06362bd87d675ba0c663d952519d192cd57367f02"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::details::convert_v3_metadata_to_details (cyclomatic 18): lance::index::vector::details::convert_v3_metadata_to_details has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6645afa23203b08b20ecdc0827f14b134add0da270f277a2bd0a6ba87bd2a5f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::io::commit::fix_schema (cyclomatic 18): lance::io::commit::fix_schema has cyclomatic complexity 18 (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":"rust/lance/src/io/commit.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf98ecc0cab95234dac7da4c177a1e055c9531055802a4c00999ce557b1496d"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema::do_project (cyclomatic 18): Schema::do_project 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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44ce0d9c6cbae3b13ca04bfd5ac925668b257ddbec57fa2e6447e7767e8dec0"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedStream::poll_next (cyclomatic 18): SharedStream::poll_next 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":"rust/lance-core/src/utils/futures.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4091ad129ed03ac03942673add38c6255f93a2b39fad1ccabe839f56ce920b0f"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion_exec::exec::collect_execution_metrics (cyclomatic 18): lance_datafusion_exec::exec::collect_execution_metrics has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2501a8315752da4de1b32ef415672f81b3630eb40dedca51072b04aba8561868"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryMiniBlockDecompressor::decompress_range (cyclomatic 18): BinaryMiniBlockDecompressor::decompress_range 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":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4deb7075388d7dca35e3645a4dce2eb2247087385f6b84a1f2c77ceb7183467"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializerContext::record_offsets (cyclomatic 18): SerializerContext::record_offsets 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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3576a408d1b3cf2c781de26950cf5cadf72e537fae72e1a96c34b7ea91aa27"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width (cyclomatic 18): lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width 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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c6d86f812244b47defca9db2bfca10ed432d3d4ba82a5d9bbdbb2e311d51eb"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::sparse::select_position_set (cyclomatic 18): lance_encoding::encodings::logical::primitive::sparse::select_position_set 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"93da44bd8ce9f460233167994161d5ce9da03a4fd8b542648a17cb289fcaf3c8"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2 (cyclomatic 18): lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2 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. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"2706e702d727f88dd32b63d4b58bf42ad5e5a28c5fdeda633eb454288e2cc9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2 (cyclomatic 18): lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2 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. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffa2d84c237de22a33fb96fcf82e9bf994239a0bca139be8da6348f4f4a76d7"}},{"ruleId":"D1","level":"warning","message":{"text":"KeepFiniteVectors::transform (cyclomatic 18): KeepFiniteVectors::transform has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/transform.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9bf159054beb883c40e3b3cad5d0ea636ef82af9f4fe281135b74f9628f29a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config (cyclomatic 18): lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config 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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d64c49766c4988bb0f95d914c9345ba138f9d1a32e0dffc271ba9b8b65cfa2"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::inverted::combined::maxscore::combined_maxscore (cyclomatic 18): lance_index::scalar::inverted::combined::maxscore::combined_maxscore 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":"rust/lance-index/src/scalar/inverted/combined/maxscore.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73920f424ff11e572501f36899307b82560f4dbb6bddf3fd1cfba288e3871dd"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::score_cross_column_sources (cyclomatic 18): lance_index::scalar::inverted::cross_column::score_cross_column_sources 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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fa3b16640e8fb1afa2e61c9a3afa264a613a40f2658e8875030d9a01d2a94a"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::tuple::planner::plan (cyclomatic 18): lance_index::scalar::tuple::planner::plan 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":"rust/lance-index/src/scalar/tuple/planner.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc05d73c5d47265711a19c8af6d4060b98a7f42f6bc52a5e2f7d0c313f657a09"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::tuple::planner::key_ranges (cyclomatic 18): lance_index::scalar::tuple::planner::key_ranges has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/tuple/planner.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"2def1ebefa1d79d5c7295f6e7b9bba57ffd8d3b10fd9e434d3846e4917467f28"}},{"ruleId":"D1","level":"warning","message":{"text":"GooseFsStoreProvider::parse_decimal_times_unit (cyclomatic 18): GooseFsStoreProvider::parse_decimal_times_unit has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/goosefs.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a920a106b252b26a60fc8c2aafa082b0269834a95c908d8222307715b6c84eb"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_io::object_store::throttle::error_document_code (cyclomatic 18): lance_io::object_store::throttle::error_document_code has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cd1939f70f62add56a99d7c6860327cc9e263ec99c3857f671572a46a9cc97"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction::withdraw_coverage (cyclomatic 18): Transaction::withdraw_coverage 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":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0489a8b6fe3029789691831985f309055aa2b2a9c922578e35202aa2f0406850"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.tokenizerParams (cyclomatic 18): Builder.tokenizerParams has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f5cded493efb90a7e81ea22069ad46f5db5208bccd1df5afd495e4f9dcaf03"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceDataset.shallow_clone (cyclomatic 18): LanceDataset.shallow_clone has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f2ab98ad2c5c03f83ae67cf8fda6932d0cabaf26de6d84d6d9d8ebacf3bd9b"}},{"ruleId":"D1","level":"warning","message":{"text":"udf.normalize_transform (cyclomatic 18): udf.normalize_transform 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":"python/python/lance/udf.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"973302930bbd289d28d1b5e47d9c2753c8ff7594aaee3df18a82d80ef533c726"}},{"ruleId":"D1","level":"warning","message":{"text":"pylance::dataset::writer_config_from_kwargs (cyclomatic 17): pylance::dataset::writer_config_from_kwargs has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5863a7ec5d3eca43777aeb1465c511fabdde26b60c7ec19b46dee81560b74e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"BlobPreprocessor::preprocess_field (cyclomatic 17): BlobPreprocessor::preprocess_field 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":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3efed7e829989a3a67ae3b92a1792f6cfedc64b34a7a625de3e31bafd05761"}},{"ruleId":"D1","level":"warning","message":{"text":"DatasetDelta::scan_rows (cyclomatic 17): DatasetDelta::scan_rows has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01e5c385c26988f30518b1c45b367286d8c5df28844d7ac717211b7f5791d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"FileFragment::open (cyclomatic 17): FileFragment::open has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d27149eb142ad05dbcb534b6cd882abdaee1972a65ead468bf7c50f1470a35"}},{"ruleId":"D1","level":"warning","message":{"text":"FixedIntBackend::insert_array_and_report_existing (cyclomatic 17): FixedIntBackend::insert_array_and_report_existing has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa227d7c68b8e667d5e107918b115068fc547ff55c9657c474fc41abbc608b62"}},{"ruleId":"D1","level":"warning","message":{"text":"Partition::maxscore_loop (cyclomatic 17): Partition::maxscore_loop 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4775}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7901a2f3402bef71ec1c6f045abf00e53a35bedc6d9c06fdf4670a94115f8d"}},{"ruleId":"D1","level":"warning","message":{"text":"MemTableScanExec::execute (cyclomatic 17): MemTableScanExec::execute 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4071235f137df36d7bfe63800fcb7b6f1dd411134511333122d90666dcc4340"}},{"ruleId":"D1","level":"warning","message":{"text":"LsmVectorSearchPlanner::plan_search_with_probe_bounds (cyclomatic 17): LsmVectorSearchPlanner::plan_search_with_probe_bounds has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2715dcff8715f469796ab9adb71abd946b0326c0a7e3c36f8f468f159f707e"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::fts_document_granularity (cyclomatic 17): Scanner::fts_document_granularity has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function items inside it that branch (visit, add_leaf). 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"405338dc866a4e43f7aefeb4ac3e1e756585df61b7c623fd6116e00ea225ce6f"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::calculate_final_projection (cyclomatic 17): Scanner::calculate_final_projection 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":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e108441e801240748af1088273d4a144b22f9cc9f51fec301b31d105bd6a585"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::scalar_indexed_scan (cyclomatic 17): Scanner::scalar_indexed_scan has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"349564021fad54241fa75a9be48b24905342d348bd9d6c97ba4fbc1bfd0d09e0"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::can_use_create_plan (cyclomatic 17): MergeInsertJob::can_use_create_plan has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"404350e3efda8266dbf036d4d4033059a65578997e4d7c2b076fad34f9c036ed"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeInsertJob::update_fragments::handle_fragment (cyclomatic 17): MergeInsertJob::update_fragments::handle_fragment has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (MergeInsertJob::update_fragments) 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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc496ae47b043d329e043b96a22784eed4f893074cd62de87d0e9f033d2cdead"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_delete_txn (cyclomatic 17): TransactionRebase::check_delete_txn 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c7a45a9d02d068a604f689ee4462223729571263009367863166c555b43677"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionRebase::check_data_overlay_txn (cyclomatic 17): TransactionRebase::check_data_overlay_txn 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bc708f184f4daf72e85242bfe75ee62505d2b60ded477f01a1ad5f6be7a415"}},{"ruleId":"D1","level":"warning","message":{"text":"FilteredReadExec::statistics_from_inputs (cyclomatic 17): FilteredReadExec::statistics_from_inputs 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3818}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ac432b92aadec7e8da0073a8c3930297c2a667a8e31c9193262a3b32ea372b"}},{"ruleId":"D1","level":"warning","message":{"text":"FragmentScanner::read_batch (cyclomatic 17): FragmentScanner::read_batch 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":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f2c1e91f71d9aee73afcc93a4e15a0a6997f037a62d1f34b754fd4b2ec19f2"}},{"ruleId":"D1","level":"warning","message":{"text":"FragmentScanner::extract_guarantees (cyclomatic 17): FragmentScanner::extract_guarantees 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":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5a9cb8d52894296d43dee2f3f2d0f4efc8a17bdc4ddeef52b36480afccfa13"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::mem_wal::scanner::exec::pk::compute_pk_hash (cyclomatic 17): lance::dataset::mem_wal::scanner::exec::pk::compute_pk_hash has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/exec/pk.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"195448c954123163f8446d8f5d907a1689c28cd255053d6b9ad9b1e28591b5b0"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::execution::can_use_binary_copy_current (cyclomatic 17): lance::dataset::optimize::execution::can_use_binary_copy_current 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":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad4f9ece8d553ef27b3fab24445397f610f76b15ea4053b32178beda31f9d69"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::optimize::remapping::remap_index_tagged (cyclomatic 17): lance::dataset::optimize::remapping::remap_index_tagged has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46f0fed9c441b679b6c68a31107e00b47937fa429a2d60b36dfa985dd592d5c"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::optimize::plan_optimize_indices_or_skip (cyclomatic 17): lance::index::optimize::plan_optimize_indices_or_skip 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":"rust/lance/src/index/optimize.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9f3a8226610d44db954113def3e647b1edcfdeac56ef7ee7d1f2d038070ef3"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::prepare_vector_segment_build (cyclomatic 17): lance::index::vector::prepare_vector_segment_build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4055094f4c194a6c0541087380ddaa9156ce30960eb232e086716c21fbc16e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::details::apply_runtime_hints (cyclomatic 17): lance::index::vector::details::apply_runtime_hints 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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1dbf15f5cf1dbd6812fb9765e4b0e43c769127cc50061a4756738b83c29caa"}},{"ruleId":"D1","level":"warning","message":{"text":"Field::do_intersection (cyclomatic 17): Field::do_intersection 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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6d7f102f238a15a0257d0a4409093911bdc9a77694429df3334b6e4e02a106"}},{"ruleId":"D1","level":"warning","message":{"text":"CompactRowAddrRemap::remap_in_place_by_fragment (cyclomatic 17): CompactRowAddrRemap::remap_in_place_by_fragment 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":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ab8e6db43ff215aeec769b356bbe8ca41dd145e9a19274c597ba57553aa6da"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::rewrite (cyclomatic 17): lance_datafusion::numeric_coercion::rewrite 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":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"8864f4d0ded543fb7e4ce08bd1ab783075165130fd3e87773f6586be6a1473a3"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreFieldDecoderStrategy::create_array_field_scheduler (cyclomatic 17): CoreFieldDecoderStrategy::create_array_field_scheduler 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b95a91fb0565a83c78cbc18eddc9efa55fba7c0759fa4a93667ff7f911b1f0"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanarPrimitiveEncoding::try_plan_pages (cyclomatic 17): PlanarPrimitiveEncoding::try_plan_pages has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/planar.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5771bd78d27dee1498217aca34df6540ade6475ffb6dc7c1f0d637e75706ea"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_file::concat::check_compatibility (cyclomatic 17): lance_file::concat::check_compatibility has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a59ae271ccaa67955682a80b0eeafebe4977887da199b718279b0b7869897e2"}},{"ruleId":"D1","level":"warning","message":{"text":"InvertedPartition::fetch_posting_lists (cyclomatic 17): InvertedPartition::fetch_posting_lists has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9c49e02ce70f557cefee56ac484997a043788cfdff4428278b61c48868785d"}},{"ruleId":"D1","level":"warning","message":{"text":"SargableQuery::to_expr (cyclomatic 17): SargableQuery::to_expr has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"410d7810d02ecc2d428cfbd6c0463ce3504b62bf307cbf71377a0baa40683529"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::scalar::inverted::wand::bounds::exclusive_partial_score_limit (cyclomatic 17): lance_index::scalar::inverted::wand::bounds::exclusive_partial_score_limit 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":"rust/lance-index/src/scalar/inverted/wand/bounds.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d6623a4fb7bef95a0847b8b58bafad8226589579348d84e313bf2a9f112a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::read_shard_window_partitions (cyclomatic 17): lance_index::vector::distributed::index_merger::read_shard_window_partitions 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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac739faad86f6ce1e04417337d4625f0eb8f2cf046ae6753d7acf1f363a3485"}},{"ruleId":"D1","level":"warning","message":{"text":"RawJsonb::partial_cmp (cyclomatic 17): RawJsonb::partial_cmp has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/raw.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d32a009f09c460ee6045ec94511b22b4fdb5f0c11914233587ed3ec357055e0"}},{"ruleId":"D1","level":"warning","message":{"text":"Value::fmt (cyclomatic 17): Value::fmt 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":"rust/lance-jsonb/src/value.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c8d792fb6f13c173ec0c1e4f38f1acc1dfa1ff2a99c48d46ede1bec33c1d31"}},{"ruleId":"D1","level":"warning","message":{"text":"ManifestNamespace::rewrite_manifest (cyclomatic 17): ManifestNamespace::rewrite_manifest 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b1d17406eed03dfa7763058a0c6183499fc9066ea5cef3cb9ddd510cbb647b"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryNamespace::apply_query_params_to_scanner (cyclomatic 17): DirectoryNamespace::apply_query_params_to_scanner has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/query.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f3184a629444eafbbab299cc204b6462a0bdfe6879e6989c0d2fd1b43d7b53"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_jni::transaction::inner_commit_to_uri (cyclomatic 16): lance_jni::transaction::inner_commit_to_uri has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"12456577e711ff5a824a1d59723e195f124b4557f45360f5db3435824a2d0113"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::commit_transaction (cyclomatic 16): Dataset::commit_transaction has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"7588385f578b5e219f22c13ebfd343b353fcfa5560563c26490d3a5256608524"}},{"ruleId":"D1","level":"warning","message":{"text":"MemTableBruteForceVectorExec::compute_topk (cyclomatic 16): MemTableBruteForceVectorExec::compute_topk 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3afea9ae6cc879bab714541e80379c6d58db74055d13849556968c9f2110ae"}},{"ruleId":"D1","level":"warning","message":{"text":"MemTableDedupScanExec::execute (cyclomatic 16): MemTableDedupScanExec::execute 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fbf0603f77ddd2fd911b9ddd707e5ea538b94d968b5fb89e241d389c8eae4c"}},{"ruleId":"D1","level":"warning","message":{"text":"CoalesceFirstStream::poll_next (cyclomatic 16): CoalesceFirstStream::poll_next 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":"rust/lance/src/dataset/mem_wal/scanner/exec/coalesce_first.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7e509432a9df5a0f4177473a950d3d6053d099b0a0be5cdd467177853a8f2b"}},{"ruleId":"D1","level":"warning","message":{"text":"LsmScanPlanner::plan_scan (cyclomatic 16): LsmScanPlanner::plan_scan has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3fcd2e1610dc4ba6004e4ad422d3b701088a0398fe1ea0cfd4ea202d226232"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::nearest (cyclomatic 16): Scanner::nearest 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":"rust/lance/src/dataset/scanner/builder.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc57eea3ef2b9e043e8c33d3d12f677737bd0087c2208229772c458c2a82a8a1"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::plan_fts (cyclomatic 16): Scanner::plan_fts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb0c3b3cee7291e9d73b4efb230bac99ac4d6dc37a9831170662dfee6b922d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner::create_filter_plan (cyclomatic 16): Scanner::create_filter_plan 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":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6b7207a4516c47a611a49a7fb9bc07333494e56a29745123491364f06c3e04"}},{"ruleId":"D1","level":"warning","message":{"text":"Dataset::load_manifest (cyclomatic 16): Dataset::load_manifest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded2bcc69271c22fe920b8abafd3d9e249773c287853187ab3362427aceb7bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"SeedHarvester::harvest (cyclomatic 16): SeedHarvester::harvest has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfa128f2bfef5411a091fcd18aa6ea2a1391b8b14a6f5953fb5592d1abde8d8"}},{"ruleId":"D1","level":"warning","message":{"text":"IvfIndexBuilder::build_partitions (cyclomatic 16): IvfIndexBuilder::build_partitions 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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cef3dbc24aabfc7911185e10b262dfcc044647e1dae0aff30c0e636ecd3f33b"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceStream::try_new_v2 (cyclomatic 16): LanceStream::try_new_v2 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":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5c575ceae39d55cd9c2ef535edac69e86335b3eee980100784ce5bef30509c"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::blob::clone::replace_array (cyclomatic 16): lance::dataset::blob::clone::replace_array has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/clone.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"601a3da1fcf9988d3a01859e35b99e1ce2adf9547a2262cc59727defd83a07e4"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::score_terms (cyclomatic 16): lance::dataset::mem_wal::index::fts::score_terms 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3339}}}],"partialFingerprints":{"codehealthFindingId/v1":"754af3b5caa51702ee22aaf57159e322c77444396cc785f60c55d68d986019ee"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::rowids::validate::validate_stable_row_ids (cyclomatic 16): lance::dataset::rowids::validate::validate_stable_row_ids 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":"rust/lance/src/dataset/rowids/validate.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aff6480a0d1385899bc879231335cef575378ef754f6ed8c79fd0047a6dcb7d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::dataset::scanner::fts::collect_fts_columns_in_order::visit (cyclomatic 16): lance::dataset::scanner::fts::collect_fts_columns_in_order::visit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d513c9bbdc146dda56b9fce7c3e5c34c0023deb53490675ea5a5b171ba5cebb2"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::lifecycle::build_index_metadata_from_segments (cyclomatic 16): lance::index::lifecycle::build_index_metadata_from_segments 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":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a13c67039e77f8d8f9d33bc00a89ef9f7c64c7a6d2e2e486a245aaa7d62374"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::build_vector_index_incremental (cyclomatic 16): lance::index::vector::build_vector_index_incremental 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"198b8bee70e2eca055cb999dfd3416e5cc9213e8232096c07e763cbff9f12882"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::ivf::train_ivf_model_from_sample (cyclomatic 16): lance::index::vector::ivf::train_ivf_model_from_sample has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb6ffcf9376db1f9b70f4192a85da002925bbdabc9f83b429ce30e3a0fa778d"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions (cyclomatic 16): lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fb3b7ae60185c1c376a088123c22ff637a88f23c0d69853adfdbe73eb7ac87"}},{"ruleId":"D1","level":"warning","message":{"text":"lance::index::vector::ivf::v2::partition_search::search_partitions_batch (cyclomatic 16): lance::index::vector::ivf::v2::partition_search::search_partitions_batch has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"61da1c38563d768e5b92ccca43bf72e50d1d50e4f0f6bb200bef5f75ba43f582"}},{"ruleId":"D1","level":"warning","message":{"text":"AimdConfig::validate (cyclomatic 16): AimdConfig::validate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/aimd.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6aca7ae8a0457a96553b65133f68db3e9802ea901c0d97dbffb1fdb99ca4bf"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::unwrap_node (cyclomatic 16): lance_datafusion::numeric_coercion::unwrap_node 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":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"e490c439bdb371f379cf1f19052c25f9731612ef9040a2dadf01d5f75e2a3e0a"}},{"ruleId":"D1","level":"warning","message":{"text":"DictionaryDataBlock::gather_fixed_width (cyclomatic 16): DictionaryDataBlock::gather_fixed_width 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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d776c04e1186a48bfc8ea2e026f043e3e47ff3e48da6d11920b894d297f44f"}},{"ruleId":"D1","level":"warning","message":{"text":"AccumulationQueue::insert_with_pages (cyclomatic 16): AccumulationQueue::insert_with_pages 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":"rust/lance-encoding/src/utils/accumulation.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d05ca2201008c9341cb085670c36c7127f21ab9c1b1cfe3401a39e3e134c088"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::parse_header (cyclomatic 16): lance_encoding::encodings::physical::alp::parse_header has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff7d14be054ae5c281886127f3cf0b7b88ff9c4c0cf4710123c1702be684f08"}},{"ruleId":"D1","level":"warning","message":{"text":"BTreeIndex::search_with_options (cyclomatic 16): BTreeIndex::search_with_options 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. This is NOT this file\u0027s highest cyclomatic complexity: BTreeLookup::candidate_pages_for_values (cyclomatic 21) 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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c36d87c9a585691bf57a55c5fa914e9c0c6afa6a465f3241cf768721811c40a"}},{"ruleId":"D1","level":"warning","message":{"text":"ShouldMaxScoreScorer::ensure_confirmed (cyclomatic 16): ShouldMaxScoreScorer::ensure_confirmed 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":"rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae0def89598cc69056d7ae0b9064a4966013723e02de3b339636e03ca124f40"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonIndexPlugin::convert_batch_by_type (cyclomatic 16): JsonIndexPlugin::convert_batch_by_type 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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce64b9ec65bc0dec26a64c9695a2ab87c5a967c6385726f8ee71ec17f0159a2"}},{"ruleId":"D1","level":"warning","message":{"text":"RQTransformer::transform (cyclomatic 16): RQTransformer::transform 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":"rust/lance-index/src/vector/bq/transform.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf65ac9c38ea8538dbe73d7b710ef6dc4936e5bd3f82668fa7740b6531b09fb"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_index::vector::bq::ex_dot::pack_block (cyclomatic 16): lance_index::vector::bq::ex_dot::pack_block has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18d463850d263e664ee520a2a325aeb3dfb1cab5f1145154c602e06e3f71d12"}},{"ruleId":"D1","level":"warning","message":{"text":"OwnedJsonb::from_item (cyclomatic 16): OwnedJsonb::from_item 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. This is NOT this file\u0027s highest cyclomatic complexity: Number::decode (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa21267ddc075e77c576aa1b5a4f6d4be93fde15cb047fd1311c04994f401a2"}},{"ruleId":"D1","level":"warning","message":{"text":"lance_table::feature_flags::apply_feature_flags (cyclomatic 16): lance_table::feature_flags::apply_feature_flags has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/feature_flags.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c411a5215687880b4f939ad705ad371e946fb1157afe331e3940c8e6636d60"}},{"ruleId":"D1","level":"warning","message":{"text":"WriteDatasetBuilder.execute (cyclomatic 16): WriteDatasetBuilder.execute has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/WriteDatasetBuilder.java"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ccf5d6e89b76cf1a9c43a789e1cdf9e1c1db278537035f8048bec1d19faf94"}},{"ruleId":"D1","level":"warning","message":{"text":"lance.dataset (cyclomatic 16): lance.dataset 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":"python/python/lance/__init__.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e099770ded1a7133112e390d086a9076040e7d4697a3dd2fdb27fca176bfa85"}},{"ruleId":"D1","level":"warning","message":{"text":"pydantic.is_nullable (cyclomatic 16): pydantic.is_nullable 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":"python/python/lance/pydantic.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4ffc930721a86969a5826748e6cc1774f62dc6464249ea4a3b3a272322c7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"maintain.load_job (cyclomatic 16): maintain.load_job 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":"skills/lance-table-maintenance/scripts/maintain.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbb3e4cd0dd4a9439967a8dbe53f1c8b6524903803f4fb76e0bdbaa387e1297"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::maxscore_search (cognitive 513): Wand::maxscore_search has cognitive complexity 513 (threshold 15). Drivers by points: if/else 80 (392 pts), loops 20 (76 pts), match/switch 14 (23 pts), boolean chains 22 (nesting depth added 377). 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":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"99585179b048ca903650bb2208822b42e7c0063c03749cc330efda58a4dbcc96"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::build_manifest_prepared (cognitive 377): Transaction::build_manifest_prepared has cognitive complexity 377 (threshold 15). Drivers by points: if/else 110 (243 pts), loops 34 (84 pts), boolean chains 33, match/switch 10 (17 pts) (nesting depth added 190). 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":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e443d60e0b9322b131ad2325e647f68b71ea815deb1ed44aabbb4f2f16f1909"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner (cognitive 308): lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner has cognitive complexity 308 (threshold 15). Drivers by points: if/else 101 (257 pts), match/switch 8 (21 pts), loops 8 (16 pts), boolean chains 14 (nesting depth added 177). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"196f87ab2a0504a10b914da395aa5b6a19fdc70e40b3ed2abda97a81fc455773"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::and_bulk_search (cognitive 193): Wand::and_bulk_search has cognitive complexity 193 (threshold 15). Drivers by points: if/else 86 (220 pts), loops 33 (65 pts), match/switch 8 (24 pts), boolean chains 9 (nesting depth added 182). To reduce it, split the body into named stages: move each independent 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 (Wand::and_bulk_search::merge_window_docs_pairwise) 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":"rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c95efced29c2684c2b61dcc9612e79ca3d8932da4f04c651269ed9f87a086f"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderableScalarValue::cmp (cognitive 144): OrderableScalarValue::cmp has cognitive complexity 144 (threshold 15). Drivers by points: if/else 90 (135 pts), match/switch 4 (5 pts), boolean chains 4 (nesting depth added 46). 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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e5896bf598e6ecf024481f184ceb4f235650fa7ab47e9be3c27ee58667351d"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_create_index_txn (cognitive 135): TransactionRebase::check_create_index_txn has cognitive complexity 135 (threshold 15). Drivers by points: if/else 32 (93 pts), boolean chains 20, loops 5 (20 pts), match/switch 1 (2 pts) (nesting depth added 77). 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":"rust/lance/src/io/commit/conflict_resolver/check/create_index.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fe5ea0d97199feec27bf1e586898ad398e1887ebf7847d695742934c69a786"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceDataset._create_index_impl (cognitive 134): LanceDataset._create_index_impl has cognitive complexity 134 (threshold 15). Drivers by points: if/else 56 (112 pts), boolean chains 20, error handling 1, loops 1 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ea535c507763f4a7ca0a95dc531faedf269256a2cbfaffb8cfbbc376da2a39"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoneMapIndex::evaluate_zone_against_query (cognitive 129): ZoneMapIndex::evaluate_zone_against_query has cognitive complexity 129 (threshold 15). Drivers by points: if/else 45 (91 pts), match/switch 11 (25 pts), boolean chains 13 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9700e7043c4155c2c8226bc746acdf506019541a3fc6a8c9c24d82c2f71001"}},{"ruleId":"D2","level":"warning","message":{"text":"DecodeMiniBlockTask::map_range (cognitive 128): DecodeMiniBlockTask::map_range has cognitive complexity 128 (threshold 15). Drivers by points: if/else 33 (107 pts), loops 5 (19 pts), match/switch 1 (2 pts) (nesting depth added 89). 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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f83426ef068225b8f6d174ae3c2134d6635e1f2e2b33cc51650adfcbf979a92"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::scanner (cognitive 122): Dataset::scanner has cognitive complexity 122 (threshold 15). Drivers by points: if/else 65 (102 pts), match/switch 8 (19 pts), boolean chains 1 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3ce224b3bad873ee9aafc549c208b5c732bc43a078d2b8d0cd3e04efe3cfd4"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_rewrite_txn (cognitive 119): TransactionRebase::check_rewrite_txn has cognitive complexity 119 (threshold 15). Drivers by points: if/else 24 (74 pts), loops 8 (35 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 80). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check/rewrite.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07fc2054bdf0ae28bff5eb28b133210cd2e0f710f690bf7eaa70c88f246ce19"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::binary_copy::rewrite_files_binary_copy (cognitive 108): lance::dataset::optimize::binary_copy::rewrite_files_binary_copy has cognitive complexity 108 (threshold 15). Drivers by points: if/else 18 (61 pts), loops 11 (45 pts), boolean chains 2 (nesting depth added 77). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63dd3199fa672dbac9673d8b95093209fce1a53161cbe1bd3576d307eb58bca"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::vector_search (cognitive 106): Scanner::vector_search has cognitive complexity 106 (threshold 15). Drivers by points: if/else 42 (83 pts), match/switch 5 (16 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2f0f430ed89af6520cf18a67679d3850be1a94dfd188666624db4c7e7db179"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_update_txn (cognitive 105): TransactionRebase::check_update_txn has cognitive complexity 105 (threshold 15). Drivers by points: if/else 25 (82 pts), loops 5 (16 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54578a0a801940e2fc2716b2103b8c2ba6edd20870a3b95be80ef2934bf7d85"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::complete_maxscore_single_essential (cognitive 103): Wand::complete_maxscore_single_essential has cognitive complexity 103 (threshold 15). Drivers by points: if/else 28 (70 pts), loops 10 (23 pts), boolean chains 10 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64115cb872a751daaaea127c216ae8fa187c9c6575d0969655ed998cd64ba9b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::append::merge_indices_with_unindexed_frags (cognitive 98): lance::index::append::merge_indices_with_unindexed_frags has cognitive complexity 98 (threshold 15). Drivers by points: if/else 31 (68 pts), boolean chains 13, loops 5 (11 pts), match/switch 2 (6 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6c37bb3198a1604188f0ae8a7334f81e02dac6260468f03fb4988369b64d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_json_number (cognitive 96): Parser::parse_json_number has cognitive complexity 96 (threshold 15). Drivers by points: if/else 40 (84 pts), boolean chains 6, match/switch 2 (4 pts), loops 2 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/parser.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f850345d9f5162bb1f4c042f78a9ab36166bc58ffd8a24016768c653cc384a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_data_replacement_txn (cognitive 95): TransactionRebase::check_data_replacement_txn has cognitive complexity 95 (threshold 15). Drivers by points: if/else 11 (45 pts), loops 12 (44 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"07292aeb891918b821ac53b8ce9b0ca45be88b185547b74c8aeaf446351359c7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::do_write_fragments_impl (cognitive 91): lance::dataset::write::do_write_fragments_impl has cognitive complexity 91 (threshold 15). Drivers by points: if/else 29 (79 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"2887494a9b09cfdfb5a0aab268f58ffa50850851215f7d12a84076e72c690e02"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::graph::beam_search_acorn (cognitive 89): lance_index::vector::graph::beam_search_acorn has cognitive complexity 89 (threshold 15). Drivers by points: if/else 22 (71 pts), loops 6 (15 pts), boolean chains 3 (nesting depth added 58). 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":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9f6424cee539d0166f430ca741901a5ecc5848379dd9e69072f170b8a78e44"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateIndexBuilder::execute_uncommitted_impl (cognitive 85): CreateIndexBuilder::execute_uncommitted_impl has cognitive complexity 85 (threshold 15). Drivers by points: if/else 47 (70 pts), boolean chains 8, match/switch 3 (5 pts), loops 1 (2 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":"rust/lance/src/index/create.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4668da10e6edc6f8bd17feb25068c721579cfea41d189f5ad7c51b5b2e4ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::build_frag_reuse_rewrite_entry (cognitive 79): lance::index::frag_reuse::build_frag_reuse_rewrite_entry has cognitive complexity 79 (threshold 15). Drivers by points: if/else 26 (56 pts), loops 10 (14 pts), boolean chains 5, match/switch 2 (4 pts) (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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b96ba17d388d96cc09ddec06a76f5ef7880d97dfaa7048e8949554036c422f"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::cleanup_file_if_not_referenced (cognitive 78): CleanupTask::cleanup_file_if_not_referenced has cognitive complexity 78 (threshold 15). Drivers by points: if/else 45 (71 pts), boolean chains 6, match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7a9c93d7463bb36050d70642a5f2a759851ff9b8c2900110f75d348d10c9b7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::v2::partition_search::search_partitions (cognitive 78): lance::index::vector::ivf::v2::partition_search::search_partitions has cognitive complexity 78 (threshold 15). Drivers by points: if/else 20 (45 pts), match/switch 5 (14 pts), loops 6 (12 pts), boolean chains 7 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee2336cad72613dabbd6d8c12e591725f14ed0b120f4235320c836fdf2301b1"}},{"ruleId":"D2","level":"warning","message":{"text":"RowIdSequence::mask_to_offset_ranges (cognitive 78): RowIdSequence::mask_to_offset_ranges has cognitive complexity 78 (threshold 15). Drivers by points: if/else 14 (48 pts), loops 8 (23 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 53). 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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"4705f1f61ab3d7d4839b1768a53230e90959253d3b480e42c0bbb60ba078f7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchRefineExec::refine (cognitive 76): BatchRefineExec::refine has cognitive complexity 76 (threshold 15). Drivers by points: if/else 11 (51 pts), loops 8 (23 pts), boolean chains 2 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/refine.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"98655fd7ac53ea6a3744ba0d5ec34e936e07927217a459d0ebe7817ded64f6d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Branches::cleanup_branch_directories (cognitive 75): Branches::cleanup_branch_directories has cognitive complexity 75 (threshold 15). Drivers by points: if/else 22 (49 pts), match/switch 7 (16 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dd9b8ccb8c897d30b6eadcd476a5348cf1e755085347891c92bf9f049244d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Merger::execute_batch (cognitive 75): Merger::execute_batch has cognitive complexity 75 (threshold 15). Drivers by points: if/else 22 (52 pts), match/switch 6 (12 pts), loops 4 (11 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/merger.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"123bd404c9390f5f9e9c9ef8694dc9a7373900ac997d4574ffdcb4697666ff22"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::commit_transaction (cognitive 75): lance::io::commit::commit_transaction has cognitive complexity 75 (threshold 15). Drivers by points: if/else 26 (52 pts), match/switch 5 (13 pts), boolean chains 6, loops 2 (4 pts) (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":"rust/lance/src/io/commit.rs"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ec4c29b271dd011d6bbd8a898bdb1a4a079bef7e50488e7c42aa79a004034"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableFullZipDecoder::unzip (cognitive 75): VariableFullZipDecoder::unzip has cognitive complexity 75 (threshold 15). Drivers by points: if/else 27 (55 pts), loops 6 (17 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67cabbf06f6d380c710b8047fcba830acbea6faebd8a09b1a4043846ba39a04"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::finish_create_index (cognitive 74): TransactionRebase::finish_create_index has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (46 pts), loops 5 (15 pts), boolean chains 7, match/switch 2 (6 pts) (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f911b6b1266feea70a1b2025cb75fddacc13d28d02a9944820f997fb07aa0ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::write::replay::replay_memtable_from_wal (cognitive 73): lance::dataset::mem_wal::write::replay::replay_memtable_from_wal has cognitive complexity 73 (threshold 15). Drivers by points: if/else 14 (52 pts), loops 3 (12 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/replay.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f910c3f7911a99783139bc28c93aba4901f7d2659dc81bdc77956e104093b80f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion_exec::expr::safe_coerce_scalar (cognitive 71): lance_datafusion_exec::expr::safe_coerce_scalar has cognitive complexity 71 (threshold 15). Drivers by points: match/switch 36 (55 pts), if/else 8 (16 pts) (nesting depth added 27). 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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c51a20245619793d540307c468cda4954eb5c2ac0ca41f9a79e19dba5a4cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultCompactionPlanner::plan_groups_with_budget (cognitive 70): DefaultCompactionPlanner::plan_groups_with_budget has cognitive complexity 70 (threshold 15). Drivers by points: if/else 23 (42 pts), loops 10 (20 pts), boolean chains 8 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"55930090e8f9c83f0a6e2ef4c8844d5ca538b535e676235275d33bba5bac6a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::filter_addr_or_ids (cognitive 69): Dataset::filter_addr_or_ids has cognitive complexity 69 (threshold 15). Drivers by points: if/else 19 (52 pts), loops 5 (16 pts), boolean chains 1 (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":3643}}}],"partialFingerprints":{"codehealthFindingId/v1":"067448e2941ea7d5eaa1b9ad1b5cab4f7c58ff7e9be4b2e4e48647c56f812e88"}},{"ruleId":"D2","level":"warning","message":{"text":"FilteredReadStream::plan_scan (cognitive 68): FilteredReadStream::plan_scan has cognitive complexity 68 (threshold 15). Drivers by points: if/else 27 (61 pts), boolean chains 5, loops 2 (nesting depth added 34). 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6614a74ae58044350db2e4330320f1e9d9551466a780df49c86b60d74ee84c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReqOptScorer::position (cognitive 66): ReqOptScorer::position has cognitive complexity 66 (threshold 15). Drivers by points: if/else 15 (60 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada4c1a1defa8ae8ef03dd6816a34d0e3409777e2dac2e9bd4f8b3bbc6563249"}},{"ruleId":"D2","level":"warning","message":{"text":"PQDistCalculator::accumulate_topk_with_scratch (cognitive 66): PQDistCalculator::accumulate_topk_with_scratch has cognitive complexity 66 (threshold 15). Drivers by points: if/else 24 (42 pts), loops 5 (11 pts), boolean chains 9, match/switch 1 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae768f345e226325425735c103b5b604f528c2c9f7711f4fff9f830d06326708"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::next_and_candidate (cognitive 65): Wand::next_and_candidate has cognitive complexity 65 (threshold 15). Drivers by points: if/else 20 (56 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/conjunction.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a188f55bb188fb6eb8520cda2bebf1cb0f9efaa30cd7802c168cd257ac1dfe65"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::describe_table_impl (cognitive 64): DirectoryNamespace::describe_table_impl has cognitive complexity 64 (threshold 15). Drivers by points: if/else 36 (55 pts), boolean chains 6, match/switch 2 (3 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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceb07564f1efe8e116f02602a6d38a0599a668928036c512414d184c07560d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::search (cognitive 63): Wand::search has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (54 pts), boolean chains 8, loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88ec41b8efcd7307b1ec59ed405443fe9932f8061b4e987a8e7b648ade2bf68"}},{"ruleId":"D2","level":"warning","message":{"text":"PackedStructVariablePerValueDecompressor::decompress (cognitive 62): PackedStructVariablePerValueDecompressor::decompress has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 5 (11 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea5b0c75c02a0904aeb5fd1601c2582234d5113885d93e5ab14bd95d8eec20b"}},{"ruleId":"D2","level":"warning","message":{"text":"pylance::dataset::write::get_write_params (cognitive 61): pylance::dataset::write::get_write_params has cognitive complexity 61 (threshold 15). Drivers by points: if/else 29 (49 pts), loops 3 (9 pts), boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/write.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca103a684bfe2ba16f553c09930671a1610b841aba35fc9abb15d3ffb69c24d"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsMemIndex::to_index_builder (cognitive 61): FtsMemIndex::to_index_builder has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 14 (23 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7275242ae16c0f8443f685dac11aa126ae97e1b0db2a31c2e74ceecdf64956e"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactRowAddrRemap::remap_in_place_by_fragment (cognitive 60): CompactRowAddrRemap::remap_in_place_by_fragment has cognitive complexity 60 (threshold 15). Drivers by points: if/else 8 (32 pts), loops 6 (25 pts), match/switch 1 (3 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7c096ee3717467e8c5eb85d8f8de13140e1084d54d7679e3662d33a9bae4a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::create_index (cognitive 58): Dataset::create_index has cognitive complexity 58 (threshold 15). Drivers by points: if/else 30 (49 pts), match/switch 3 (4 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b6768836e4d7a17d7d02bb934163ab548db2dc33dce83c0a15dfbd2edacad3"}},{"ruleId":"D2","level":"warning","message":{"text":"Planner::parse_sql_expr (cognitive 58): Planner::parse_sql_expr has cognitive complexity 58 (threshold 15). Drivers by points: if/else 12 (27 pts), match/switch 12 (24 pts), loops 3 (7 pts) (nesting depth added 31). 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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d8e8dc6a2facd1b984d0054a587a8ea2ab9ddfee620d2e666ed7985bc37b9d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::commit::commit_compaction (cognitive 56): lance::dataset::optimize::commit::commit_compaction has cognitive complexity 56 (threshold 15). Drivers by points: if/else 29 (40 pts), boolean chains 7, match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/commit.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9bd60cde9000aa836c7820983db82360d6fb5291e1c0702ed1a4038f385064"}},{"ruleId":"D2","level":"warning","message":{"text":"BitpackedPageDecoder::decode (cognitive 56): BitpackedPageDecoder::decode has cognitive complexity 56 (threshold 15). Drivers by points: if/else 9 (35 pts), loops 5 (15 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/physical/bitpack.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae08008042c4edf522097f243bf23dbb38a027b6a82a0ee2fa27f4ccc0b929"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::do_commit_new_dataset (cognitive 55): lance::io::commit::do_commit_new_dataset has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (39 pts), loops 3 (9 pts), match/switch 4 (7 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b40e35dd8bad30d2aa3fdb00413bd735a2dffa2bd7ddc20096f28dd54b0a8e6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::encode_chunk_f64_rd (cognitive 55): lance_encoding::encodings::physical::alp::encode_chunk_f64_rd has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 11 (26 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94491f36a9268e33787c64c3e89da8881ed90bb4ecc9f4d1b43d52188f47db1"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::append::merge_scalar_indices (cognitive 54): lance::index::append::merge_scalar_indices has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 12, loops 2 (5 pts), match/switch 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c80aad9be8667e8aee2728cc04f4233507810e87761190b778ffe9039d727f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::substrait::normalize_expr (cognitive 54): lance_datafusion::substrait::normalize_expr has cognitive complexity 54 (threshold 15). Drivers by points: loops 11 (26 pts), if/else 6 (14 pts), match/switch 6 (14 pts) (nesting depth added 31). 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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0dd2e14f04e03ca3be4f0c484c7536ec31f16d8512932f1019d6301cc2161b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row (cognitive 54): lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (44 pts), boolean chains 6, match/switch 1 (3 pts), loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0cd6e92b9e1d5c49d982e722d629b7ba417ffdeeec54ff543a619b67bc098c"}},{"ruleId":"D2","level":"warning","message":{"text":"pylance::dataset::prepare_vector_index_params (cognitive 53): pylance::dataset::prepare_vector_index_params has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (46 pts), match/switch 3 (6 pts), boolean chains 1 (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":"python/src/dataset.rs"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56df01c44cacdc4ee0382fc608fe5c4d4ef80ff7701abc3bcf93b272efe73da"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobPreprocessor::logical_to_prepared_blob_array (cognitive 53): BlobPreprocessor::logical_to_prepared_blob_array has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (47 pts), boolean chains 5, loops 1 (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":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd7c10e037e0829f966dc8465aecbeb075f0bd66c55cc13174da88615132b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::delete_unreferenced_files (cognitive 53): CleanupTask::delete_unreferenced_files has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 5 (11 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2081cc6a4cce84e6abf22b36a45807619d105c5178cd8790a5c571b3015fe3e0"}},{"ruleId":"D2","level":"warning","message":{"text":"KNNVectorDistanceExec::execute_batch (cognitive 52): KNNVectorDistanceExec::execute_batch has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc5632bb4064565b98040c3be140589013060c489b8c16760097d56b42f1123"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkInstructions::schedule_instructions (cognitive 52): ChunkInstructions::schedule_instructions has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (41 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"6432e516abee5e37b800cb25e16019f28e178670296cccdb8b6fbc9a71587958"}},{"ruleId":"D2","level":"warning","message":{"text":"RleEncoder::encode_chunk_rolling_slice (cognitive 52): RleEncoder::encode_chunk_rolling_slice has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (45 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"7811fc1605bbfe6bc6a9be9455559e70d141742b1f935418aed9c4a4cb56c93b"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmVectorSearchPlanner::build_knn_plan (cognitive 51): LsmVectorSearchPlanner::build_knn_plan has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (35 pts), match/switch 8 (15 pts), boolean chains 1 (nesting depth added 24). 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":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e85f057abff34621d632fd246f0afe901a52c86b26fb340fc7199f333ff44a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::index::frag_reuse::compute_tagged_retention (cognitive 51): lance::dataset::index::frag_reuse::compute_tagged_retention has cognitive complexity 51 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 10 (17 pts), match/switch 4 (7 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc45da4cc0271cba6c3f5cc97a1d173509cdaf19bb65e0bf109be60b5e58c2"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::zonemap::validate_seed (cognitive 51): lance_index::scalar::zonemap::validate_seed has cognitive complexity 51 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 10, match/switch 3 (5 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49a10c4f757cdbeaccf344fae55b92de0091784a7c9a37fc3028df54c229f28"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_io::uring::thread::run_uring_thread (cognitive 51): lance_io::uring::thread::run_uring_thread has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (34 pts), match/switch 3 (9 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/thread.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"020681b3483a52adc5bb19daa0c7d8d354144f150c467db92856d5f9ada89688"}},{"ruleId":"D2","level":"warning","message":{"text":"fsst::fsst::build_symbol_table (cognitive 50): fsst::fsst::build_symbol_table has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 11 (15 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc4066596e11bc42f6c9b7a6ebff8da5fed9d1f75219ba4db670c9f454e0695"}},{"ruleId":"D2","level":"warning","message":{"text":"ScalarMemIndexExec::read_rows (cognitive 50): ScalarMemIndexExec::read_rows has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (33 pts), match/switch 4 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scalar_index.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e95cd792d124029fd6c4f1cd39c3448c0875d6354b6ea33ef1cacb6f64aa8b"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::analyze_report (cognitive 50): MergeInsertJob::analyze_report has cognitive complexity 50 (threshold 15). Drivers by points: if/else 27 (34 pts), match/switch 4 (8 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 12). 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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c227e2b452f451595ad16b2ad69358d7896dc391d3a97912bf6247a0292aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::axis_delta::x86_64::transform_width (cognitive 50): lance_encoding::encodings::physical::axis_delta::x86_64::transform_width has cognitive complexity 50 (threshold 15). Drivers by points: loops 10 (29 pts), if/else 10 (18 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 28). 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":"rust/lance-encoding/src/encodings/physical/axis_delta/x86_64.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8974905484d122871ac66489427eb7654d3c0bfae0c9ffb30a8c1e34dde3930d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::execution::rewrite_files (cognitive 49): lance::dataset::optimize::execution::rewrite_files has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 8, match/switch 4 (6 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f6ed17b531b2c6c0674eb0b481fbac0c45417fdec4c7a445d0d8ef06fd3ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::alter_transaction (cognitive 49): DirectoryNamespace::alter_transaction has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 3 (9 pts), boolean chains 6, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"693a781b8e32efcb29af32c17b73e0479d98b8880aa3edf4a17aee88c97158fe"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::provenance::fresh_fragments (cognitive 48): lance::index::provenance::fresh_fragments has cognitive complexity 48 (threshold 15). Drivers by points: loops 8 (17 pts), match/switch 5 (17 pts), if/else 5 (14 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/provenance.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6676106bf21552bc27efb22f43b97606fa13e758976928112ac3209b90ee0f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::finish_rewrite (cognitive 47): TransactionRebase::finish_rewrite has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (33 pts), match/switch 4 (11 pts), boolean chains 3 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a361ded6bec3c1f2f3fbaf1f4987b5d962c2e871a783252f926458ad05828d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::exec::knn::batch_probe::late_search (cognitive 47): lance::io::exec::knn::batch_probe::late_search has cognitive complexity 47 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 9 (21 pts), boolean chains 5 (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":"rust/lance/src/io/exec/knn/batch_probe.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f12d347aa241b9d256d570ccbb060b73242fa9b70a1d6573781738c081c3f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::transaction::convert_to_rust_operation (cognitive 46): lance_jni::transaction::convert_to_rust_operation has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (33 pts), match/switch 3 (7 pts), loops 2 (6 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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e47a7acd42a45bfdd5cfe11dc39024fbe188e4aa3ecd43cbcd17b7e455b60ab"}},{"ruleId":"D2","level":"warning","message":{"text":"CompoundQueryExec::execute (cognitive 46): CompoundQueryExec::execute has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (29 pts), match/switch 5 (12 pts), boolean chains 5 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea92eb5a289cccd815fd92a31432e27681b68e3913b6d836ea4ff770e4cb94e0"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexWorker::process_document (cognitive 46): IndexWorker::process_document has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 4 (8 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ed664d3c976351aead9aea6de6ffeae6f6e26b95350297c43b475f22eab5be"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::prefilter_source (cognitive 45): Scanner::prefilter_source has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 9 (nesting depth added 21). 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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9401cb5d76c7e25496212eac030b6ac04b4884b480c9f554220970aacceb9eff"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::execute_uncommitted_impl (cognitive 45): MergeInsertJob::execute_uncommitted_impl has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (30 pts), loops 3 (9 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"619b192e073bc64cec6034c6766448cf2c4ebeb15ca14e2aa4a3131f26b65e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::schema_evolution::alter_columns (cognitive 45): lance::dataset::schema_evolution::alter_columns has cognitive complexity 45 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bdbcd2bf7a35efe3d4de0599af581015b745ea4a3bcf3d7db323768b729217"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::consolidate::validate_commit (cognitive 45): lance::index::optimize::consolidate::validate_commit has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (35 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"760d10029fc87c879b2c27af66c18d43a8f6a8611636782b1db0077b2aa0ada7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::provenance::prune_stale_segment_coverage (cognitive 45): lance::index::provenance::prune_stale_segment_coverage has cognitive complexity 45 (threshold 15). Drivers by points: if/else 6 (26 pts), loops 5 (12 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/provenance.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c50a079af5439943dbc217775a36a729634dc586982847ee5900bc87ab95b2"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::builder::merge_partitions (cognitive 45): lance::index::vector::builder::merge_partitions has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 3 (7 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f014a1298d1ab92e4ab87379882f0a41945d127250c41a1809fc66968dd843a"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingIterator::merge_optional_freqs (cognitive 45): PostingIterator::merge_optional_freqs has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 4 (8 pts), match/switch 5 (6 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b01181aeb04803aa4456518d32b3c8e601c1beccade279b1c4ab4c92b060024"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::update_fragments (cognitive 44): MergeInsertJob::update_fragments has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27 (58 pts), loops 13 (33 pts), match/switch 4 (9 pts), boolean chains 2 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MergeInsertJob::update_fragments::handle_fragment) 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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea3608a057297660bd8d1fef4e07a9643a32809b2e6069680dd0946606de8a0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::train_weighted_hierarchical_kmeans (cognitive 44): lance::index::vector::ivf::train_weighted_hierarchical_kmeans has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 7 (10 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5435c8566e09c63c97482b1cf2a84f3add11ea648f5c800e3c4b60112526388"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::exec::count_pushdown::try_rewrite (cognitive 44): lance::io::exec::count_pushdown::try_rewrite has cognitive complexity 44 (threshold 15). Drivers by points: if/else 25 (36 pts), match/switch 4, boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/count_pushdown.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeddf571df3dd0602c87e788c9007c1412226527b852e1dde868b3f6986328c4"}},{"ruleId":"D2","level":"warning","message":{"text":"DecodeMiniBlockTask::decode (cognitive 44): DecodeMiniBlockTask::decode has cognitive complexity 44 (threshold 15). Drivers by points: loops 7 (21 pts), if/else 11 (14 pts), boolean chains 7, match/switch 1 (2 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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40efa6d983397e151ea5c1a56f077e8e8a7e35ff1d9a5fb970f6ae683b6078e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::sparse::planar::encode (cognitive 44): lance_encoding::encodings::logical::primitive::sparse::planar::encode has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 9, match/switch 3 (5 pts) (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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f4635d747b2b923517ca87e4dd674016a13f2c828943bd5446e7e2172ea886"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2 (cognitive 44): lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2 has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 6 (14 pts), boolean chains 4 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb124c750d5750bd6cae04f01acc8f8d169070eb9dc9ee1531f2fa58cfebf80f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2 (cognitive 44): lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2 has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 6 (14 pts), boolean chains 4 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"f201ac6d76bcd04c1886961d909112aef561b1e240fba506ede0e6107275caf9"}},{"ruleId":"D2","level":"warning","message":{"text":"CompoundScorerPlan::analyze_node (cognitive 44): CompoundScorerPlan::analyze_node has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 7 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 23). 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c512343aa0d1ac0f2b81f8d364767975c256c951cb5c1109308b3a05b9bf483"}},{"ruleId":"D2","level":"warning","message":{"text":"CommitBuilder::execute_inner (cognitive 43): CommitBuilder::execute_inner has cognitive complexity 43 (threshold 15). Drivers by points: if/else 25 (33 pts), match/switch 5 (6 pts), boolean chains 4 (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":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55eec3164f91eea0fba3186582532631af35e7bfaabf935453dcb1d12058304"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::transaction::row_version::resolve_update_version_metadata (cognitive 43): lance_table::transaction::row_version::resolve_update_version_metadata has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 4 (8 pts), match/switch 3 (6 pts), boolean chains 1 (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":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"024478a3c25c79f9e0c915d072c551293735ca552c29cccaa197bbf7f0a53d99"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::scalar::index_matches_criteria (cognitive 42): lance::index::scalar::index_matches_criteria has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar.rs"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"152c77c0b89872f28d36fa610902c46bb4da6ee5847228c47e036463d2c25a15"}},{"ruleId":"D2","level":"warning","message":{"text":"Number::cmp (cognitive 42): Number::cmp has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (41 pts), match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c45b475d758aca050282ebac992dcb7597285ea3eeb8b353152169f90f33d42"}},{"ruleId":"D2","level":"warning","message":{"text":"pylance::scanner::vector_query_params_from_dict (cognitive 41): pylance::scanner::vector_query_params_from_dict has cognitive complexity 41 (threshold 15). Drivers by points: if/else 29 (36 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/scanner.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"395af2951a904e339c280f1d91f1bf8ac8b1a61877e4627b95cd7d6e43c52ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"SequenceCursor::fill (cognitive 41): SequenceCursor::fill has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7cdacf39e8887e0d4b5ea8d2c100933288e4d2b3a918be6246112d5262ed2a"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::scalar_index_info_with_plugins (cognitive 41): Dataset::scalar_index_info_with_plugins has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (30 pts), match/switch 2 (5 pts), boolean chains 4, loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a69a287367606d5d353924e0bb0844e0a543ec9e635968a0d645d27c2eb207"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::take::do_take_rows (cognitive 41): lance::dataset::take::do_take_rows has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (35 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/take.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71259e758e33d66be1fd0e839031c2c82a0f6b63e34f2c0b3c3a2ac4d2594c5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::seeds::seed_writers_for (cognitive 41): lance::dataset::write::seeds::seed_writers_for has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (30 pts), match/switch 2 (7 pts), boolean chains 2, loops 2 (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":"rust/lance/src/dataset/write/seeds.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7146f8b751fc74eef85a2f591d489f4fc8cc37c1a230be48f42f7b966cf2bc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::next (cognitive 41): Wand::next has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/disjunction.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14736ac375689452e4bbfa0fa89fc15ec1bbf8cdb6f1b50f321f9b05804c0e2"}},{"ruleId":"D2","level":"warning","message":{"text":"RowAddrMask::for_each_selected (cognitive 41): RowAddrMask::for_each_selected has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 5 (13 pts), boolean chains 2, match/switch 2 (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":"rust/lance-select/src/mask.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8715e3cc50dba1d3ad22a7326ce5f38ceb852728ae7bdf955cf99b040012b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceDataset._prepare_scalar_index_request (cognitive 41): LanceDataset._prepare_scalar_index_request has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 7 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"13483ba41c79cb5115594c730e7ef862f5d321a89bdef03e5c64f5d691cd4fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::encode_dense_page (cognitive 40): PrimitiveStructuralEncoder::encode_dense_page has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (28 pts), match/switch 4 (8 pts), boolean chains 4 (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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"88db685eb834152de82d4d52fa23e918f440b395e54e8dac088f5d3350c3547e"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchedPostings::into_loaded (cognitive 40): FetchedPostings::into_loaded has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 4 (8 pts), boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1f2ca73076b33b4a7b6316cb68fa0d106ab9267b116c1c28f6e1e3b0a95fba"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonFlattener::flatten (cognitive 40): JsonFlattener::flatten has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 5 (12 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 20). 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":"rust/lance-index/src/scalar/inverted/tokenizer/document_tokenizer.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eda81c7f2d13ab3f1ad12197469e6a909ec7a8540201b95bb75ff15a7f89481"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestNamespace::rewrite_manifest (cognitive 40): ManifestNamespace::rewrite_manifest has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 4 (10 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2226}}}],"partialFingerprints":{"codehealthFindingId/v1":"332c07e96a9f444d8d881205a8cb6c5fab8aa2bb5f4e44c2eadad53f875d053e"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::withdraw_coverage (cognitive 40): Transaction::withdraw_coverage has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (28 pts), match/switch 2 (6 pts), loops 2 (4 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":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"489768db0365bc446da5ba1d5326a569104ea349d803d53a2494c7e00d415aaf"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsIndexExec::materialize_rows_sorted (cognitive 39): FtsIndexExec::materialize_rows_sorted has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 5 (9 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3ec7ced3341eecf2befd30fa1d9b17c2956b585942f45343b5025151ee4962"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::collect_paths (cognitive 39): Dataset::collect_paths has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 5 (10 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"402844abe30e6853dedf742c22ebfe0567377d3f0feda64ac1a355b6e2216398"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::finish_delete_update (cognitive 39): TransactionRebase::finish_delete_update has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 3 (10 pts), match/switch 1 (3 pts), boolean chains 1 (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":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da6dde2a679888ec0fd7078a6ca5a5b99bcf308aa0d9fbd8dd5797629aa2d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::schema_evolution::add_columns_impl (cognitive 39): lance::dataset::schema_evolution::add_columns_impl has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (29 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe92975e7de76043d441be3272f2fcd39ac5222aa5c49c8e6a9d39929075e58d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width (cognitive 39): lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (31 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd7cc82d58a75bf1162bab72e5f1dcba70da3670f8a0809202be672d6b25eff"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::concat::validate_blob_field (cognitive 39): lance_file::concat::validate_blob_field has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 4 (8 pts), boolean chains 5, match/switch 2 (4 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":"rust/lance-file/src/concat.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c7297a3dafbafef98641d86f0cadefdf249f2f45b102b56139b31f54c8c7eb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_io::local::remove_empty_dirs (cognitive 39): lance_io::local::remove_empty_dirs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 5 (10 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/local.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad8dce2226c189e7de4b7f181ddb9d3e3e0a64137cf6afcb87e63fb33790129"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::try_from (cognitive 39): Transaction::try_from has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2af2bfc3753bd3f6db83129a8b293542eadc7ed033582f075589f044aa7fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"fsst::fsst::decompress_bulk (cognitive 38): fsst::fsst::decompress_bulk has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 5 (9 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12e318c4a56661286c932b4e7d37cb084a008fe6fa6f4df3c697e92f225b29d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileFragment::validate (cognitive 38): FileFragment::validate has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 6 (9 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"32da9bb8b723dbabf52e440bfab0884ba6e8cb685c46bbc06ca7c55035ae39cd"}},{"ruleId":"D2","level":"warning","message":{"text":"TakeOperation::try_from_expr (cognitive 38): TakeOperation::try_from_expr has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 4 (13 pts), boolean chains 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2def55943093f81fa29e20cbc88be87459b8a7ad9d0d4f1444336f1ab59fad3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::versions::check_manifest_storage_contract (cognitive 38): lance::dataset::versions::check_manifest_storage_contract has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 9, match/switch 3 (8 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/versions/mod.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"593bbd5a2a12645f25eb7599d7da02229f9c5cc20290ff7fcb03f0a877f587bf"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::consolidate::plan_index (cognitive 38): lance::index::optimize::consolidate::plan_index has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 6, loops 4 (6 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea81a3b140d3c835b2cae8500e4e56d088ad3b9a88ccacb3afa3ecc35030382b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanarSparseTask::decode_checked (cognitive 38): PlanarSparseTask::decode_checked has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 3 (10 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"644f138c2b94cf8eb840e07678ea9f6ba58f06f03be3d636667aa5070e697660"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::sample_unique_ratio (cognitive 38): PrimitiveStructuralEncoder::sample_unique_ratio has cognitive complexity 38 (threshold 15). Drivers by points: loops 7 (17 pts), if/else 6 (13 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9674833f1d56fde735bd8da0d01254e7541327f3a081baa50fc1c187d34ed"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::sparse::select_position_set (cognitive 38): lance_encoding::encodings::logical::primitive::sparse::select_position_set has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 5 (12 pts), match/switch 1 (nesting depth added 21). 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bed62f02f3cee6b38a5847871347a784582749475ca7ef306b7ff76cc18491"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::query_table (cognitive 38): DirectoryNamespace::query_table has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 7, match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a2968657beb6e85f0aaea0ffb2d0fe9c83267415db76c3513dc43e10bf8f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"U64Segment::with_new_high (cognitive 38): U64Segment::with_new_high has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (30 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"92247e0799bc4ccf2c1269c0acbcd5ad0c333b79de77ceacb03053d39c7c6348"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns (cognitive 38): lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25 (29 pts), boolean chains 5, loops 1 (2 pts), match/switch 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f709d4826212233035857f3993d9d437b98ae96c2438bf03f7ca8b6cd396a1fd"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceDataset.__iter__ (cognitive 38): LanceDataset.__iter__ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/torch/data.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a65bf229752ce887e2aaa9e0f3b1ac24def2c0126fd9b139bacff34abbdad5e"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetBuilder::load_impl (cognitive 37): DatasetBuilder::load_impl has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 8, match/switch 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1162ae055e791dce603de3a90ec3ef75b296f23c1b6178fa8b86a5ab27f2fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_compound_scorer (cognitive 37): Scanner::plan_compound_scorer has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 8, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2311c7422671604d652ce23d9e5100cd3763c750a379c7c8b1c5dcb4c1977a13"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::create_plan_impl (cognitive 37): Scanner::create_plan_impl has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 7, match/switch 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b88ed1577444d9a0da02c5bea9298bf80f0b5e77e8a3b3ea65230d8dc5cb5da"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_delete_txn (cognitive 37): TransactionRebase::check_delete_txn has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 2 (6 pts), match/switch 1 (2 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca8203a2879ed10a3c5a672354bc47354ebee544024803f3c5b5a68de9b4b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::validate_folded_deletions (cognitive 37): lance::index::frag_reuse::validate_folded_deletions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 6 (11 pts), match/switch 5 (11 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc118f881af1b115e82a776bf5fa8a5efe97c0e019f217d6ad93391c55d2a6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::do_commit_detached_transaction (cognitive 37): lance::io::commit::do_commit_detached_transaction has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 4 (10 pts), boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae24d9d8d51eb0e218f62c4400863ef93ed1aabc37c29382e021fb08193262d"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::is_constant_values (cognitive 37): PrimitiveStructuralEncoder::is_constant_values has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 23). 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"20641e0299917e0c48894c7dd9524c53615b21c576e897fe66fad52bd0c475d9"}},{"ruleId":"D2","level":"warning","message":{"text":"scanner._build_vector_search_query (cognitive 37): scanner._build_vector_search_query has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 10 (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":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"053b4b63a5f920aa1805b1ec7529816ec58b55b2426088603517769429377d30"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::blocking_scanner::build_scanner_with_options (cognitive 36): lance_jni::blocking_scanner::build_scanner_with_options has cognitive complexity 36 (threshold 15). Drivers by points: if/else 27 (31 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc779421917518cf4d6dbebf4cff1a716806416319a6ff8fffb009c4465cd9a7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::blob::validate_prepared_blob_value_array (cognitive 36): lance::blob::validate_prepared_blob_value_array has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/blob.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"50367bde2da3ebac017fbe8534be949c63a9818fe5e33ebd50cc57b348e5fc25"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::blob::external::collect_external_blob_uris (cognitive 36): lance::dataset::blob::external::collect_external_blob_uris has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (8 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcc5468968f4be06d54cb99ff8ddddf8a45a4b7e86c46af6d225ee6717a9fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedWidthDataBlock::byte_position_entropy (cognitive 36): FixedWidthDataBlock::byte_position_entropy has cognitive complexity 36 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 9 (16 pts), boolean chains 2 (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":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"664b75025adc479b5547f56c0e83ebbaf97b30da7656d77eacb2e18e7500443d"}},{"ruleId":"D2","level":"warning","message":{"text":"LazyLevels::seek_row_start (cognitive 36): LazyLevels::seek_row_start has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (11 pts), boolean chains 2, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdda8a90d155402a44de1f396615947683839d236232889d74460264811d73b"}},{"ruleId":"D2","level":"warning","message":{"text":"FullZipScheduler::schedule_list_structure (cognitive 36): FullZipScheduler::schedule_list_structure has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 3 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"25410ea3b1d4aea13b4605623f0152f86efebc7c1edbfe517bb62aafdc45a6e5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::ex_dot::unpack_group (cognitive 36): lance_index::vector::bq::ex_dot::unpack_group has cognitive complexity 36 (threshold 15). Drivers by points: loops 13 (33 pts), if/else 1 (2 pts), match/switch 1 (nesting depth added 21). 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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b3b629f58769bb314e09f0f4c57bf5bb4ab33b8e08f2821424e788c9577534"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::fixed_size_list_almost_equal (cognitive 36): lance_index::vector::distributed::index_merger::fixed_size_list_almost_equal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"382daf8c31f8c382fc5d54d2f85b857edd8d45374e5c3b896febe6770c718ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::system_index::frag_reuse::gate::classify (cognitive 36): lance_table::system_index::frag_reuse::gate::classify has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 10, match/switch 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse/gate.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1be77970c585a0bbf3812189b00121ed0b8fc65d7708acb89163cd10e7d7897"}},{"ruleId":"D2","level":"warning","message":{"text":"Partition::maxscore_loop (cognitive 35): Partition::maxscore_loop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4775}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20ea0a8854c843f935d2dc89a69f4dbbd3d8b58552971c8ecebde3ed51173ee"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::update_fragments::handle_fragment (cognitive 35): MergeInsertJob::update_fragments::handle_fragment has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 6 (17 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (MergeInsertJob::update_fragments) 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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"7165413e32262312a4b410e0217a5abd8ebf1fcee3147421523adbc766ede7ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::count_indexed_rows (cognitive 35): Dataset::count_indexed_rows has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39613e96b17a55dc2a9f6b1af53b2ca017c8d0870e95fd2501825bdea6384e2"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexDescriptionImpl::try_new (cognitive 35): IndexDescriptionImpl::try_new has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (29 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/statistics.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fa6fd736b4f3146a671370c56a673f29a1b27f4749f652feeae3f2b3b0e55e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::validate_and_resolve_target_bases_with_primary (cognitive 35): lance::dataset::write::validate_and_resolve_target_bases_with_primary has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 2 (4 pts), boolean chains 3 (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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8218cd1ce0d396936d85780811d2ab417db1e498f732c02b942934a45c3899c3"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedFullZipDecodeTask::decode (cognitive 35): FixedFullZipDecodeTask::decode has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 3 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9aa5e6e7c46b05ca3c5c60d4a2a25227cf897477bd37059f009dff0481bbe7"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializerContext::record_offsets (cognitive 35): SerializerContext::record_offsets has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 4 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"367b36f7052c8bd25fdf1f4bd913bf57c0405f3c2df3087c9e56467aac0831a9"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapIndex::search_with_options (cognitive 35): BitmapIndex::search_with_options has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"77308548b4d000c715a0b480c424988206046806f5683622a468b682d114c334"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::combined::maxscore::combined_maxscore (cognitive 35): lance_index::scalar::inverted::combined::maxscore::combined_maxscore has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/combined/maxscore.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f760bbe28a33bc77b2c8e14932f3583c26323cf3db2f611eb747c80baee53b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::index::flat_search::tokenize_and_count (cognitive 35): lance_index::scalar::inverted::index::flat_search::tokenize_and_count has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 7 (10 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db2c459dba0378db94f3fdb56baef448aa0b41cdbc29a1c41de6cf6f8cc924d"}},{"ruleId":"D2","level":"warning","message":{"text":"FilteredReadExec::statistics_from_inputs (cognitive 34): FilteredReadExec::statistics_from_inputs has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (29 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3818}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a82939e0300a769cee77bcad9c7d87096cd978a909ce3add81148fd16bf7e93"}},{"ruleId":"D2","level":"warning","message":{"text":"LateSearchProgress::plan_round (cognitive 34): LateSearchProgress::plan_round has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/batch_probe.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5728a6f7ab3d7a774d210e8da5f3a3bdad5dbfaff10da34b53b9d921677afa83"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::score_terms (cognitive 34): lance::dataset::mem_wal::index::fts::score_terms has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6269fe783cbd25e14248728bb2d10938ff3834a6952f9b2dfca6403b7f60c595"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::remapping::remap_index (cognitive 34): lance::dataset::optimize::remapping::remap_index has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (9 pts), match/switch 3, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea98e0527a4044b8e649b0e757712acee767c77e4dddfe236c6e1f492d5b7170"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::build_vector_index_impl (cognitive 34): lance::index::vector::build_vector_index_impl has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ab2a47912742064be63dac1523790fd98e6f5da39edaee29b9ee2d48d04ed"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobV2StructuralEncoder::maybe_encode (cognitive 34): BlobV2StructuralEncoder::maybe_encode has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/blob.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a824bebb3abb83b0bd3820a9d3ce47e58134b1053ffb298be4f3f50a37caf75"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializerContext::normalize_specials_and_plan_splits (cognitive 34): SerializerContext::normalize_specials_and_plan_splits has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 4, loops 1 (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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"89543fb961b969c65b45e779c7bf1010bbe41c3e37c8214df5f1d4b85437f355"}},{"ruleId":"D2","level":"warning","message":{"text":"FileScheduler::submit_request (cognitive 34): FileScheduler::submit_request has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 5 (11 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca20ec879e52ae65dd10dd54ed5691ed82bd6205320ddf255baf6dc0c18dd05d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileFragment::scanner (cognitive 33): FileFragment::scanner has cognitive complexity 33 (threshold 15). Drivers by points: if/else 24 (29 pts), match/switch 2 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fragment.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"004dbdede9de0f614ed46b598b48037349e02234510c568ad2aaccb7c83013e6"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableScanExec::execute (cognitive 33): MemTableScanExec::execute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 5 (10 pts), loops 1 (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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c60ebb3c756567b081acec7b0439ad6c3186c37e356d480623b0ac81dcea6c"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmFtsSearchPlanner::build_source_plan (cognitive 33): LsmFtsSearchPlanner::build_source_plan has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 9 (13 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbeafcae713b6dd3d13787d7d13c9f267b565596a533a889dad96b6185b16bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultCompactionPlanner::plan_with_budget (cognitive 33): DefaultCompactionPlanner::plan_with_budget has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, loops 4 (6 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a50116145d386a2b953c3e264de43b250ccb247a199f0c229860f061a29b86"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::create_data_file (cognitive 33): Dataset::create_data_file has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 6, loops 3 (5 pts), match/switch 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 13 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":2832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b7dc6328ef275f16a349a4e2c7fc7ae37bd218c230b7f7a225916b472aa64e"}},{"ruleId":"D2","level":"warning","message":{"text":"FragmentReuseIndex::remap_row_ids_excluding (cognitive 33): FragmentReuseIndex::remap_row_ids_excluding has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (8 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":"rust/lance/src/index/frag_reuse_reader.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c920e67b68c7eec29420f2d612c339dcc887d5a81f251d96b26e0061fe08b280"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedStream::poll_next (cognitive 33): SharedStream::poll_next has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 6 (9 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/futures.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac92c990937b2af750193ff92d3403d9e05d247d252c717b362b85c2a525df0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::unwrap_node (cognitive 33): lance_datafusion::numeric_coercion::unwrap_node has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (7 pts), match/switch 3 (6 pts) (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"6537fba21fac2c2d7e6665fbf90a912345141904011b55261ede3ac2b32608b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectStore::read_local_staging_files (cognitive 33): ObjectStore::read_local_staging_files has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 6 (13 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/local_staging.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cf56add7330bf189d47e271d4249eee4423762dcc3b808540e87b6ac5b2e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::run (cognitive 32): CleanupTask::run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (5 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bd672ee5a8bb7006690651842d481a9349bb54e4074db850154bf508212587"}},{"ruleId":"D2","level":"warning","message":{"text":"BytesBackend::insert_array_and_report_existing (cognitive 32): BytesBackend::insert_array_and_report_existing has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 4, loops 2 (3 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77a315494d19e06fe8255333afe43b44173dc58508a47dea77ac228c7d0828c"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableFlushHandler::flush_memtable (cognitive 32): MemTableFlushHandler::flush_memtable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 4 (7 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/handlers.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acee8b4e028a6b3b67f9d5f48808c7f49fb6c33d0a92c0ecd32110786350c13"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskDispatcher::run (cognitive 32): TaskDispatcher::run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 4 (14 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/tasks.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e8f7e8868af079cb94a537c5e9470ea2e411d628842a4d6b9713a55b2e7ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_phrase_query (cognitive 32): Scanner::plan_phrase_query has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 4 (6 pts), boolean chains 4 (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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"3959a2d41cad70cd1754e58a2edc9d255cdb88486c917ca350e858e516734a3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::merge_existing_index_segments (cognitive 32): Dataset::merge_existing_index_segments has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afa44dbc193a96ce2d4cda5c6434a94fa7640aa051444fc5b6374ccbd39110c"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionAdjuster::join_partitions_impl (cognitive 32): PartitionAdjuster::join_partitions_impl has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (14 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":2893}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef797fa213bcc0ce0858046a3c433077db0c72e355469d1edb21dbe2a2b6f12"}},{"ruleId":"D2","level":"warning","message":{"text":"TakeStream::map_batch (cognitive 32): TakeStream::map_batch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 4 (7 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/take.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1909e03c9618c0d6594ed2e67e8695a548257980526e742dc5a1d4464966f8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"TopKLateMaterialization::rewrite (cognitive 32): TopKLateMaterialization::rewrite has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 3, loops 3, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/topk_late_materialization.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4363c0d9467b0dffaca3f1135d1f70132e84e3b60c94522e142153c1eefeae50"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::schema_evolution::add_columns_from_stream (cognitive 32): lance::dataset::schema_evolution::add_columns_from_stream has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (13 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"2318c730d1330980fb5bbd68a5f618429096625856e7f8305c09c7b1ae96751b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::builder::take_partition_batches (cognitive 32): lance::index::vector::builder::take_partition_batches has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5 (12 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3def3c39c22297d6df22c09c4e8201ea503d7a73c7df496ca15cbf7c333a76"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema::do_project (cognitive 32): Schema::do_project has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd8839655bce4e4088589f871f06f8ce79d1dfda1bacb7abcc1efe640c01196"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::signed_zero::rewrite_node (cognitive 32): lance_datafusion::signed_zero::rewrite_node has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 4 (7 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/signed_zero.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"031460bdf4dc0eae6e8644d1c58c075102fe5850a8ade710fee4016cd6bf3e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreFieldDecoderStrategy::create_array_field_scheduler (cognitive 32): CoreFieldDecoderStrategy::create_array_field_scheduler has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 1 (3 pts), boolean chains 1, match/switch 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509824329f320627dce5467635ad9babeef082aa10b852d92a280edf6e40fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanarSparseScheduler::try_new (cognitive 32): PlanarSparseScheduler::try_new has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 6, match/switch 3 (4 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c030f8acfb8fe77aa23accb69c44b72b152ef074931705ed35849b0f94922c"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::serialize_miniblocks (cognitive 32): PrimitiveStructuralEncoder::serialize_miniblocks has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 4 (9 pts), match/switch 2, 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddccac2ae2c9b21dbd4753b48092a960ca6354f253c9859cc5c2af834669738"}},{"ruleId":"D2","level":"warning","message":{"text":"RepDefUnraveler::unravel_offsets (cognitive 32): RepDefUnraveler::unravel_offsets has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 3 (5 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe922a48fcaedfaa6eebf94c79120a0b8fdce9453821bc7be1ee33aa2c822eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::flat::index::search_candidates_with_scratch (cognitive 32): lance_index::vector::flat::index::search_candidates_with_scratch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (12 pts), boolean chains 3 (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":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b441cb7ed78c4cd245404725363606ca4e54ce7110b099b0a74bb93131241bab"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::retain_relevant_indices (cognitive 32): Transaction::retain_relevant_indices has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (11 pts), boolean chains 3 (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":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b028ac407aba620af2f1bd08ab3436b9b18c36ad09f890b7cf379e3cd5670e6"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::process_manifest_file (cognitive 31): CleanupTask::process_manifest_file has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 3 (6 pts), boolean chains 5 (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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b736e44444c34132eae73af16918eae2d112d3ef9e5f332c01859b6ff9676cc"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableDedupScanExec::execute (cognitive 31): MemTableDedupScanExec::execute has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 3 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86f3a86bd557fe186ff94578754f544155ea2ce9f660c14d18d9e2f5aea3291"}},{"ruleId":"D2","level":"warning","message":{"text":"FragmentScanner::extract_guarantees (cognitive 31): FragmentScanner::extract_guarantees has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 3 (6 pts), loops 3 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"7396eb4c5a1118e059b22fa96c6e6fc6360c31009b7b97cfe76ecb9ab9c94e65"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::rowids::validate::validate_stable_row_ids (cognitive 31): lance::dataset::rowids::validate::validate_stable_row_ids has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 4 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/rowids/validate.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cde55fb326e9bab3e76e4d8c3f77cec6258340811a548a7b8ca009121fe13eb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::streaming_hamming::initialize_centroids (cognitive 31): lance::index::vector::ivf::streaming_hamming::initialize_centroids has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 5 (9 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e865fb6e3186a087eb866bfeddb964a064e19b7b81c112a8fb0f7123c893615"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::compress_levels (cognitive 31): PrimitiveStructuralEncoder::compress_levels has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"88de48fec4015fefb6c250a34836671e66e5b09aa58e62268a932cf02f348f54"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndexBuilder::consolidate_updated_partitions (cognitive 31): InvertedIndexBuilder::consolidate_updated_partitions has cognitive complexity 31 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 6 (12 pts), match/switch 1 (2 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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6f5c8121edb976c3e3e11e519193f3603558f167a6f098f6225863d8c84f91"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::prepare_score_first_and_window (cognitive 31): Wand::prepare_score_first_and_window has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 3, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/conjunction.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea7b597c49ca4b74c287fbc40dc710fce1c7785f97e6bfa55f52f8a1f35d7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"MinHashLshIndex::refine (cognitive 31): MinHashLshIndex::refine has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/minhash_lsh/index.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0092cc3d85a329f9b3fcd42f26b80cee31f3875cb9207be8d2da9fc89f54a21"}},{"ruleId":"D2","level":"warning","message":{"text":"RabitQuantizationStorage::raw_query_factors (cognitive 31): RabitQuantizationStorage::raw_query_factors has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4d191a35065093e4a1abe754ab36472574a4d9eef1b881fa450dd7bc8dd518"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatIndex::search_with_scratch (cognitive 31): FlatIndex::search_with_scratch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (12 pts), boolean chains 4, 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":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feb8bfd395be41df3ef814e6d0b4bb19576af70cee1c0dcfa04a5b0c5b11c28"}},{"ruleId":"D2","level":"warning","message":{"text":"HNSW::flat_search (cognitive 31): HNSW::flat_search has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 17). 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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdb00843c8db5dd6022c798aca2195a4e48cad9a7871a41cef9e6ca72a2e5e7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::collect_local_generator_candidates (cognitive 31): lance_index::scalar::inverted::cross_column::collect_local_generator_candidates has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (25 pts), loops 3 (6 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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8024ccded26d39608532c19e6956615f06582a13e9c84ffd880a022a23ab76"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::version::refresh_row_latest_update_meta_for_partial_frag_rewrite_cols (cognitive 31): lance_table::rowids::version::refresh_row_latest_update_meta_for_partial_frag_rewrite_cols has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/version.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"525bf5e1ae7f27f279d3a5b27ccc35648943818ef14d6e7b26435c973dca0e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"PyLance::into_pyobject (cognitive 30): PyLance::into_pyobject has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 5 (10 pts), loops 1 (4 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f85a7c817166bb1b754aef6dc5073d939ff185df7c11738468e8b834da2033"}},{"ruleId":"D2","level":"warning","message":{"text":"CoalesceFirstStream::poll_next (cognitive 30): CoalesceFirstStream::poll_next has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/exec/coalesce_first.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8860b3594b52141d60f71377ee98fd8979df9f3d78f224b4bf8a0c2294c6b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::nearest (cognitive 30): Scanner::nearest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 1 (3 pts), boolean chains 2, match/switch 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/builder.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"d568247042f1713d9a0d2d09559349c488fe88bd4168cd4192a98be1e4fbb6eb"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_match_query (cognitive 30): Scanner::plan_match_query has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 4 (6 pts), boolean chains 4 (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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d8d4c085ad5977bb88b7364cf415dbe8cf24e44768faf3064839e7d6c918f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::create_filter_plan (cognitive 30): Scanner::create_filter_plan has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28c6f9d7f0dd9e11525690bb722278c7ad927739d16e987bddc1d1e903453c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FragmentScanner::read_batch (cognitive 30): FragmentScanner::read_batch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"499516b22c77f4b87029b81bfc536ac3a15bc14d1aab81c563464651763e4125"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceStream::try_new_v2 (cognitive 30): LanceStream::try_new_v2 has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (27 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34449f43fb63ba108cf1cf518b74ed35ebcda0a66eaa834119ec85a7661c026"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::phrase_search_tail (cognitive 30): lance::dataset::mem_wal::index::fts::phrase_search_tail has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 4 (7 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d5ad857664d9791ab6bfd581049e3096ff87a7fb54b5019b6bad3ac136f95e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::initialize_weighted_centroids (cognitive 30): lance::index::vector::ivf::initialize_weighted_centroids has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 5 (9 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5049}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac8c19f24f53f895ff08d6a3f455082323da83086b943682d082abb1539c118"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::versions::v1::writer::statistics::get_binary_statistics (cognitive 30): lance_file::versions::v1::writer::statistics::get_binary_statistics has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 1, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c836052f42ad6cc6acae5f4ce4b427e47b77f25edd35f80390db895ac9c0ae9e"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupKeys::match_page (cognitive 30): LookupKeys::match_page has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (8 pts), boolean chains 7, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"937528998060d42ea3f8db8eeadd71d46702dc1be7818ef1f7d6d4284aebdef7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShouldMaxScoreScorer::current_score_upper_bound (cognitive 30): ShouldMaxScoreScorer::current_score_upper_bound has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fc2b76e5f9d3bed11dac82396ff28bd24af2a4130829e3319a34ef21d2d51a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::zonemap::parse_seed_for_binary_copy (cognitive 30): lance_index::scalar::zonemap::parse_seed_for_binary_copy has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 3, match/switch 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a347c26471b6c8c66ce6eaba002d3a54e493aead81439b76d2b09ffecafe15b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::distributed::index_merger::read_shard_window_partitions (cognitive 30): lance_index::vector::distributed::index_merger::read_shard_window_partitions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 5 (8 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7534966558a15ad7a7c2dc01d051caa44d21e73b30e984c1c7b83cefc6e3c88c"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonbItem::partial_cmp (cognitive 30): JsonbItem::partial_cmp has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21 (29 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/item.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6479513b0c10c09846955d9fa31869d22b8250950a40c7b7c771d4be510fea17"}},{"ruleId":"D2","level":"warning","message":{"text":"Selector::select_array_values_by_indices (cognitive 30): Selector::select_array_values_by_indices has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (9 pts), match/switch 1 (2 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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4683a746690a58774cc6bb4d074bda9195e7593d2ee0be003ad6e8583a107548"}},{"ruleId":"D2","level":"warning","message":{"text":"udf.normalize_transform (cognitive 30): udf.normalize_transform has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 2 (4 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/udf.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a869ba459e44968ebd5df6bca0430cee18a33f4635817d352c284d8dbc9ced"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetIndexRemapper::remap_indices_with_context (cognitive 29): DatasetIndexRemapper::remap_indices_with_context has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 6 (12 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"925183240503786465d093cccce0f941e239ce2a2ecace8e36c33a7164171e42"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse_reader::load_indices (cognitive 29): lance::index::frag_reuse_reader::load_indices has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (6 pts), match/switch 1 (4 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":"rust/lance/src/index/frag_reuse_reader.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db3254448ec492a51b29b6402781f6b0385040344af3d43558bd88f29b4e26d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::io::write_pq_partitions (cognitive 29): lance::index::vector::ivf::io::write_pq_partitions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"33830d7a420c3ff694a2e84c13dd7b681f1ccde87260ef237898e7de77d8c5b3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::v2::partition_search::search_partitions_batch (cognitive 29): lance::index::vector::ivf::v2::partition_search::search_partitions_batch has cognitive complexity 29 (threshold 15). Drivers by points: loops 11 (24 pts), if/else 4 (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":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56bb715095bec5ebdc589f4c1aee83d97efdbbe59a770150e4279d67ec68b9f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::fix_schema (cognitive 29): lance::io::commit::fix_schema has cognitive complexity 29 (threshold 15). Drivers by points: loops 9 (14 pts), if/else 7 (13 pts), boolean chains 2 (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":"rust/lance/src/io/commit.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dca8a922e1bf43cd72f1b96d01ca9869537780ad6a0cda46cae7fcb0a00f67"}},{"ruleId":"D2","level":"warning","message":{"text":"Field::do_intersection (cognitive 29): Field::do_intersection has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3e99b4d36b01a892e24be944d2f738633abcc43c2ccbe7fedb2e4d360f55c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range (cognitive 29): lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, loops 2 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc43a6395b15d682ac6fef4fd94b6a08c6315a6aad30516d9ad6eecd3341b14"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::versions::v1::writer::statistics::get_fixed_size_binary_statistics (cognitive 29): lance_file::versions::v1::writer::statistics::get_fixed_size_binary_statistics has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5771786d27920635182690e3e407bde85692af4bbdc48f39d4c7a71e9a946062"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::score_single_essential_upto (cognitive 29): Wand::score_single_essential_upto has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (27 pts), boolean chains 1, loops 1 (nesting depth added 18). 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":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adba74b3c763821fec5230227c4d53e785e90b997b92f15399cdbd61a458e03"}},{"ruleId":"D2","level":"warning","message":{"text":"KMeans::train_kmeans (cognitive 29): KMeans::train_kmeans has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"104eb63d65634ae5ef301f38a52b7a66eb25516913f770f56e0a3b39665d2850"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config (cognitive 29): lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 6 (8 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da0da42bbb8916dcabd61d2d60db9f059fd08360de1f5f9dc5cadb9ddedbe61"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::tuple::planner::plan (cognitive 29): lance_index::scalar::tuple::planner::plan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4, match/switch 2 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/tuple/planner.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2562fc17d41c21e12c9e8e33449f0ea405f6d588a8590bac9c6c6564552f8d54"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::transform::compute_raw_query_factors (cognitive 29): lance_index::vector::bq::transform::compute_raw_query_factors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/transform.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"275ca734127ded8c98b6fb283c40a6d1d4fb44ea6204bc65ee82c396ee59dc61"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::transaction::validate::merge_schema_valid (cognitive 29): lance_table::transaction::validate::merge_schema_valid has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 5, match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"00207f21fc17eaef4df01ccd6e964e0de3076f414802f97b95d5118e9b4320ee"}},{"ruleId":"D2","level":"warning","message":{"text":"dataset.write_dataset (cognitive 29): dataset.write_dataset has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (25 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":"python/python/lance/dataset.py"},"region":{"startLine":5777}}}],"partialFingerprints":{"codehealthFindingId/v1":"3194d4881bc2e9a31be69a851156aa635debb4598e781d7d348f14503ee57e15"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::index::determine_index_type (cognitive 28): lance_jni::index::determine_index_type has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22 (27 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"java/lance-jni/src/index.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d28fe7f3903ffb253cdd7bd6fe9e653ce92baf53ed97a7c8ec424d85c17566"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::transaction::convert_to_java_operation_inner (cognitive 28): lance_jni::transaction::convert_to_java_operation_inner has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 9 (17 pts), loops 2 (6 pts), if/else 3 (5 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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9e3021e866cf4b5aa8d25c31e4ea9451515d583df3ee94aec52aaebafdcdf"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableBruteForceVectorExec::compute_topk (cognitive 28): MemTableBruteForceVectorExec::compute_topk has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a27321326d20745e3d28bfe4963c452257ce7ef90fc6147be83d3ce6b8d2ac5"}},{"ruleId":"D2","level":"warning","message":{"text":"FragmentReuseIndex::segment_plans (cognitive 28): FragmentReuseIndex::segment_plans has cognitive complexity 28 (threshold 15). Drivers by points: loops 8 (15 pts), if/else 3 (8 pts), match/switch 2 (5 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":"rust/lance/src/index/frag_reuse_reader.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d74ca5c86878309131cb8571222b944bebc03109231894f81ec7a1805510f7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::cleanup_data_fragments (cognitive 28): lance::dataset::write::cleanup_data_fragments has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (11 pts), loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d1d9c47afa6ae412ab7cde64727482a04fc22b6c44a3649f0e5dfe33f35eda"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::plan_optimize_indices_or_skip (cognitive 28): lance::index::optimize::plan_optimize_indices_or_skip has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"378ed5ec6a0193b755280795d1ba5d37e4a7acb1afbfe1d6eedce7c03da036dd"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::commit_optimize_indices (cognitive 28): lance::index::optimize::commit_optimize_indices has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a69332ba1ef0aa68882eaf62bd715d04679b474ab3183909db62307c624ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::build_distributed_vector_index (cognitive 28): lance::index::vector::build_distributed_vector_index has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 4 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f1f9651a5135349f1634743eda390ced83a34c15ccba45b0679481933cf372"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::dedup::plan (cognitive 28): lance::index::vector::dedup::plan has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/dedup.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94ae95cfcae1748ff40f3581f062a10d26c5fa81e03beb4e23aa1f8569c2dae"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::migrate_indices (cognitive 28): lance::io::commit::migrate_indices has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 3 (7 pts), boolean chains 4, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c239a3442f1f70a0e19f3f6ed8d51ab0c26eb1daa70dce6595562f7dbd355"}},{"ruleId":"D2","level":"warning","message":{"text":"DecodeMiniBlockTask::decode_inline_bitpacking (cognitive 28): DecodeMiniBlockTask::decode_inline_bitpacking has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fbae7c30489720ad4e901dfebbf855a236724fe3181e51e4ee47c9bdaa3cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::dict::dict_encode_fixed_scalar (cognitive 28): lance_encoding::encodings::logical::primitive::dict::dict_encode_fixed_scalar has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f081705ec009d44947e4c2a2dbf1716fbc88f49839af07a9d571b7b8ee44bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceEncodingsIo::submit_request (cognitive 28): LanceEncodingsIo::submit_request has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 5 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/io.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1950e332b374603a86b73e001211893ed7459d0431854907ea9aa1239bd8203"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::versions::v1::writer::statistics::get_string_statistics (cognitive 28): lance_file::versions::v1::writer::statistics::get_string_statistics has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 1, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a629d61b6dc4c3e6876aa27e3e613061c5d54ab9fc0ad9085ec1c785639f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingIterator::position_cursor (cognitive 28): PostingIterator::position_cursor has cognitive complexity 28 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 2 (10 pts), match/switch 3 (6 pts) (nesting depth added 20). 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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d834d0416916c2258681322c24d6389b414a750ffecb2bb4e34d9593317796e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::score_generator_candidates (cognitive 28): lance_index::scalar::inverted::cross_column::score_generator_candidates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"e175327415633092e4fb635ee4902e8452cb3826147da979c110c3fc2c89304c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::wand::bounds::exclusive_partial_score_limit (cognitive 28): lance_index::scalar::inverted::wand::bounds::exclusive_partial_score_limit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/bounds.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f482cd93932aafbf974e7d65474156daa8891c3bfdc41f538e22f33e02402db"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::hnsw::remap::remap_graph_batch (cognitive 28): lance_index::vector::hnsw::remap::remap_graph_batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0b09d009267f94e2b3bc43a4e86e7985f903ae266efedcc4d50cb57ea87672"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::prune_overlay_stale_fields_from_indices (cognitive 28): Transaction::prune_overlay_stale_fields_from_indices has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 3 (10 pts), boolean chains 2 (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":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd91548d96024203c3ec1c1d6881108bbfbd8fd636c7aabddab03ecb65992a11"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentCursorState::extend_dense_bitmap_range (cognitive 28): SegmentCursorState::extend_dense_bitmap_range has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3e67c4164d3946917c090c9066c0da918b388fda2701dfacb06d4465e4635"}},{"ruleId":"D2","level":"warning","message":{"text":"FragReuseLedger::decode_content (cognitive 28): FragReuseLedger::decode_content has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse/ledger.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a061bb7207da286308437e69ba29543fae543ca95d2b25441a8851bab68290"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::system_index::frag_reuse::ledger::order_lineage (cognitive 28): lance_table::system_index::frag_reuse::ledger::order_lineage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 7 (11 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":"rust/lance-table/src/system_index/frag_reuse/ledger.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c08eb48a86ecbd4b22850a318ca859b316100de07df579362309fc9a537dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Checker.run (cognitive 28): Checker.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 6 (10 pts), boolean chains 5, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/lance-table-maintenance/scripts/conformance.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e9daee8f8f25dd2bc4d8dbdc13453cf956846b19cf3467e2b99cbcbe63fef"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::validate_options (cognitive 27): Scanner::validate_options has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b20537a123ec92c1a7652b8d72cb31f335b02c7b6283c890501d4c702b6693"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::knn_combined (cognitive 27): Scanner::knn_combined has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf967497f1ad01c605ce09d0fe79e9939ef237ef7a530427db99f7133c8387e"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRowAddrExec::compute_row_addrs (cognitive 27): AddRowAddrExec::compute_row_addrs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/rowids.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f0ab65c2af4153fc1146b1ec5d0b4ca1f7f683b5efb6ec9128560e6252bb88"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::execution::can_use_binary_copy_current (cognitive 27): lance::dataset::optimize::execution::can_use_binary_copy_current has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2fd47a7a7f47c68ae8d28b6e0d19630fe58f830351c9dc0ba5fd1f0e9ede09"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::planning::load_index_fragmaps (cognitive 27): lance::dataset::optimize::planning::load_index_fragmaps has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (12 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":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"534126c36ec59328ce45b260010aab6dbc9b803a27851f89b69d290e207c9e66"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::lifecycle::build_index_metadata_from_segments (cognitive 27): lance::index::lifecycle::build_index_metadata_from_segments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf1064e419a4b3c5d7c588cdd8fb80b1530f6800066b5cb3f78702b42c36e21"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_core::datatypes::schema::compare_fields (cognitive 27): lance_core::datatypes::schema::compare_fields has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"adee9124381c21ba7d659522f444c7c32b68017f2a8110aaf53399857a9d4a62"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_core::datatypes::schema::parse_field_path (cognitive 27): lance_core::datatypes::schema::parse_field_path has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"d939c3db7839e594caf73cf8165418d7489ef688923b7c7adc531293a9cf75db"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::should_dictionary_encode (cognitive 27): PrimitiveStructuralEncoder::should_dictionary_encode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1301a9fa8ce0d62c913444278daa1e4a92f36ca389e6536d39fd51b4d0fa38"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedPartition::stale_row_stats_for_terms (cognitive 27): InvertedPartition::stale_row_stats_for_terms has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 5 (9 pts), match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0642d64db9837006c640e5191a1f7a415190edc84fb50809720b5e42814019e"}},{"ruleId":"D2","level":"warning","message":{"text":"RawInvertedIndexParams::resolve (cognitive 27): RawInvertedIndexParams::resolve has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, boolean chains 3, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/tokenizer.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"58947a9aa524c4e1a18f66ac358518aac0892ecb8aadcc0bf274d75db535a965"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonIndexPlugin::convert_batch_by_type (cognitive 27): JsonIndexPlugin::convert_batch_by_type has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (8 pts), boolean chains 2, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea5b6cdee6feab670810643c1d83d90b9010c495ff936bbf1d65ddc01380887"}},{"ruleId":"D2","level":"warning","message":{"text":"RQPairScorer::stage (cognitive 27): RQPairScorer::stage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 3 (6 pts), match/switch 3 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a02f74d2a207df1656d851427dace0d519b56baa926f19c1a0ccd7fe278c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Selector::convert_expr_val (cognitive 27): Selector::convert_expr_val has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 4 (15 pts), loops 2 (7 pts), if/else 2 (5 pts) (nesting depth added 19). 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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec720912926c20e53a86dbcce4f8c8d7dbdfc55bcf595543be3d11b96ffc5054"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jsonb::number::format_decimal_i256 (cognitive 27): lance_jsonb::number::format_decimal_i256 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (27 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"949176dae53e2ebf73eda20ff1c530d3d7d028592a25beff6c1aec1da8b39b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::new (cognitive 26): Dataset::new has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (23 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"python/src/dataset.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"831aa6d30c96946b50896dab73bc404c34e5c69f163ac174c0a8fd56b2d16866"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::process_branch_referenced_manifests (cognitive 26): CleanupTask::process_branch_referenced_manifests has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (6 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dbb6ac4c0552257afe8f9cad23c771f8b06258e2abf3db87986538f9cad96a"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_corpus_query (cognitive 26): Scanner::plan_corpus_query has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 5 (7 pts), boolean chains 5 (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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"a723d7ea64ba143538d171af33cf909d2c21ccb82be9504cc3df06c5645828c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_combined_fields_query (cognitive 26): Scanner::plan_combined_fields_query has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 3 (5 pts), loops 2 (4 pts), boolean chains 2 (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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f605da5fb3a4a9fbcd2de44a316345c003d12e90a0aa8f6539762fc4a3e9378"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::fts_rerank (cognitive 26): Scanner::fts_rerank has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2790}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d25ff35217f9295f56f622f5a7b5b395a76e63b3483c4f89798c65f3bfa83a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::calculate_final_projection (cognitive 26): Scanner::calculate_final_projection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"84af4291f6d11d1abf124917bd35c1104e90982d84f12c62abb68c2ae7ca7fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::legacy_filtered_read (cognitive 26): Scanner::legacy_filtered_read has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (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":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"90747c6d1d1fb4dc5438c018791615bb400f80cf2cff916c03c47593a264b404"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::updater::blanks::apply_fixed_size_list_blank_plan (cognitive 26): lance::dataset::updater::blanks::apply_fixed_size_list_blank_plan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (8 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/updater/blanks.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"417b1cbea34b9ca887be7964eccb2f2c6566d172bdb5cd4aea654500f3a9c02e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::prepare_write_schema (cognitive 26): lance::dataset::write::prepare_write_schema has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 11). Of this number, 15 points are the body\u0027s own statements and 11 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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d528aef65559961601d76123ab6f9b250358f8c53ed02c2a3f0b952805a6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::details::apply_runtime_hints (cognitive 26): lance::index::vector::details::apply_runtime_hints has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 1 (2 pts), 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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2a0a421a7f0b0df2c6b332fddceb393507ba4c88f9d7aeb6ae35fb05583ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions (cognitive 26): lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (9 pts), match/switch 3 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e462df28b264446ed535561f40ea3cf78c03d4b61903ac18701714fd83ad16e6"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedFullZipDecoder::slice_next_task (cognitive 26): FixedFullZipDecoder::slice_next_task has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b93cafdc220794fb6a6af616d6b8274ebad933c7b09a297c5a14886184ea3cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanarSparseScheduler::init_from_buffers (cognitive 26): PlanarSparseScheduler::init_from_buffers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, loops 1 (2 pts), match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbac50250d79a5d8407c24e65a0168477f1c513ff9170a6e822e291e4735cac"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::serialize_full_zip_variable (cognitive 26): PrimitiveStructuralEncoder::serialize_full_zip_variable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feb996f7415214f73cebb59f4bceb664c5c34911c4454fc739f6408825c6a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryMiniBlockDecompressor::decompress_range (cognitive 26): BinaryMiniBlockDecompressor::decompress_range has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ff5461400a3a5658dcd6657692f3646769946bc6eeaa3330db5d21cc73f762"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::planar::validate_page (cognitive 26): lance_encoding::encodings::logical::primitive::planar::validate_page has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, match/switch 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/planar.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e86f6a0c072e1911f89c0137f76b59295cfe183d670142bec7673dc0acdbb6b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::sparse::writer::plan (cognitive 26): lance_encoding::encodings::logical::primitive::sparse::writer::plan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/writer.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aea78e932140d173585f1ca57d1e9a488d672519d9d853b8f578b3554c92a10"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::reader::describe_encoding (cognitive 26): lance_file::reader::describe_encoding has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 4 (14 pts), if/else 8 (12 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":"rust/lance-file/src/reader.rs"},"region":{"startLine":2588}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad6f037d7b5073e2ba279525b3c07eb68e536d6c5820e313e45017b7554c6d1"}},{"ruleId":"D2","level":"warning","message":{"text":"BTreeLookup::pages_between (cognitive 26): BTreeLookup::pages_between has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 7 (10 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"be788cc40f9831981c05e642b35179ea684734601d7eb9716576f2079af4bc6b"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingIterator::collect_window_scores (cognitive 26): PostingIterator::collect_window_scores has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), match/switch 2 (5 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c28cd8fe773f87e153a2ae987779b9a91031d6b65a537abac5cacec4a94c321"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoneSplitAssembler::next_zone (cognitive 26): ZoneSplitAssembler::next_zone has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 5, 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":"rust/lance-index/src/scalar/zoned.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9949b93e9e53d067172f1c73a6c0b824b91e047a8853497ec8621646e4ae87d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductQuantizer::transform_impl (cognitive 26): ProductQuantizer::transform_impl has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3 (10 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3b71c62789aea7fee7d9dedf58f1c203f4b2fd4ed9b8cefd95ac0ddc946507"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::score_cross_column_sources (cognitive 26): lance_index::scalar::inverted::cross_column::score_cross_column_sources has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (8 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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d0d7ea5963e2b4279f929763c20992980e6cab4ef99aea2d8692fb373714c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::dist_table_quant::min_max_fold (cognitive 26): lance_index::vector::bq::dist_table_quant::min_max_fold has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 5 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5ca29937817c7e1ffce61ab810a61713f6c1e92e33c7fd276335483285d2e8"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::hnsw::remap::fill_holes (cognitive 26): lance_index::vector::hnsw::remap::fill_holes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 4 (9 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3f26a8efe051e238df4da47ade78499b4b3037690e8e9d197d7f7cefd20ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::pairwise::collect_pairs (cognitive 26): lance_index::vector::pairwise::collect_pairs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 5 (9 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":"rust/lance-index/src/vector/pairwise.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a8d5419487a4d2f5433a3aad1aa0ab9e3cc18f82a44e9f24cc6b16e3cb5de3"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::handle_rewrite_fragments (cognitive 26): Transaction::handle_rewrite_fragments has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"252abbdb6466e158d943b2e5ef5f258f984e87d8d3f7df555fcc4fb2eba68fcc"}},{"ruleId":"D2","level":"warning","message":{"text":"pydantic.is_nullable (cognitive 26): pydantic.is_nullable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). 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":"python/python/lance/pydantic.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"abec50fd4be74724e17b8dc20c90be3df3068c38ff42b8575eba18613417b05d"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundExecutor::block_on_pumping (cognitive 25): BackgroundExecutor::block_on_pumping has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 4 (10 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/executor.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b750a263630589308cda6cf2519bf81d850a70f92a887c3992fd47a2abccc"}},{"ruleId":"D2","level":"warning","message":{"text":"SymbolTable::finalize (cognitive 25): SymbolTable::finalize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6cbdd401ed558590af5dbe104a5254fb909843b50f14e42c79abe09e9fae3d"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::delete_bulk_batch (cognitive 25): CleanupTask::delete_bulk_batch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb27b237187fa5c6287a53bbc4eafd81844ede9590f133cac810ce649a10e39"}},{"ruleId":"D2","level":"warning","message":{"text":"HnswGraph::visit_published_neighbors (cognitive 25): HnswGraph::visit_published_neighbors has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (10 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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce0dacbf37244b4eadeb4af284e7e36bb1b9f0c3787a65e75aedbf33fc07ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::new_filtered_read (cognitive 25): Scanner::new_filtered_read has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7f7eb08e4a474418b78aff7f8ed4f64d6f2bb505cc86aed8bc40cb0d1904d4"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::commit_existing_index_segments (cognitive 25): Dataset::commit_existing_index_segments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56946d05982e1cc5022a9011bd175b1139ffb3919fe7cb1e1bbb8cd0b7b106f"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateIndexBuilder::execute_multi_segment_fmindex (cognitive 25): CreateIndexBuilder::execute_multi_segment_fmindex has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"rust/lance/src/index/create.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc773a4f620bc0512292a568a792c822429008e46c3af02756a8ffd3183081d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::cleanup::build_cleanup_operation (cognitive 25): lance::dataset::cleanup::build_cleanup_operation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 4 (8 pts), boolean chains 3 (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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4498238bfc02aca8f17c5187d9f68499ec4874cffd2a467b279548af0ec7eb12"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::index::frag_reuse::derive_superseded_segments (cognitive 25): lance::dataset::index::frag_reuse::derive_superseded_segments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea6af25abeef9caf0f7ea3d5a86f6ff909b0343b7540c0cdc64209336daab07"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::overlay::plan_overlays (cognitive 25): lance::dataset::overlay::plan_overlays has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 7 (12 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/overlay.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"055e6afdd5b1d64328384716200ca058b4046bf2de2d1e057ed5d0880284deb9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::generate_fixed_training_ranges (cognitive 25): lance::index::vector::ivf::generate_fixed_training_ranges has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 4 (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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3968}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c33de26bb714b8c578cf2ca9212d4ef7e136576e97f84e1c02912449be33be"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::exec::filtered_read_proto::fr_options_from_proto (cognitive 25): lance::io::exec::filtered_read_proto::fr_options_from_proto has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read_proto.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22d179c54c99fb50b3e39f18680ab84e78bd28cae180f07da5a67717a502bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::dict::encode_fixed_rows (cognitive 25): lance_encoding::encodings::logical::primitive::dict::encode_fixed_rows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde11d94e466e6e8178a6ad9b0a0e379120ac3d21662815fab6447381a4e9d3f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShouldMaxScoreScorer::prepare_window (cognitive 25): ShouldMaxScoreScorer::prepare_window has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b1a673f3b37658211c361f5aec70a6802a50bf23862396ac3cb09199730552"}},{"ruleId":"D2","level":"warning","message":{"text":"TopKCollector::collect_mapped (cognitive 25): TopKCollector::collect_mapped has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a9ae36a9c16fc67c9182cd78de1dd69828b1dc925a58a1993a3c33b798d9c2"}},{"ruleId":"D2","level":"warning","message":{"text":"MinHashLshIndex::read_queued (cognitive 25): MinHashLshIndex::read_queued has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/minhash_lsh/index.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"1186a79f801dcd3ad1c25eb225056db7d3e1c750dabf7735406decabf93cbbd9"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketScan::pop_candidate (cognitive 25): BucketScan::pop_candidate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/minhash_lsh/index.rs"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f331f7e56006706dd0ab0ee62efaa1d2b1939ea7085ad94a7cb9114a705f33"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::hnsw::builder::connect_stranded_level0 (cognitive 25): lance_index::vector::hnsw::builder::connect_stranded_level0 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 6 (9 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"0877e5bcc4f79b5f11ba9c1db02dec62f625e7ecca56048010872b8f1c899c05"}},{"ruleId":"D2","level":"warning","message":{"text":"Selector::recursive_select_values (cognitive 25): Selector::recursive_select_values has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (12 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"71afc32102776bc28c41818c206490a1840bd50cf8623d1a74cdb031a9e0bd01"}},{"ruleId":"D2","level":"warning","message":{"text":"Number::compact_encode (cognitive 25): Number::compact_encode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6bde35b6b459057bde90b17ef50e2a727d76e7ff09459013883ba2f662b12b"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestNamespace::create_table (cognitive 25): ManifestNamespace::create_table has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e51e151d79ac3f78f81ceca638897191a021e03f00f5ba9a1e2babe92fc345c"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobPreprocessor::preprocess_field (cognitive 24): BlobPreprocessor::preprocess_field has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"899f08b0b92dc2a3fcc0e7ef03e60a16e615e6a2243bba06187c6f6811092c57"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsMemIndex::expand_fuzzy_term (cognitive 24): FtsMemIndex::expand_fuzzy_term has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2706}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f7fbd59b2d4009fdc93e1b5b16ed21f98ff0f2c6eb96395ea3f977987e1f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmScanPlanner::plan_scan (cognitive 24): LsmScanPlanner::plan_scan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 4 (6 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57aca42bb015a90aff70354d7d5825031a63f672f5ecd6a0f9cc127d60f6d20"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmScanPlanner::build_source_scan (cognitive 24): LsmScanPlanner::build_source_scan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 5 (8 pts) (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":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b1c9a3e66c06cdf245ae38e793b07c6de7da562e19ac0a00e06008193fa6d0"}},{"ruleId":"D2","level":"warning","message":{"text":"SortedPatchCursor::load_next_batch (cognitive 24): SortedPatchCursor::load_next_batch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5a808b56207ddf0bf5d57b9336a61a02256fd31102a6206c40f4c0f598a049"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeState::process_row_action (cognitive 24): MergeState::process_row_action has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cd9a335d478c94e0a840f8a861d75df44c48a67c6b0a975150f0b4ff01f900"}},{"ruleId":"D2","level":"warning","message":{"text":"FullSchemaMergeInsertExec::split_updates_and_inserts (cognitive 24): FullSchemaMergeInsertExec::split_updates_and_inserts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad48f401e2156a3ea15decd944a61a1674795fe832eb83c5b3761cc07c4eb229"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::create_indexed_scan_joined_stream (cognitive 24): MergeInsertJob::create_indexed_scan_joined_stream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 3 (5 pts), boolean chains 3, match/switch 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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3006229ee578c569cb8731912bfe4206f7547672265b1cc0bc47ca147a86849e"}},{"ruleId":"D2","level":"warning","message":{"text":"IvfIndexBuilder::build_partitions (cognitive 24): IvfIndexBuilder::build_partitions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed767ebceabff9842531935ce4ebef82e568571c53f5395e5ea8849d420600b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_data_overlay_txn (cognitive 24): TransactionRebase::check_data_overlay_txn has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed30f4ebf1ccda45ccf5b3a8c732b38aee7f1f2f6b8b13caf5885fbc2343e24"}},{"ruleId":"D2","level":"warning","message":{"text":"FilteredReadExec::try_new_row_stream (cognitive 24): FilteredReadExec::try_new_row_stream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6080a3d73574283a30720e6c385e3ea23999309011b27ea235bb2637c819fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::api::build_index_specs (cognitive 24): lance::dataset::mem_wal::api::build_index_specs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/api.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef0347167b9eecf4c6cabb70850487c07fc3feaa1393a0188e5ad16515b0bf"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::write_root_vector_index_from_auxiliary (cognitive 24): lance::index::vector::ivf::write_root_vector_index_from_auxiliary has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1c27b64f30d0cbc185df9a53789c79b056f63355542d9a3d73b9507c255f1c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::compression::create_fixed_width_block_decompressor_inner (cognitive 24): lance_encoding::compression::create_fixed_width_block_decompressor_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a2737dddddd0d045a51d523978011e073223355d5ed412ad3e1c8c69c52349"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::pack_chunk_f32_into (cognitive 24): lance_encoding::encodings::physical::alp::pack_chunk_f32_into has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 5 (8 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. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::pack_chunk_f64_into) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ecef15f711d1fba4aeabb56fd6a235cf3b614fa0fbd928b9d1d317cc50504d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::pack_chunk_f64_into (cognitive 24): lance_encoding::encodings::physical::alp::pack_chunk_f64_into has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 5 (8 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. This shape REPEATS in the file: one other method here (lance_encoding::encodings::physical::alp::pack_chunk_f32_into) 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc8c1d29e4256e948caa23299e1f66a764196bafeb47b14bb606c367b71c205"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::concat::copy_page_buffers (cognitive 24): lance_file::concat::copy_page_buffers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"1336e91e9d303d68a6c3679cc5a0e19b3c07e0b9f08ef02b56144f93f4ec77d8"}},{"ruleId":"D2","level":"warning","message":{"text":"StablePartitionMapping::remap_row_ids (cognitive 24): StablePartitionMapping::remap_row_ids has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/frag_reuse/stable_partition.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d858a59c50e76f54d62664461eb92af38ab3dc16c7f4476e329d8d84dddbc954"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::flat_search (cognitive 24): Wand::flat_search has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a03f310d79264dd4045c10bcb056678451945f7849ccf70087c982a068bf0b"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestNamespace::describe_table (cognitive 24): ManifestNamespace::describe_table has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 2 (3 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e98b02ec1234c5df219c405f52c6fba20ce8394541aebb8bc2f66cc5a2fae6c"}},{"ruleId":"D2","level":"warning","message":{"text":"StatisticsAccumulator::update_item (cognitive 23): StatisticsAccumulator::update_item has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/arrow-stats/src/lib.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ebb82ff6812dd9a74c0051d00942e26ff130b5c50c864bf9518710e45fe6f"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmFtsSearchPlanner::plan_bound_search (cognitive 23): LsmFtsSearchPlanner::plan_bound_search has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, loops 3, 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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f1b0f306d9a5b034ca53f28173a5b90ee22eaa71cad774ca8c85ba58e3dce6"}},{"ruleId":"D2","level":"warning","message":{"text":"Branches::collect_local_owned_directories (cognitive 23): Branches::collect_local_owned_directories has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (3 pts), boolean chains 2, 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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"038996b595bd2df51d6ba0b0505db86dcfa21a7b9d8c8154362d69c4b3a5e738"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::tracked_files_with_options (cognitive 23): Dataset::tracked_files_with_options has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (7 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/files.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf09798f81c8490fb8e31bc53a409b004dad3a2880947b7d2883a0744468805"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::binary_copy::seed_carry::extract_source_seeds (cognitive 23): lance::dataset::optimize::binary_copy::seed_carry::extract_source_seeds has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy/seed_carry.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8681275f91939ed6076880f7a908f268890ff4d11fb6baac7d7501d1eb4eda4"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::v2::prewarm_partition_window (cognitive 23): lance::index::vector::ivf::v2::prewarm_partition_window has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts), boolean chains 2, 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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f02d878686d0f05d7a4b76cb09c74c5e6871eefa4d12aa1d6a2535f0ee1a24"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::logical_expr::resolve_expr (cognitive 23): lance_datafusion::logical_expr::resolve_expr has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 3 (7 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":"rust/lance-datafusion/src/logical_expr.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82ecf7f3cfdcdbcc5c5d721278a05f7e7c50a3cf0f0faa2c192c455cd647ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"RepDefBuilder::concat_layers (cognitive 23): RepDefBuilder::concat_layers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 4 (7 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2145c3fe24d92d692be080d589f846907b47c6d4bb6fb4fbf3f3c541679e3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"TopKCollector::insert (cognitive 23): TopKCollector::insert has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (8 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"580fa64b317046041d095380bad5f262c4c65cd724fcd17fcb63be2db792732b"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyCodec::ranges_of (cognitive 23): KeyCodec::ranges_of has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), match/switch 1 (4 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":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0c3141c1558a057fc810492972ad9d8fe09c2f6a438dcec5f04d558bc188ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleQuery::try_new (cognitive 23): TupleQuery::try_new has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (9 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":"rust/lance-index/src/scalar/tuple.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd163cd7723b9fc9d95ef6699b0f80e807e858f0c5e6c9b1d8a97981c138be3a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::index::flat_search::tokenize_and_count_list (cognitive 23): lance_index::scalar::inverted::index::flat_search::tokenize_and_count_list has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (9 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"535970f7be16ea1a0768570fb804fd22b06c97e2adc129611e4d8a884189d56a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_io::uring::current_thread::process_thread_local_completions (cognitive 23): lance_io::uring::current_thread::process_thread_local_completions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed0a53e2a6cd908efb636d03a6d96205aac29dbd4cee830f007321f770cdada"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::list_tables (cognitive 23): DirectoryNamespace::list_tables has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaad337e1d1ace7319f0eef272f66c6b9571127ec13ed384c8be4232715bd2f"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::apply_query_params_to_scanner (cognitive 23): DirectoryNamespace::apply_query_params_to_scanner has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/query.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0d8f1955c210e5f20f81909c6edc77ba0b7c80780e761ad359c5e6c78dabc7"}},{"ruleId":"D2","level":"warning","message":{"text":"RowIdIndex::probe (cognitive 23): RowIdIndex::probe has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be870638e53458915a92a6caf493f33d7c8b2063494963885a9c0894618cb58"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateConfig.\u003Cinit\u003E (cognitive 23): UpdateConfig.\u003Cinit\u003E has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (5 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/operation/UpdateConfig.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97231ec20c5c1a3580c95c5bac38b6e611e37d4dd1fe15d77a8a577571d9f43"}},{"ruleId":"D2","level":"warning","message":{"text":"lance.dataset (cognitive 23): lance.dataset has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4 (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":"python/python/lance/__init__.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9164aa75b4769d49355f4e7e4e16c3d0326ca63c383acb518b1fffdf8a650f77"}},{"ruleId":"D2","level":"warning","message":{"text":"maintain.load_job (cognitive 23): maintain.load_job has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/lance-table-maintenance/scripts/maintain.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"349019afd711b39617278ec3b4b90bf5451255c3f3a992b73e790cf84aff1908"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::file_reader::Java_org_lance_file_LanceFileReader_readAllNative (cognitive 22): lance_jni::file_reader::Java_org_lance_file_LanceFileReader_readAllNative has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/file_reader.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c7c073d4bb464a9b10ece4eca0f16c3ce629a58d10c0cf454411a8f3a64f13"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmVectorSearchPlanner::plan_search_with_probe_bounds (cognitive 22): LsmVectorSearchPlanner::plan_search_with_probe_bounds has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d5c364e533325318887825cb50f9b1d10c7d70e6fa8b3936d0d1497da1e8f4"}},{"ruleId":"D2","level":"warning","message":{"text":"PlannedHopRemapper::remap_row_ids (cognitive 22): PlannedHopRemapper::remap_row_ids has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 4 (8 pts), match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"20923307bfd4c81f1dfcaf987894f21d2b888d95956d9788d8142c5b693bf3ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Updater::update_batches (cognitive 22): Updater::update_batches has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/updater.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e5af075b85bde12e08d1b359bb3fd0d058b3d9fd1623ed934586a8e7d5c10b"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateJob::execute_impl (cognitive 22): UpdateJob::execute_impl has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b58aafd279a4244921f9822d2c647be37f38241a71a990cbd8d2e1692327f94"}},{"ruleId":"D2","level":"warning","message":{"text":"TileJobs::next_job (cognitive 22): TileJobs::next_job has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/dedup.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7966a7cfb69c9620b70c3c6e7ef63491a10f00d5d1f555b8682887dcaac9bd59"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanQueryExec::execute (cognitive 22): BooleanQueryExec::execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 7 (11 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":"rust/lance/src/io/exec/fts/boolean.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bde729ffff855c1c565bb9c9525bffd404ca2329ba6992f3c338898b45d6be"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::tail_phrase_group_docs (cognitive 22): lance::dataset::mem_wal::index::fts::tail_phrase_group_docs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"496046634af260c1f3b467ae6c1675dd21bd15ea5d7bbdaf39bd89bda1491be7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::validate_and_resolve_target_bases (cognitive 22): lance::dataset::write::validate_and_resolve_target_bases has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (6 pts), boolean chains 3 (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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef1ca2e0374bfcd54df29fe116e4e6d6b1ea730713de7f8afa3d0eca7784426"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::validate_committed_vector_segments (cognitive 22): lance::index::vector::ivf::validate_committed_vector_segments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (7 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"50737a470310045bfd9b35ea034d912cf266f0e6de2def8f56db10e2ee6aa117"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFieldEncodingStrategy::validate_v2_0_array_reachability (cognitive 22): ArrayFieldEncodingStrategy::validate_v2_0_array_reachability has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"623bc7b29d2169482e028a7d7b5b3e79fcba8bf3651ef489df414613cffa2052"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::repdef::build_control_word_iterator (cognitive 22): lance_encoding::repdef::build_control_word_iterator has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (21 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2775}}}],"partialFingerprints":{"codehealthFindingId/v1":"997f9e73cdfffb091135fd4b870fce62d070a937afcde0173c00d92ddeb5864d"}},{"ruleId":"D2","level":"warning","message":{"text":"PageBufferReader::new (cognitive 22): PageBufferReader::new has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (8 pts), 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":"rust/lance-file/src/concat.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"015225369a1c4b527b9d78c5ff9d1f05fc9e63277b689c71c5d1d0ef4d64b11a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_file::concat::check_compatibility (cognitive 22): lance_file::concat::check_compatibility has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"637abfa5be30b586e1b809edd5ebbc5ae7aa3d4774cebe0bd850065a9b271dee"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndexBuilder::merge_existing_segments (cognitive 22): InvertedIndexBuilder::merge_existing_segments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bcb9b4113956cbfe75800b029df0e82d6f282d20e23a23742f46ae1d9df426"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedPartition::fetch_posting_lists (cognitive 22): InvertedPartition::fetch_posting_lists has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, match/switch 3 (5 pts), loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a6a1a38a0759c9744fbd799515167e3f223831d043852b4a6f209e71ff0ed0"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenSet::get_many (cognitive 22): TokenSet::get_many has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 3 (10 pts), if/else 3 (6 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 12). 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":"rust/lance-index/src/scalar/inverted/index/token_set.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3087f69b8e3fa1cea5c440cc468f8073fefcb40a5dc9575acd271ab6136e33f1"}},{"ruleId":"D2","level":"warning","message":{"text":"IvfShuffler::shuffle_to_partitions (cognitive 22): IvfShuffler::shuffle_to_partitions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (6 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":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d9ecb096e323e0a3e52c46669779bf6d96c2996726fa862f544aaf713b57ff"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::wand::phrase::exact_phrase_scan (cognitive 22): lance_index::scalar::inverted::wand::phrase::exact_phrase_scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/phrase.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf53ef4e27d70fa079700352d6803e5a94e9b6788cd3a8f80dd7fc4b2b4ac30"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::tuple::planner::key_ranges (cognitive 22): lance_index::scalar::tuple::planner::key_ranges has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (9 pts), loops 3 (7 pts), if/else 2 (5 pts), boolean chains 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/tuple/planner.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b898ac6217f632100ced1819efdd0cc9c249d2aa42bafce0de8b935ffd6e4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"GooseFsStoreProvider::parse_decimal_times_unit (cognitive 22): GooseFsStoreProvider::parse_decimal_times_unit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (18 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/goosefs.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caefb3034de110cb0d5153779230a9cdc5c059746a27593fd8a9a41f8525f24"}},{"ruleId":"D2","level":"warning","message":{"text":"AimdHttpService::call (cognitive 22): AimdHttpService::call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"048f84c83b3318e4ba71989fead426e08effda3c4f0bf44e5fe53a6b49b0178a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_io::uring::thread::process_completions (cognitive 22): lance_io::uring::thread::process_completions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/thread.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"804b501202eb564c3a3b282d9b85fdf8987444847f61131c0338c1b129de1a46"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::handle_rewrite_indices (cognitive 22): Transaction::handle_rewrite_indices has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"51835e4b2a284d21dc7adbec0db902f2b100e859c5fc042cd82e620075173a14"}},{"ruleId":"D2","level":"warning","message":{"text":"RowIdIndex::get_many (cognitive 22): RowIdIndex::get_many has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 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":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"4631ed51d6c383b731c441ad50a06a69ea372cf21fae3336c76065e5e617c34a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::transaction::validate::merge_fragments_valid (cognitive 22): lance_table::transaction::validate::merge_fragments_valid has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd96963d467e57f93993c9588eab4c87618dd02ed779950a54c97ff26e29ede9"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteDatasetBuilder.executeWithNamespaceClient (cognitive 22): WriteDatasetBuilder.executeWithNamespaceClient has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/WriteDatasetBuilder.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc4ba95dcf5b41b9aff42f8aefe10d4d0e356f1f828bf0ad0869cdde333273b"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceDataset.shallow_clone (cognitive 22): LanceDataset.shallow_clone has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddd91b3958f70b0aebff664732b12298971c6a24af4e17df68fadca4bbc6039"}},{"ruleId":"D2","level":"warning","message":{"text":"data._to_tensor (cognitive 22): data._to_tensor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/torch/data.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f1afa1f6de888469e889fc01f327e595d50ef476fdb477dba2d06310227b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmFtsSearchPlanner::resolve_column_index_contract (cognitive 21): LsmFtsSearchPlanner::resolve_column_index_contract has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddead8bdd5d8f52a67b5d1bd70bb76365b2daf77fae688748da8bf022a9d676"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardWriter::drain_for_close (cognitive 21): ShardWriter::drain_for_close has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"223f07051a5a996a409830008c590ecaca8536b2aa28f5b8f211a943fb84fa29"}},{"ruleId":"D2","level":"warning","message":{"text":"OutputSeedAccumulator::finish (cognitive 21): OutputSeedAccumulator::finish has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (6 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy/seed_carry.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bb1c1161fc25fbbdb16e09660943faf2acdbc71368afa92d0331e4b173b329"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::load_scalar_index (cognitive 21): Dataset::load_scalar_index has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccab596bb24f3c9a822cd9886d508ebb9634847d539a6dba1beda98f831b188"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightedCoreset::reduce_to_budget (cognitive 21): WeightedCoreset::reduce_to_budget has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 5 (8 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4934}}}],"partialFingerprints":{"codehealthFindingId/v1":"901f8fcaed3129cce3826980dfe3a15e84f95fb38c75e9fbb2db363b8b0427c5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::blob::clone::replace_array (cognitive 21): lance::dataset::blob::clone::replace_array has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (7 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/clone.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f26495679c35297783af17095bba3ab0ca633e7b9668d9126c0b8944e82eb0c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::blob::prepared::prepared_blob_to_descriptor (cognitive 21): lance::dataset::blob::prepared::prepared_blob_to_descriptor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/prepared.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d080b4c5cc498cac13a92fd676f006d48564184f1b2bccba89bea6a388f74d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::patch_transition_stable_partition (cognitive 21): lance::index::frag_reuse::patch_transition_stable_partition has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (20 pts), 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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20db58388009be522e907d86dd61248753ea1c09d37b3a907286de88223bab6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::optimizable_indices (cognitive 21): lance::index::optimize::optimizable_indices has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9242aea70c48e24789ebded45c695c370d001079f7279deda31252a4494c2e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::scalar::inverted::append_row_text (cognitive 21): lance::index::scalar::inverted::append_row_text has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (8 pts), match/switch 2 (3 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2616f3ca36c085f21230c527f1ea906a1ba03d16e7d1eb762e8c15972e67d3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::streaming_hamming::train_hierarchical (cognitive 21): lance::index::vector::ivf::streaming_hamming::train_hierarchical has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7d8cfb85bf23faab2ea382db68637aabf4372c75a4988b7933b3d6aa176f86"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::rewrite (cognitive 21): lance_datafusion::numeric_coercion::rewrite has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebae30aa9ca825e94d5c2d43cc9087b9d6f4daa2385c27a890d722203cebfb6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion_exec::exec::collect_execution_metrics (cognitive 21): lance_datafusion_exec::exec::collect_execution_metrics has cognitive complexity 21 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (6 pts), match/switch 2 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1341fcca0aea0507707dc30a080f45c758d654b31005a403821ac84128b81ef"}},{"ruleId":"D2","level":"warning","message":{"text":"NGramIndexBuilder::stream_spill_reader (cognitive 21): NGramIndexBuilder::stream_spill_reader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de5745a10beccfc7705fd9b1c103715dc143e69616111c7f708b7ed14e36738"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoneMapSeedWriter::decode_seed (cognitive 21): ZoneMapSeedWriter::decode_seed has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d9bce67894da5958fd786a783ee83de42cbc31b8b05a443c6f1b8855ecd09"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::final_query_tokens (cognitive 21): lance_index::scalar::inverted::final_query_tokens has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"350178a24158453dcc4dcf3bf6e80c105d50590f730c5afaee31434a900e4385"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::encoding::seek_packed_doc_positions (cognitive 21): lance_index::scalar::inverted::encoding::seek_packed_doc_positions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 5 (9 pts), boolean chains 1 (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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"395625d9533526e40a9692874d2eaaecce8f64815a148005d59e27ffb8863efa"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::ex_dot::pack_block (cognitive 21): lance_index::vector::bq::ex_dot::pack_block has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 2 (4 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"271aadcc6fc64eb7aa6f6c8501d27e1c368175be039b60af50aef3b370ca88c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr::fmt (cognitive 21): Expr::fmt has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/path.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b4f2bdff9b080e5e98997951c44c2159b263314137d42a8b8adfa71408c4b6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jsonb::util::parse_escaped_string (cognitive 21): lance_jsonb::util::parse_escaped_string has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/util.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc508d036dd9a053b122c476d996bec3a043a04330fc3a2c618b821c159e7cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::build_index_params (cognitive 21): DirectoryNamespace::build_index_params has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (20 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/index_params.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bcc1aeda46e6fa5201dadc31c67ec138c7db86327eca3da0225498964e9363"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryNamespace::list_versions_under (cognitive 21): DirectoryNamespace::list_versions_under has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (4 pts), loops 2, 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":"rust/lance-namespace-impls/src/dir/versions.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b902f04ed311a5154fa262632e503c20d318cfe74b4562f6eb9c3413696cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"FragmentRowIdIndex::get_many (cognitive 21): FragmentRowIdIndex::get_many has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 2 (4 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index/sparse.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab58b60fd90ddb04a61874b511d88c0b01e90a7dd40d49523f46221507d951e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::rechunk_sequences (cognitive 21): lance_table::rowids::rechunk_sequences has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7051b6e091a0672ad6a0431404c065fb1b52a853f4bf0b5384deadcc710c16dd"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::system_index::frag_reuse::remap_fragment_bitmap (cognitive 21): lance_table::system_index::frag_reuse::remap_fragment_bitmap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 4 (10 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75e7dad917ccf4e703a9104fb2e3c760e61547a557e477fcae54a12a548797d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::transaction::validate::schema_fragments_modern_valid (cognitive 21): lance_table::transaction::validate::schema_fragments_modern_valid has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 8). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 2 function items inside it that branch (check, subtree_has_present). 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":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"48001fc192a9b832d6287681dee03f846bef98b1b891bb5c4a526b4d08447c14"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::utils::stream::wrap_with_row_id_and_delete_impl (cognitive 21): lance_table::utils::stream::wrap_with_row_id_and_delete_impl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 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":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82d8e6ed236a47e7004a62ae65d7a2716339d406f75bcd60f15246951a4acc2"}},{"ruleId":"D2","level":"warning","message":{"text":"sampler._filtered_efficient_sample (cognitive 21): sampler._filtered_efficient_sample has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/sampler.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8290035ff52c8ef3a96dda9c2b4a39e46ff07e994b3e52ac5f2444556dae832"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::commit_transaction (cognitive 20): Dataset::commit_transaction has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, match/switch 4 (8 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0653ec8df08a88a7527452c590831221e5ab54934214b8aa1f0934e53e48b59"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsTokenizerOptions::apply (cognitive 20): FtsTokenizerOptions::apply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fts.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49dcca0a97526812bfa39e85e16dc0c19f6491ae6cef7b18267052396a08edc"}},{"ruleId":"D2","level":"warning","message":{"text":"pylance::dataset::writer_config_from_kwargs (cognitive 20): pylance::dataset::writer_config_from_kwargs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 2 (5 pts), match/switch 1 (4 pts) (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8675c034d1f1f892c22bcffecae1a091635e4b2053cd736852a8412c55673a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobPreprocessor::rewrite_sidecars (cognitive 20): BlobPreprocessor::rewrite_sidecars has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"63126e23e6a78816ec80ce0fecf8cac7986ab1b3164ce45453fd8ba474fb2ec5"}},{"ruleId":"D2","level":"warning","message":{"text":"FileFragment::open (cognitive 20): FileFragment::open has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d14540fd2a4db86d9b75cb6d30067c08ada9fa92cd4fdeb2ff108c76ba2e68"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardWriter::open_inner (cognitive 20): ShardWriter::open_inner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bd02aa6417e2448df21616b89aedf279968fa7331b4618895efd2b8b811ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::scalar_indexed_scan (cognitive 20): Scanner::scalar_indexed_scan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2, 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":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bac111a6fd5a3c1e2310f04a237ffcc4dcd632a1333e9dcacccc9185cdfb1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::flat_knn (cognitive 20): Scanner::flat_knn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b454263e040265102bc45bd93ecf2bbeadc206151e759f5de460fa55e21495"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::load_manifest (cognitive 20): Dataset::load_manifest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a31db9540d807609acecfa1ebaa02a7e19a750b74fec5637132fbcbabddec79"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::open_vector_index_from_metadata_with_plan (cognitive 20): Dataset::open_vector_index_from_metadata_with_plan has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 7, boolean chains 2 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea546cc018f73a079878b9e99edc5865dd7153768ef3d6888e3415feb4b1d134"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionRebase::check_add_bases_txn (cognitive 20): TransactionRebase::check_add_bases_txn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (7 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b7c14965114934533fa9ce4740434103be14a8ecdfe1f223b5a0140aa99c73"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::execution::fit_row_lineage_to_written (cognitive 20): lance::dataset::optimize::execution::fit_row_lineage_to_written has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"8989082407812aed22e0e5b20b4e41a01c7dc68c92b28d4d3aa0d58073d674e2"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::scanner::fts::collect_fts_columns_in_order::visit (cognitive 20): lance::dataset::scanner::fts::collect_fts_columns_in_order::visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), boolean chains 3, 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfe8dd3535e861150f68a5558b7af3a08071463531b6047db0638d0b24df518"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::train_ivf_model_from_sample (cognitive 20): lance::index::vector::ivf::train_ivf_model_from_sample has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b02f37c54fba332f61ff2d9503cea0896485b1fd71e18ac4a961386e53ff13"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::train_streaming_coreset_ivf_model_with_algorithm (cognitive 20): lance::index::vector::ivf::train_streaming_coreset_ivf_model_with_algorithm has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5819}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fcebfe2820fc5f84bee7cb0f467b91e01c62aacb5fd6e04425c8e86051b4a7"}},{"ruleId":"D2","level":"warning","message":{"text":"DeletionVector::build_keep_mask (cognitive 20): DeletionVector::build_keep_mask has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (15 pts), if/else 1 (4 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/deletion.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f6655de6782bcc4a0f13bec513419d6a01c17635f45d6fdd8c056fe11edbfa"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::lower_decimal (cognitive 20): lance_datafusion::numeric_coercion::lower_decimal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04051ce6e2b6406bfa0dc4ef86693c2603a11e38303bff3a0c577f09659180c"}},{"ruleId":"D2","level":"warning","message":{"text":"DictionaryDataBlock::gather_fixed_width (cognitive 20): DictionaryDataBlock::gather_fixed_width has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cdd11ed0a427b8b415bb69e4c01115eda6ae0021084e1d1de7090e42147e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::serialize_full_zip_fixed (cognitive 20): PrimitiveStructuralEncoder::serialize_full_zip_fixed has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4317bff6c599860de2f282f2c8482c534595c2247f67d0047d4392c25bf41d5"}},{"ruleId":"D2","level":"warning","message":{"text":"VariablePackedFieldData::append_row_bytes (cognitive 20): VariablePackedFieldData::append_row_bytes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a6d34130bb4246cc1411a8a789886e1405ab778df534575fab946d10f22fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"AccumulationQueue::insert_with_pages (cognitive 20): AccumulationQueue::insert_with_pages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/utils/accumulation.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a3791778daa71e4f2c08c413907ce72b3c78c284c48fe5fe38afc65e9a8715"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::field::for_each_page_range (cognitive 20): lance_encoding::encodings::logical::primitive::field::for_each_page_range has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb5ebdb306c96e3a6b698d337d26182767bd2d1e90186d6c1f8cb09be99aa48"}},{"ruleId":"D2","level":"warning","message":{"text":"RTreeIndex::search_bbox (cognitive 20): RTreeIndex::search_bbox has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (5 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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1621019bf46cca70b94a7fc32608853f51a254282c12ba440f49446abe4de6"}},{"ruleId":"D2","level":"warning","message":{"text":"BloomFilterIndex::evaluate_block_against_query (cognitive 20): BloomFilterIndex::evaluate_block_against_query has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e577efc3271a5b73f426460a9f5971e06d4f6f990c13d84d0bcd44f8ffdbeb"}},{"ruleId":"D2","level":"warning","message":{"text":"ShouldMaxScoreScorer::ensure_confirmed (cognitive 20): ShouldMaxScoreScorer::ensure_confirmed has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7dac657645a6a4c96cda8c9f19ab228de908e8d6c51942dfe938919cee14f7"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingIterator::take_docs_one_block_upto (cognitive 20): PostingIterator::take_docs_one_block_upto has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"53294163af1f41e893fc1d1b55cd487686868aa834f6def91d55fb4737a011b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::and_bulk_search::merge_window_docs_pairwise (cognitive 20): Wand::and_bulk_search::merge_window_docs_pairwise has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 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. This shape REPEATS in the file: one other method here (Wand::and_bulk_search) 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":"rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2a426c0722462433e7fd90cb2b70a44609f07e3e66eb75f494c5ae5ed35acd"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::combined::stats::build_combined_bm25_scorer (cognitive 20): lance_index::scalar::inverted::combined::stats::build_combined_bm25_scorer has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 5 (7 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":"rust/lance-index/src/scalar/inverted/combined/stats.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbbdc38e50d228f9516a409d15b17eb387b2b3172789dfb51d70a9cf34ffd2f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::cross_column_compound_search (cognitive 20): lance_index::scalar::inverted::cross_column::cross_column_compound_search has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec323b580faeb0e5d8978017d63a1dfe6e3fa5bbe80b074a89b33fd23e7dee57"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::index::flat_search::tokenize_and_blend_multi (cognitive 20): lance_index::scalar::inverted::index::flat_search::tokenize_and_blend_multi has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (8 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":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a51f9e4584790754d59435616bf9818e9bb440f4349abd42bd17076d3d339a"}},{"ruleId":"D2","level":"warning","message":{"text":"Interval::fmt (cognitive 20): Interval::fmt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (20 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/extension.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2d0212f5f62154cd4f6f128c030b49c1ca7cd18eda376aba59784b27e073f3"}},{"ruleId":"D2","level":"warning","message":{"text":"RawJsonb::partial_cmp (cognitive 20): RawJsonb::partial_cmp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 5 (6 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/raw.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa4c949a477788c49ee103b64ca49d84c7f59d3cca67bc2219024d339e3d8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Value::cmp (cognitive 20): Value::cmp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/value.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b4fff7416763d29075929950c5d88c28921a3ce49a273ea5cf2e323f214a77"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentCursorState::extend_range (cognitive 20): SegmentCursorState::extend_range has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2434564c11ec8f5b2b35accd3cbea8459e99047093238bebf4c746968fe5cdf0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkEncoder::flush_chunk (cognitive 20): ChunkEncoder::flush_chunk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a17cc2960c621bf9e9f4bf11ac69f07b3f3d6835ab72c2222ced4440eab6f97"}},{"ruleId":"D2","level":"warning","message":{"text":"scanner._coerce_query_vector (cognitive 20): scanner._coerce_query_vector has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eb962342f215a1c2f830313549dc750748ad2160cac8320ed686cd2bafba27"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetDelta::resolve_range (cognitive 19): DatasetDelta::resolve_range has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0ea958d9333a633ef2494dbd10419965b49d6250e2153513a3a22b092ff55d"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsMemIndex::search_match_strings (cognitive 19): FtsMemIndex::search_match_strings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6dba4707e1d4c59e9e9ff4adb815b4a0560f7575e903e07c34c08dd9b504c4"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableBruteForceVectorExec::materialize_rows (cognitive 19): MemTableBruteForceVectorExec::materialize_rows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1756f88959df970fd83c985b797c6cb7c2ca99a22a2fd539233ffa5091cc8072"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorIndexExec::materialize_rows (cognitive 19): VectorIndexExec::materialize_rows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1e7ddc6f4b635cc8371170a1fe231bdb8777d02b0700da096de2cfcb7f5159"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::fts_document_granularity (cognitive 19): Scanner::fts_document_granularity has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 7). None of this is in the body itself: all 19 points belong to 2 function items inside it that branch (visit, add_leaf). 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9b899f2fecaabc284966525ac6bdd57700f792d3a674d29e0b0b243be4d71a"}},{"ruleId":"D2","level":"warning","message":{"text":"FullSchemaMergeInsertExec::process_and_split_batch (cognitive 19): FullSchemaMergeInsertExec::process_and_split_batch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"96df2d151fe466d03ade6f689f3ae068a9f7fb33db942058e1e20cbffb21877d"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatCombinedFieldsExec::execute (cognitive 19): FlatCombinedFieldsExec::execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 5, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_combined_fields.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764970dab1a5e70ea7a7f1940c2252903569ec6eba8cf9981fed6e5332d83de"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveRows::filter (cognitive 19): LiveRows::filter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/ordered_index_scan.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2523a003ea570b0af3a5eb0f2e0b09414bdd12aa299a51b3ede05c7d6d08dedb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::combine_boolean (cognitive 19): lance::dataset::mem_wal::index::fts::combine_boolean has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (13 pts), if/else 3 (6 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3792}}}],"partialFingerprints":{"codehealthFindingId/v1":"251d1a47d639350cec0357443df008214e186cf6ad8d13376537668d2f02d50f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::scanner::exec::pk::compute_pk_hash (cognitive 19): lance::dataset::mem_wal::scanner::exec::pk::compute_pk_hash has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (18 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/exec/pk.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f606b05c12c6e9b8bc9c0794e68d41faead176841f1face2e3731ed159e66d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::collect_tagged_row_map_paths (cognitive 19): lance::index::frag_reuse::collect_tagged_row_map_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2661}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dade50aa64faf4c4fef53b3854eec8cf4c12cae91e1d3054054da7fb7e2758"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::commit::detect_overlapping_fragments (cognitive 19): lance::io::commit::detect_overlapping_fragments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (7 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":"rust/lance/src/io/commit.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"96349739ca84d92b7ff05d1b98b5ddfbb79dbf92c028a74659e4267237c64dde"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_arrow::json::convert_json_array (cognitive 19): lance_arrow::json::convert_json_array has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35b1fc1cf0a107d4a54307f4e2210ff9641bd78bf2d84cad0b1ea18fbbe3b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Field::project_by_field (cognitive 19): Field::project_by_field has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ba93c73253cb84433b57fc3e8d33c1e63bd9c27cb886cffa692752ab5c59a"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactRowAddrRemap::get_by_fragment (cognitive 19): CompactRowAddrRemap::get_by_fragment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bd799bed055c24fb94f7466a41f9c2adcc5eacb926b4fb330589d77f72d43d"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchReaderChunker::next_sized (cognitive 19): BatchReaderChunker::next_sized has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/chunker.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbee459007bf24b16f59cbe3909aacbec61faa5bd1a9e8903d1676ae4deef8f0"}},{"ruleId":"D2","level":"warning","message":{"text":"DictionaryDataBlock::into_arrow (cognitive 19): DictionaryDataBlock::into_arrow has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 3 (4 pts), boolean chains 3 (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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0db0894115d24ee00d4d676c64f7f1eb459617e5d9830a5cf7321d755961958"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobPageScheduler::schedule_ranges (cognitive 19): BlobPageScheduler::schedule_ranges has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/blob.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"862cc833fb9dabde8bc36fe3acd85ec60607892109f0bed4b142b3f485398df1"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::axis_delta::try_tensor_per_value (cognitive 19): lance_encoding::encodings::physical::axis_delta::try_tensor_per_value has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, loops 2 (3 pts), match/switch 3 (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":"rust/lance-encoding/src/encodings/physical/axis_delta.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"89094910353b27120c36d0bd1e6d755c05d63f11f7b932be024e48207de40695"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::binary::build_generic_chunks (cognitive 19): lance_encoding::encodings::physical::binary::build_generic_chunks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87ba349a4b84b5e3e97c50b37e87c390c0a5ac37706fcf66251242b5b4636d2"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::sequence::select_block_codec (cognitive 19): lance_encoding::encodings::physical::sequence::select_block_codec has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (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":"rust/lance-encoding/src/encodings/physical/sequence.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"982f32095d33a06ce42d7eef5ab8b7942e062106026e6e6702eb944a54081be9"}},{"ruleId":"D2","level":"warning","message":{"text":"RTreeIndexPlugin::write_index (cognitive 19): RTreeIndexPlugin::write_index has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 4 (9 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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1c67ba007a19f8f0dbaf9b5f3ed5295b10ef4117e3a423ba47a14b47942ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"BTreeIndex::merge_segments (cognitive 19): BTreeIndex::merge_segments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"465c3d1aaa56206451b4a8b24ec61814e39a41a0b6aee9fe0298524ff4f5b962"}},{"ruleId":"D2","level":"warning","message":{"text":"ScalarIndexExpr::optimize_and_leaves (cognitive 19): ScalarIndexExpr::optimize_and_leaves has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04d5ed0a70339faf50b6dad7924714d6304afa604df751af0d68a2f575a1780"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanScorer::try_new (cognitive 19): BooleanScorer::try_new has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3420}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2581cdc691c71b0268be86d687b4afcba58149bd57a73b07ab79c82cda9860"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndex::bm25_search_modern_candidates (cognitive 19): InvertedIndex::bm25_search_modern_candidates has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (4 pts), boolean chains 2, match/switch 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":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"b679067655522003161667a2b04b8998b0b34778cce480d0b31f5cc55d9c9c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingListReader::build_packed_groups (cognitive 19): PostingListReader::build_packed_groups has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 5 (8 pts), match/switch 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eb2224840fe923aec61369a22059825b0bee861ad112b0505662c2afdf79de"}},{"ruleId":"D2","level":"warning","message":{"text":"HNSW::search (cognitive 19): HNSW::search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3f5211406ba5771e71daa5a7ffe9bae588c1270bf55fa9082cea291559a6fe"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineHnswBuilder::insert_with_generator (cognitive 19): OnlineHnswBuilder::insert_with_generator has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (9 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/online.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b74b18feecc4b3eff73f81969209ab65b1a72bc5cabf967c9bb078179257ca"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::cross_column::validate_modern_row_indices (cognitive 19): lance_index::scalar::inverted::cross_column::validate_modern_row_indices has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6195245ae753c0e0d71868fd4b46ec7db54b92627d35e3fe31a9c12e003b803"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::index::flat_search::flat_bm25_score (cognitive 19): lance_index::scalar::inverted::index::flat_search::flat_bm25_score has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1c5aea116f9e8c7e204bed7357bfd3c6b74328d85d457b9c88dc310de92b54"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::pq::pairwise::x86::lookup8_avx512_vbmi (cognitive 19): lance_index::vector::pq::pairwise::x86::lookup8_avx512_vbmi has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (15 pts), if/else 2 (4 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":"rust/lance-index/src/vector/pq/pairwise.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"75caaa2f0f9b32507d0c9230f6894dc734f08ce51ba60317978bb924067e4f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Deserializer::read_with_jentry (cognitive 19): Deserializer::read_with_jentry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (3 pts) (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"769e0ff5fcd980bb110b9626462f1bef1d8ffea1ac520b17d0769295af0c76b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Number::rem (cognitive 19): Number::rem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4195ce6f3e4e314326140b0dd3924104f79cd19896dc569e26b0cb551e43c53f"}},{"ruleId":"D2","level":"warning","message":{"text":"RowAddrTreeMap::from (cognitive 19): RowAddrTreeMap::from has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 1 (4 pts), match/switch 1 (2 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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b92e0a3cb12a898027196d3ee9221a2b892f85c868baa4ff63d1b561b8170b"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::apply_mem_wal_index_coverage (cognitive 19): Transaction::apply_mem_wal_index_coverage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c37db6641b0fccd20e741522b4ed13cc0cfde61bbbab11777c9172da5250d0e"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::prepare_indices (cognitive 19): Transaction::prepare_indices has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f703b036f693eb5d62f90d780e22ce45663d69bf696dfe6cfdc189837e69f9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::io::commit::current_manifest_local (cognitive 19): lance_table::io::commit::current_manifest_local has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c55c0a39342b7ea905ec7dbad867c9342eaaa46f9e27ce62ea9b9af7c5ab53"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::index::prep_index_chunks (cognitive 19): lance_table::rowids::index::prep_index_chunks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff32fc4c521874169e67a299f6090eab1446ca0ed2838109f70be7e49a5e2b6"}},{"ruleId":"D2","level":"warning","message":{"text":"scanner._needs_substrait_placeholder (cognitive 19): scanner._needs_substrait_placeholder has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, loops 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":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c10f82dd89ba16ae6709cbe159b2cf92506cbb3039cf804953142cf2a84497"}},{"ruleId":"D2","level":"warning","message":{"text":"new_contributors.resolve_usernames_via_api (cognitive 19): new_contributors.resolve_usernames_via_api has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/new_contributors.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bb4e753e33a4b279954696b26931d2922be4f439a4c6ce25a7fa03a9d36510"}},{"ruleId":"D2","level":"warning","message":{"text":"new_contributors.main (cognitive 19): new_contributors.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 6 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/new_contributors.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a092612abca82a4dbfd690d7cfedd4557effd2c48d43d2770d147a48e3f1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::transaction::inner_commit_to_uri (cognitive 18): lance_jni::transaction::inner_commit_to_uri has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"33949edc0b2f2121efe2765dbb6aa5d4e4f5d4b3d01ff9a28b3b2d81ce104af2"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceTableProvider::scan (cognitive 18): LanceTableProvider::scan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 2 (4 pts), match/switch 2 (3 pts) (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":"rust/lance/src/datafusion/dataframe.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"038b090d9aedf3976e2cabfe145c267905c111939f05bfe3be09d9aef88fa487"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetDelta::scan_rows (cognitive 18): DatasetDelta::scan_rows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, 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":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d58a1663194b040ac72d1733528d892a6c4dee43cfa00f2188a400015604fc2"}},{"ruleId":"D2","level":"warning","message":{"text":"Partition::from_tail (cognitive 18): Partition::from_tail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4512}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc442778f3f8a58369e9f93a319111dc26d3e6626a2617537b75a2296082c7b2"}},{"ruleId":"D2","level":"warning","message":{"text":"MemTableBruteForceVectorExec::prefiltered_rows (cognitive 18): MemTableBruteForceVectorExec::prefiltered_rows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5574fe1496493c069649042863a6ff62c228444fec98e09f40a1131ff59b27f"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::plan_fts (cognitive 18): Scanner::plan_fts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"47332d2d42cf09658e2e124c886208b799c0601150392e391b77208187f022e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlQueryBuilder::build (cognitive 18): SqlQueryBuilder::build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/sql.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a5648c496866f85d882ccc71fd733998e7ea2d6d62793646af98a2c36a1418"}},{"ruleId":"D2","level":"warning","message":{"text":"SortedPatchCursor::merge_batch (cognitive 18): SortedPatchCursor::merge_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd0d9aba3876a2fc7a50cae8fab0170ea409497e443094af67f43755948c73c"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::apply (cognitive 18): Evaluator::apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 2 (3 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/condition.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"175e3350604b48004b3bb22b264f1963e4c8063fd37e668e1963b54f6160e8b1"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeInsertJob::can_use_create_plan (cognitive 18): MergeInsertJob::can_use_create_plan has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (5 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d9df819385ebdf000092f89162e9e741c9c77f582a6f5bd7aebff2861c7271"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetPreFilter::create_deletion_mask_impl (cognitive 18): DatasetPreFilter::create_deletion_mask_impl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/prefilter.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd59476f4433ac5cc701e99a3d29eeccb33479bd55deb500712644030071344"}},{"ruleId":"D2","level":"warning","message":{"text":"PQIndex::search (cognitive 18): PQIndex::search has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/pq.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c657d854193974975e6ee5377f8d55b98f6b80da1f62a69ac84abfa0cab0ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoProbePolicy::apply (cognitive 18): AutoProbePolicy::apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 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":"rust/lance/src/io/exec/knn/adaptive_probe.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6669e6e05efd7e7ab0221dd70ba92c4c3ed9404e9362b0bd56c0c09979789ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::blob::file::fulfill_pending_blob_reads (cognitive 18): lance::dataset::blob::file::fulfill_pending_blob_reads has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (5 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/file.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"492b0ec18ad491ecc11f1752fa5cc644779f8f34009aec38d46ba5afcd55521b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::index::frag_reuse::index_postdates_rewrite (cognitive 18): lance::dataset::index::frag_reuse::index_postdates_rewrite has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7684f92d489789c81a878ce44d81fe24c43e3daffe71c1368bda6bb9e1044d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::scanner::generation_read::stored_names (cognitive 18): lance::dataset::mem_wal::scanner::generation_read::stored_names has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/generation_read.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c4b91fcebda5a1c89df0e01cc0d960f4858edec40bba4d51719cfbee42a861"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::remapping::plan_tagged_remap (cognitive 18): lance::dataset::optimize::remapping::plan_tagged_remap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (6 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e61d496b5fb03e7558fe5d6988b4a6ff15c9f3186e165e154528f7b38a1d78d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::update_join::run_hash_update (cognitive 18): lance::dataset::update_join::run_hash_update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b9e787d76f55f886a560668119a968660216856de8523da030a2e12eb7827d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::write::merge_insert::format_key_values_on_columns (cognitive 18): lance::dataset::write::merge_insert::format_key_values_on_columns has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 2 (9 pts), if/else 5 (8 pts), loops 1 (nesting depth added 10). 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":"rust/lance/src/dataset/write/merge_insert.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79fd7c1aba848c0b6730c6e428e19f4470175c1fc5c9f6756113c07fd3e8c25"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::optimization_unavailable_reason (cognitive 18): lance::index::optimize::optimization_unavailable_reason has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d69933e75021cac3c34f79a9dd63115e90f34d31b1f885920fddb0f85957d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::builder::build_fresh_partitions_windowed (cognitive 18): lance::index::vector::builder::build_fresh_partitions_windowed has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"07aec884bb277246bccd36412a8b33ae9777528e20ff10aa1c6548ced0c063d0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::read_hnsw_build_params_from_sources (cognitive 18): lance::index::vector::ivf::read_hnsw_build_params_from_sources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7654ab10af792ecc171b61e72fd37b486ea2d7e45dc70efd9b841265a518c32"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreFieldDecoderStrategy::create_structural_field_scheduler_with_mode (cognitive 18): CoreFieldDecoderStrategy::create_structural_field_scheduler_with_mode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dff46cc6ba92043751829e9d14498b863a2f74281d51ad21991895efcd8150"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobDescriptionDecodePageTask::decode (cognitive 18): BlobDescriptionDecodePageTask::decode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/blob.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b96da848908b7c8ea0886f42f84ee38c4df63b6cf5d8d79144edc4e04fc64a"}},{"ruleId":"D2","level":"warning","message":{"text":"SparsePositionPlan::validate_domain (cognitive 18): SparsePositionPlan::validate_domain has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts), boolean chains 1, 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae218ed0794e4860ab8e78bafff6c8c8d68da0d2f853cbd65e8616a4144ca9f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::compression::try_variable_width_per_value (cognitive 18): lance_encoding::compression::try_variable_width_per_value has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf45f9c40f9a80d588176f8c6afded1fb08672cd7fff4f539ac816967a5654d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::logical::primitive::miniblock_decode::structure::read_chunks (cognitive 18): lance_encoding::encodings::logical::primitive::miniblock_decode::structure::read_chunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode/structure.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"327656c023deea89c186d86c965844a75bd4aa70ee57c35966d7e99facfad447"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::binary::chunk_offsets (cognitive 18): lance_encoding::encodings::physical::binary::chunk_offsets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9e031a63b8e6d0eadc956b6846323c0adef0a19992661979717e5cf613b7e7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::sequence::symbolic_family (cognitive 18): lance_encoding::encodings::physical::sequence::symbolic_family has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1, match/switch 1 (nesting depth added 5). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (inspect). 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":"rust/lance-encoding/src/encodings/physical/sequence.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"260231c6c6354c02d2cf4ca7bc6bcdd7006b2b05da71c2ff3206556f0bbf93ae"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanWaveletTree::build (cognitive 18): HuffmanWaveletTree::build has cognitive complexity 18 (threshold 15). Drivers by points: loops 8 (10 pts), if/else 4 (7 pts), match/switch 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"645ed33c1d567116ee8e85795141b43b16113f8bdabaccd6345c3d78087f2215"}},{"ruleId":"D2","level":"warning","message":{"text":"InnerBuilder::write_posting_lists (cognitive 18): InnerBuilder::write_posting_lists has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"28717b870b20772a3c194ecc7b7bdbf67d12556e091d1765529c323152bd6374"}},{"ruleId":"D2","level":"warning","message":{"text":"ShouldMaxScoreScorer::position (cognitive 18): ShouldMaxScoreScorer::position has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a680d6804fe7bb483f7213807786dc1edefe11b86a62c05b6913b60dee24f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingIterator::next_doc_id (cognitive 18): PostingIterator::next_doc_id has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (2 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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a3c88940882f78564ef3aae2569fc61b643a5f58e5cdd5e07a37a7bbe98917"}},{"ruleId":"D2","level":"warning","message":{"text":"NGramIndexBuilder::merge_spill_streams (cognitive 18): NGramIndexBuilder::merge_spill_streams has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 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":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbae9ac8914bdb02aa4b5e42817e74c1e7f63b9d1cab77d885eb28504d09cb3c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::bitmap::build_index_map (cognitive 18): lance_index::scalar::bitmap::build_index_map has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (4 pts), match/switch 1 (3 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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7468d6ee7bf66b9a726a3ee75f294de8d57abdd1b8084012c5bacbb4e5d33dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::zonemap::merge_zonemap_indices (cognitive 18): lance_index::scalar::zonemap::merge_zonemap_indices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a18dd4d4771bc0b27b62f70fcd611defcb65a3f55652851928159462912879"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadBatchParams::slice (cognitive 18): ReadBatchParams::slice has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 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":"rust/lance-io/src/lib.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdad1779ab97588ebd30ab2835634182f7d590621acd125a2e337335645efd1"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectStore::copy_via_stream_inner (cognitive 18): ObjectStore::copy_via_stream_inner 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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef629156286edeff6f6d21b97d15344b5de006eb4dfe3571148428578171a361"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestNamespace::list_tables (cognitive 18): ManifestNamespace::list_tables has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3 (5 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad91956eedbe56ccce6f25f33983115bbccab0b01c5553827c2e284b612212c"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::assign_row_ids (cognitive 18): Transaction::assign_row_ids has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 3 (10 pts), loops 2 (5 pts), if/else 2 (3 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d21689039df3e396f2dec67da51a7b05c98b98ad1f39b06f5d3a8a49d2e9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapSlice::count_ones (cognitive 18): BitmapSlice::count_ones has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/bitmap.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb51423532686a24e843a81811f656140cfea111b498e5418c25293c2e461c0"}},{"ruleId":"D2","level":"warning","message":{"text":"RowIdIndex::reuse_merged (cognitive 18): RowIdIndex::reuse_merged has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 3 (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":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dddc74d1db4bc0c8b0690156f104ed2823b60be347f55cc3ed40169ee0490e3"}},{"ruleId":"D2","level":"warning","message":{"text":"HoleRuns::from_bitmap (cognitive 18): HoleRuns::from_bitmap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/runs.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92b95d79a3c28c7477e988754b1178691a95b263e2c545a44161285d321263d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::transaction::inner_commit_to_dataset (cognitive 17): lance_jni::transaction::inner_commit_to_dataset has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), 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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e4a1ad83b12e51b89a7d4436cd22081d5f5ed493b1aa202940551607da60da"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::utils::build_compaction_options (cognitive 17): lance_jni::utils::build_compaction_options has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/utils.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a0c12aba7084919ef9f730d5d8feb50c3ebea7a7f1ae902bb927b484090a34"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetBuilder::load_by_uri (cognitive 17): DatasetBuilder::load_by_uri has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (8 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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0cc51521e2e8cfb6bbf42761bb004ac3388d67144fc36b04cd068c70d6c01c"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmPointLookupPlanner::lookup_many_on_disk (cognitive 17): LsmPointLookupPlanner::lookup_many_on_disk has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98b44e399dc5d02a405edea1f999dcc3ede14ea6ed623f3cf5e81fa44531df2"}},{"ruleId":"D2","level":"warning","message":{"text":"WalAppender::append_for_target (cognitive 17): WalAppender::append_for_target has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fbaade367b1c9364434802fcebedd784bd127425baf93db74a3b4e2f3d416d"}},{"ruleId":"D2","level":"warning","message":{"text":"DeleteOnlyMergeInsertExec::collect_deletions (cognitive 17): DeleteOnlyMergeInsertExec::collect_deletions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 1 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba9b22c64366a51fc848a3e3e7b74ac961f7f17ba6caa6dfd273cf33329713b"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset::write_into_namespace_impl (cognitive 17): Dataset::write_into_namespace_impl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"764d118a833daecdb622795e970d652702b65e2dd68722443a146929629f378b"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatMatchQueryExec::execute (cognitive 17): FlatMatchQueryExec::execute has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8 (11 pts), if/else 3 (6 pts) (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"09de8294d23bd1fe4e3653bbd2af8b448f9a0bdb69d5f6a4d3ff241cb3101fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"ANNIvfSubIndexExec::late_search (cognitive 17): ANNIvfSubIndexExec::late_search has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5d743add848ddb64bcbc0bb9f197ded749663d3748cbf01da7858c492f4563"}},{"ruleId":"D2","level":"warning","message":{"text":"AddRowOffsetExec::compute_row_offsets (cognitive 17): AddRowOffsetExec::compute_row_offsets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/rowids.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"280918c785f559aac931398f39a6c2edd79679ca0a181766dffeb069e59196bc"}},{"ruleId":"D2","level":"warning","message":{"text":"TopKLateMaterialization::check_pass_through (cognitive 17): TopKLateMaterialization::check_pass_through has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 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":"rust/lance/src/io/exec/topk_late_materialization.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b161b039bbb0a059d21e5d42eaf26efc2c2681b8d72ca9618700eeb81a9b7efb"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::index::fts::build_partition (cognitive 17): lance::dataset::mem_wal::index::fts::build_partition has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 2 (4 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4331}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e27592beb9646f6ed43a075f14fa48d8a23811ac2822aecce581ae316cdad9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::mem_wal::scanner::block_list::fresh_tier_block_list (cognitive 17): lance::dataset::mem_wal::scanner::block_list::fresh_tier_block_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (5 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/block_list.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"125b5850358f196446e4949a70625f84305dbcbdd29c2e9b3306453e4a89dcb8"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::remapping::remap_index_tagged (cognitive 17): lance::dataset::optimize::remapping::remap_index_tagged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 5 (8 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e78740aa4ff409f1d324dc96adef77823c16ea1b890c3126a1c6eecb97a40c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::schema_evolution::plan_drop_columns (cognitive 17): lance::dataset::schema_evolution::plan_drop_columns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45a47f687d1be233e36450b90ad95d0069df071513c906fb2317803f46528c3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::take::row_offsets_to_row_addresses (cognitive 17): lance::dataset::take::row_offsets_to_row_addresses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/take.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08dbb01a78d1e86d0b7ab7ac4a90359a70d809ebbf32863fa0e21822e7478ac"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::fri_query_plan (cognitive 17): lance::index::frag_reuse::fri_query_plan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6cd76bed0e7303f90fb90fae24c23944e9b5d07fce50836567a067af34b89d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse_with_stable_row_ids::history::validate_frag_reuse_history (cognitive 17): lance::index::frag_reuse_with_stable_row_ids::history::validate_frag_reuse_history has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (7 pts), if/else 3 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse_with_stable_row_ids/history.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d562e696937f45f956dbd359c303af5c36f0348c7915f4907cf4823dceb97fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::loading::load_all_indices (cognitive 17): lance::index::loading::load_all_indices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbf0c3ac1f3320234814fc4c7ade2dfda57281dd2003333857741b6af227f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::optimize::pack_split_index (cognitive 17): lance::index::optimize::pack_split_index has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (8 pts), if/else 3 (5 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"06be82337a761e5642e43eb9dc529a9b0d2782534f653d1bd7dd1c380d380f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::scalar::inverted::collect_element_documents (cognitive 17): lance::index::scalar::inverted::collect_element_documents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (3 pts), loops 1 (2 pts) (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":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea2c6c5856ebd0e99e0c47db8ef9c3afb959ad95396644b77bb36dab6de1ddf"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::select_steady_state_rebalance (cognitive 17): lance::index::vector::ivf::select_steady_state_rebalance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d958656c90d56b737944ddd9494bb1171ba76c234d2cfe78e6c8908a344ce6d9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::session::index_caches::write_query_vector (cognitive 17): lance::session::index_caches::write_query_vector has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/session/index_caches.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f586751f3619be0b24296a4ca527c30dfc0d90652021f310543fcfe5d6d81c6e"}},{"ruleId":"D2","level":"warning","message":{"text":"LoadGuard::finish (cognitive 17): LoadGuard::finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 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":"rust/lance-core/src/cache/diagnostics.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa04d1a5f43166b44aa40b6e6df85ce229e056a7726422635fbc222cd1fd8b0f"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema::validate (cognitive 17): Schema::validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (5 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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c60fd8928853f6373848bcd585dac85b5ea58ddf75c176ca08ce944b34a0531"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanarPrimitiveEncoding::try_plan_pages (cognitive 17): PlanarPrimitiveEncoding::try_plan_pages has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/planar.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8812a44617ed59d2a70dc5141bf1246cd8734fa4b759efcfcddd1aa35d2957a"}},{"ruleId":"D2","level":"warning","message":{"text":"SparseStructuralUnraveler::unravel_offsets (cognitive 17): SparseStructuralUnraveler::unravel_offsets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce3aaf165abd957b722dd78e4d0fbee549c5fdd07d017604c15cda250a268c1"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveStructuralEncoder::try_dictionary_encode (cognitive 17): PrimitiveStructuralEncoder::try_dictionary_encode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7f612087e6bc78f0071d19a45cf051008bb8bdd10535a2a8b1e72f757dac18"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encoder::encode_batch (cognitive 17): lance_encoding::encoder::encode_batch has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (15 pts), boolean chains 1, if/else 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encoder.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e5bc22931917e585ac94a22256198bd5555d05c4934678660fe0a0d9eda58d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::alp::parse_header (cognitive 17): lance_encoding::encodings::physical::alp::parse_header has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a92c62870089fc680841b34a58632cde56c61241af046073b46d23a1ef73b38"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::rle::select_miniblock_run_length_width (cognitive 17): lance_encoding::encodings::physical::rle::select_miniblock_run_length_width has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 4). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (collect). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"082f19c295a899962eaebae53cef7a509db9ab8afae056f2fca6bcc7ed08885f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::repdef::append_def_le_bitmap (cognitive 17): lance_encoding::repdef::append_def_le_bitmap has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (7 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8edbc09188cdb9ab2d8fddcc64f28cbc25ca44ac71d887c825af43a1e65973a"}},{"ruleId":"D2","level":"warning","message":{"text":"BTreeIndex::search_with_options (cognitive 17): BTreeIndex::search_with_options has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 4 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d250d21175f3b932251528eacdee2fadf95abc13f63ce05efa513b43d674a6"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndex::expand_fuzzy_tokens (cognitive 17): InvertedIndex::expand_fuzzy_tokens has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5b5d099cb60bc5ea2fe13d88e50f6ab7526f08e296e9add578ffd5103529b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Wand::check_positions (cognitive 17): Wand::check_positions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/phrase.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c556d39849385ceef919e797f48405a08088a3c2ff93f06023c9cefa39b602"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyCodec::seek_range (cognitive 17): KeyCodec::seek_range has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 7 (11 pts), if/else 4 (5 pts), boolean chains 1 (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":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92f3ace7ef054c2fb7ebdbb29bf7ecf4ed0db1341283533e822321006bbb609"}},{"ruleId":"D2","level":"warning","message":{"text":"RabitDistCalculator::accumulate_partition_survivor_rows (cognitive 17): RabitDistCalculator::accumulate_partition_survivor_rows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage/scan.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f8320457d57ec38ddd5cd823685094113970467e37144e3efc3efdca17272c"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::builder::consolidate_group (cognitive 17): lance_index::scalar::inverted::builder::consolidate_group has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":3190}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6d5350ccff102d51613598ca4b8a78fa8ce1bb1ef7ef69377eab5fa60ed6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::combined::search::combined_fields_search (cognitive 17): lance_index::scalar::inverted::combined::search::combined_fields_search has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 1 (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":"rust/lance-index/src/scalar/inverted/combined/search.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e15a8a1fb26237999f79983b55082c4b097ca20a0411e1b40e724f5496209f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::compound::prepare_fts_global_statistics (cognitive 17): lance_index::scalar::inverted::compound::prepare_fts_global_statistics has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 2 (4 pts), loops 2 (4 pts), boolean chains 1 (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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb04f96027ca94e20bae2c0f6ca93597b1c89b8cde28ada5a3c43f7ed440e52"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::inverted::tokenizer::document_tokenizer::normalize_flattened_json_path (cognitive 17): lance_index::scalar::inverted::tokenizer::document_tokenizer::normalize_flattened_json_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/tokenizer/document_tokenizer.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"354e7e382936b529c40d1d1af607e3ff1ed5843a63bc1bba2cafa663765a99f0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::zonemap::remap_zone (cognitive 17): lance_index::scalar::zonemap::remap_zone has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"633718e1f3446b6bbdce3ab57a53ef37ca3c850205a2c62357bcc68211189794"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::zonemap::merge_seeds_for_binary_copy (cognitive 17): lance_index::scalar::zonemap::merge_seeds_for_binary_copy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a3fe726477a3a224e1a30932f97840972579c75fa012340f39778d7be32b80"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::hnsw::remap::add_reciprocals (cognitive 17): lance_index::vector::hnsw::remap::add_reciprocals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af8666d0ec90c2d6301259e87fa70fc50c56f80b55771af6aa95077956f6420"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::kmeans::split_clusters (cognitive 17): lance_index::vector::kmeans::split_clusters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ff856814f157677bee76e334f955e25c3e023c9a6f5df39c0d445dcee7b20"}},{"ruleId":"D2","level":"warning","message":{"text":"ListRetryStream::poll_next (cognitive 17): ListRetryStream::poll_next has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/list_retry.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b443ceafff28dab65ad261d6f1a5d6cfb48e2f00bcf9fd6e5053c80b45033cee"}},{"ruleId":"D2","level":"warning","message":{"text":"RecursiveLevel::check_recursive_level (cognitive 17): RecursiveLevel::check_recursive_level has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/path.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c961fa5e7bf1e0de0ed72a72910423d5955f80fce598548b002c2909b4f147"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_quoted_string (cognitive 17): Parser::parse_quoted_string has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/parser.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a651ecbdf13f8de7698b645d8a209ad8647e12a7e5024204aceec3fd7fff11"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction::register_pure_rewrite_rows_update_frags_in_indices (cognitive 17): Transaction::register_pure_rewrite_rows_update_frags_in_indices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b2ecc40636dd09fd03e69b200201f021c7a2b18ac071258c7eb54642531f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"U64Segment::from_stats_and_sequence (cognitive 17): U64Segment::from_stats_and_sequence has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 1 (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":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb624ad073bfdc72bdac17b46848089b57c5084d8e07d15d8af94afe62339715"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::index::batch::search_sorted (cognitive 17): lance_table::rowids::index::batch::search_sorted has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (11 pts), if/else 3 (6 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index/batch.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3341309c6fa927c8222614d92bc2bac6c8d1f98c7a23d04148b2c3aea8d463f6"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_tools::dataset::verify_data_files (cognitive 17): lance_tools::dataset::verify_data_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-tools/src/dataset.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61dbd49c1bce872901c3c43fcab2a9104001fad4bbc97c28464495a940bdc6d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_tools::dataset::repair_manifest (cognitive 17): lance_tools::dataset::repair_manifest has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 3 (7 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-tools/src/dataset.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"877a4ade104cba95ce3d3c1e689476aeade9001d4864dc05473d07133cbdc725"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.tokenizerParams (cognitive 17): Builder.tokenizerParams has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83062eaccd27a8b6ca4a33ca0a51157858d996ce4998bbf8406c7ecf42a9f06"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteDatasetBuilder.execute (cognitive 17): WriteDatasetBuilder.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/WriteDatasetBuilder.java"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beacdfb7ef9aad6a009cca15ba9562e108a5dfd14f65dee0493c016132946b1"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceDataset.scanner (cognitive 17): LanceDataset.scanner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cb052752540c1d765fdb3286b28f100e970513f587e77dd8d041f5ee8ee531"}},{"ruleId":"D2","level":"warning","message":{"text":"pydantic._pydantic_type_to_arrow_type (cognitive 17): pydantic._pydantic_type_to_arrow_type has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (17 pts) (nesting depth added 10). 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":"python/python/lance/pydantic.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f4fc61d8c4d24a2999461f3b18241db17ede4ffdcdc7f82f58755561294467"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_jni::utils::get_vector_index_params (cognitive 16): lance_jni::utils::get_vector_index_params has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/utils.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffff72592a5a5c8ad90a53310577e54c954bee72a9fa937e9eb9a3c29ae4207"}},{"ruleId":"D2","level":"warning","message":{"text":"PyLance::extract (cognitive 16): PyLance::extract has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), match/switch 4 (6 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d48d1614a30f56fadbb123c740a1467b0cdac393e9adfe9edebc9149f373d17"}},{"ruleId":"D2","level":"warning","message":{"text":"pylance::session::backend_config_from_dict (cognitive 16): pylance::session::backend_config_from_dict has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/session.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3eec1f02a5c7bd6346b48c7e72c5e0f693cdafd5cd0711c34824cbc6e141be3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_arrow_stats::find_min_max_indices (cognitive 16): lance_arrow_stats::find_min_max_indices has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/arrow-stats/src/lib.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"187f18682464be89524ff500fc1393c0440b95c66a6b613fe17ee1aa67377805"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobV2FieldRewritePlan::try_new (cognitive 16): BlobV2FieldRewritePlan::try_new has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d36b8a69b57055cec68da1ea48d01cf45e53cb7ab5d552fc1946be9791c1c44"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobV2FieldRewritePlan::transform (cognitive 16): BlobV2FieldRewritePlan::transform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (3 pts), loops 1 (2 pts) (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":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4bb1cb6a013934f2bbdd4e274546e7fc3019e0f5a22240f702290bb45623f3"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTask::process_manifest (cognitive 16): CleanupTask::process_manifest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (5 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c4958fc43087c2c0036c9d747345463f45d275187f3eca10dca23eda4603f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileFragment::update_columns_from_stream (cognitive 16): FileFragment::update_columns_from_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment/aligned_update.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5375e9dcef6f1fca44c0399563a0f7905db944057819ebb7b77106ac2d981a06"}},{"ruleId":"D2","level":"warning","message":{"text":"DatasetIndexRemapper::remap_and_merge_vector_segments (cognitive 16): DatasetIndexRemapper::remap_and_merge_vector_segments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9fc3c6b0deb7edbc0f38af62d2f8ea0417fda824f186537a8e271333f4b213"}},{"ruleId":"D2","level":"warning","message":{"text":"FtsMemIndex::insert_batch_with_keys (cognitive 16): FtsMemIndex::insert_batch_with_keys has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a934edd353f467a48d8c90d6268c767a2e081826fcb6d8eb8c57b8346e24b4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Partition::search_phrase (cognitive 16): Partition::search_phrase has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (4 pts), match/switch 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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4843}}}],"partialFingerprints":{"codehealthFindingId/v1":"770ba253aa0633ec9537efb277161c63724c650a8e729a0374542b7b51131b93"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmPointLookupPlanner::lookup_many_keep_tombstone (cognitive 16): LsmPointLookupPlanner::lookup_many_keep_tombstone has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), boolean chains 2, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ba549aa76cc8db390571d5b09fe217dbb9ba877a73bfa1eea8ebc14c092c53"}},{"ruleId":"D2","level":"warning","message":{"text":"LsmPointLookupPlanner::lookup (cognitive 16): LsmPointLookupPlanner::lookup has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 3 (7 pts), boolean chains 1 (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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d73ec0a6f9cd9c57d9d516d93dc4cc55488d2a6de00585824921832a8360c7"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackpressureController::maybe_apply_backpressure (cognitive 16): LocalBackpressureController::maybe_apply_backpressure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/backpressure.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f3ae00446afb50e1344ea88f49d8d18786ea1858d77df4c0b7eab9bc827772"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::with_refine_column (cognitive 16): Scanner::with_refine_column has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/builder.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04e7b6d90fcbf3cd977a35b79213672d53f5e624338befc0096bb8cb7a6a628"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::fragments_covered_by_fts_query_helper (cognitive 16): Scanner::fragments_covered_by_fts_query_helper has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"4300647702e438c3d84314111441636c182de544c9f4629c5a3694bc5ab064e3"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner::list_structure_modes (cognitive 16): Scanner::list_structure_modes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 3). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/list_structure.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3beecd4cb3d012648dfe368749639d5eeee791ae894446f478f48bd6f1be1b"}},{"ruleId":"D2","level":"warning","message":{"text":"FullSchemaMergeInsertExec::execute (cognitive 16): FullSchemaMergeInsertExec::execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7a9cc4bfffb5fce2a8eced3b0a8ea2c054093dcb021d9b82ea817b94bb62a2"}},{"ruleId":"D2","level":"warning","message":{"text":"RowStreamRead::plan_batch_from_row_ids (cognitive 16): RowStreamRead::plan_batch_from_row_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3346}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a1ec077c86c26125f2e62285c215a03ea127818e4abcf39f1e22736ac11d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::blob::rewrite::descriptor_to_logical_blob_array (cognitive 16): lance::dataset::blob::rewrite::descriptor_to_logical_blob_array has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd161f2948c95763aa679137089dcde56b6ad748dcade61d25fac7beff719f5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::optimize::planning::limit_tasks_to_source_budget (cognitive 16): lance::dataset::optimize::planning::limit_tasks_to_source_budget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"5188912dd74623452bec47897aa101fa286cfd6a49a04a6e8ab65756bd157272"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::dataset::updater::blanks::blank_plan (cognitive 16): lance::dataset::updater::blanks::blank_plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, 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":"rust/lance/src/dataset/updater/blanks.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"6619ad662f100fcbaad8103e375a48e505c1bc8b771a16bbcb0bff1a611e90f8"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::append::build_old_data_filter (cognitive 16): lance::index::append::build_old_data_filter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c54ac3f388ae849d54de87ddcc86223172e8aa79f7b0128ad235f8673ba91b"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::frag_reuse::patch_stable_partition_base (cognitive 16): lance::index::frag_reuse::patch_stable_partition_base has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf05bb199c84f56c1c331fc28e4459243a24ead33368d1995f99b82c749d5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::prewarm::aggregate_fts_prewarm_results (cognitive 16): lance::index::prewarm::aggregate_fts_prewarm_results has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/prewarm.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"959ebc87c8d73ddb1f8518c7f9874bf9854ce39aa4091aeaaf6dcb168f31c0a3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::remap::remap_index (cognitive 16): lance::index::remap::remap_index has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/remap.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad0db353608ff1fd83b31b229b34f16777a77adc1b8b899838d5a7db872fd5d"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::scalar::build_scalar_index (cognitive 16): lance::index::scalar::build_scalar_index has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f49ee90139ce81be5a099636abb2457cd93a7f2999c8238aeb578598bec49f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::scalar::label_list::merge_segments (cognitive 16): lance::index::scalar::label_list::merge_segments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/label_list.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd92ce050d035ff9a422073d9dccd076fc6ab3ce57570c394a8501afe99614d0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::count_trainable_vectors (cognitive 16): lance::index::vector::count_trainable_vectors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1f9f95292743695ebd040d47156867e7cbd7017b48b028cead59c798e7d632"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::ivf::build_ivf_model (cognitive 16): lance::index::vector::ivf::build_ivf_model has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"380103a2097acfb4c6f59ec37832eb0966525391b022b9d0cf7773104e09b7b5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::index::vector::utils::sample_nullable_fallback (cognitive 16): lance::index::vector::utils::sample_nullable_fallback has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/utils.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43f51ceec757c5a1a4e8ebbe711474862558c14796ea84f99a4dc2560ceaa54"}},{"ruleId":"D2","level":"warning","message":{"text":"lance::io::exec::scalar_index::row_ids_for_mask (cognitive 16): lance::io::exec::scalar_index::row_ids_for_mask has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scalar_index.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2950d3d639727a61db017a3d0399de82b3d597c030af51806a91c0b8ebdfdc93"}},{"ruleId":"D2","level":"warning","message":{"text":"Field::try_from (cognitive 16): Field::try_from has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2825f4a9e1d4fd2acb7484714652e91338d2b3f4728e87e3c60600034221699e"}},{"ruleId":"D2","level":"warning","message":{"text":"AimdConfig::validate (cognitive 16): AimdConfig::validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/aimd.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"89274311079b580010d545326b62136a535621ce9faf7db32b0115fa9fe74d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::numeric_coercion::lower (cognitive 16): lance_datafusion::numeric_coercion::lower has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c0befedf8d8319bd440a0a4860dfdbecf275f060159d6b3c5dfba2da0829a5"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_datafusion::substrait::parse_groupings (cognitive 16): lance_datafusion::substrait::parse_groupings has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (6 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"26db07380cfd0fceb7974e7f5fd0ad6635064c393fdbb9c9406974bb9f280c13"}},{"ruleId":"D2","level":"warning","message":{"text":"CycleNanGenerator::generate (cognitive 16): CycleNanGenerator::generate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5426d157cfb561f1002803361015698aa32041f1f098cfb3dddbbe0ecfdb6bb7"}},{"ruleId":"D2","level":"warning","message":{"text":"NullGenerator::generate (cognitive 16): NullGenerator::generate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c746874ba38b14870a67dbd2e11029222a103994bd0e30b7094fac9e3d1f980"}},{"ruleId":"D2","level":"warning","message":{"text":"DataBlock::from_arrays_impl (cognitive 16): DataBlock::from_arrays_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c3cf315a32b9525c1427314660547a3b1c228c1a716d1b1b85c8d5e98cbb00"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuralPrimitiveFieldDecoder::plan_decoded_bytes (cognitive 16): StructuralPrimitiveFieldDecoder::plan_decoded_bytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"66804d2117df25bdcf28f4895486cc7092d18c06a381b5da6a6baf6e82331bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_encoding::encodings::physical::sequence::statistics::analyze_member (cognitive 16): lance_encoding::encodings::physical::sequence::statistics::analyze_member has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/sequence/statistics.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7abac558970e32cea9a9db2fedc614557afcdbf2877b1fd26a7701453955f94"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndexBuilder::update_index (cognitive 16): InvertedIndexBuilder::update_index has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 5 (6 pts), match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c91b2343dca18cb1be240203bfcd9c1ebd50297030abdd71e3546a38b154760"}},{"ruleId":"D2","level":"warning","message":{"text":"PostingListReader::posting_read_chunk_ranges (cognitive 16): PostingListReader::posting_read_chunk_ranges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"915fdccb1bf42d67869e43788e125c1fc2980a081c52af7b36586452717e99da"}},{"ruleId":"D2","level":"warning","message":{"text":"ResidentColumnStore::attach (cognitive 16): ResidentColumnStore::attach has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 3 (5 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/resident.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0393b5b87f0fd7d4299c170969c901a9f6fcaa11bc0678e5bdd1fc4b8299bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductQuantizationStorage::new_with_remapper (cognitive 16): ProductQuantizationStorage::new_with_remapper has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"047fdf319a3cee8e7438798a11b32e13d652b3f749217cf29dcb4133f6661be8"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::scalar::expression::like_to_regex (cognitive 16): lance_index::scalar::expression::like_to_regex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3489e57dcad434a9c84221efce3a336c97913195b17f853f29428ded22f98669"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::ex_dot::x86::prefix_vbmi (cognitive 16): lance_index::vector::bq::ex_dot::x86::prefix_vbmi has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"00636e5155d0a219a25bd708cc2aef47e5c6e39caf5db36bade7ca1c4696549a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::bq::storage::compute_single_rq_distance (cognitive 16): lance_index::vector::bq::storage::compute_single_rq_distance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":3143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce6adc8fa7ab7385622fbe3bd76ba278922e65b7d1d9216352066de4cedca92"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index::vector::warp::top_k_documents (cognitive 16): lance_index::vector::warp::top_k_documents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/warp.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8366877fc69980572d7937cff9d702a9af6a58a6f67a2e4713db6221f8767549"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_index_core::remapping::materialize_remap (cognitive 16): lance_index_core::remapping::materialize_remap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 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":"rust/lance-index-core/src/remapping.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"108c0a715c900ccf7aeeb5c494e8cf692f8c108f4357319d6404fa198e057052"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectWriter::poll_tasks (cognitive 16): ObjectWriter::poll_tasks has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (12 pts), loops 2 (4 pts) (nesting depth added 10). 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":"rust/lance-io/src/object_writer.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb9ec672d371d3b402320df17d19bee55037ed93cd8c80ae5fcb121e973e53e"}},{"ruleId":"D2","level":"warning","message":{"text":"Value::fmt (cognitive 16): Value::fmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/value.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e174ff4fae73ca5e7c8786639b4cb2012551a115ff662ec9f31532e03051559f"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_namespace_impls::dir::query::build_engine_fts_query (cognitive 16): lance_namespace_impls::dir::query::build_engine_fts_query has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (6 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":"rust/lance-namespace-impls/src/dir/query.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e06037bd79ccc44455a0a481c302ed13f08ebf68b5ee9f84addf67cc34d158"}},{"ruleId":"D2","level":"warning","message":{"text":"RowAddrTreeMap::insert_range (cognitive 16): RowAddrTreeMap::insert_range has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 5 (7 pts), loops 1 (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":"rust/lance-select/src/mask.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d074dcb460291f0777f7e23ce6b3e1d97b10035c2b9499cc0d9e473b05499f0"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::feature_flags::apply_feature_flags (cognitive 16): lance_table::feature_flags::apply_feature_flags has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/feature_flags.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"93be823ae3092b38f90da4ceed94fe7fb0a09e8b5ccd0ce043c6efd1636ae2b9"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::format::key_existence::extract_key_value (cognitive 16): lance_table::format::key_existence::extract_key_value has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 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":"rust/lance-table/src/format/key_existence.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"997bf3e436f52030dec2250f0cf3f3a14630d490d9d4b94c4decef46c0eec8c3"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::io::manifest::read_manifest_proto_with_length (cognitive 16): lance_table::io::manifest::read_manifest_proto_with_length has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 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":"rust/lance-table/src/io/manifest.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af32244b9d06c16deccbc0d2f59dc7470f042237adc3536dc2ab4c1a61c6c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::select_row_ids (cognitive 16): lance_table::rowids::select_row_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33c73c96396388cdf986708f0a5cd6e87b8311775c91064fa54bb1615272371"}},{"ruleId":"D2","level":"warning","message":{"text":"lance_table::rowids::version::rechunk_version_sequences (cognitive 16): lance_table::rowids::version::rechunk_version_sequences has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/version.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"4368fe9341871c9c2a871c967d114705cc96d4dc37a3e86ce14ed810c57594fb"}},{"ruleId":"D2","level":"warning","message":{"text":"fragment.write_fragments (cognitive 16): fragment.write_fragments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/fragment.py"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc9615b73e85388c1564102e0b95a55885f8f7bae01a8e99bd45c39a77c5c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"pydantic._unwrap_optional_annotation (cognitive 16): pydantic._unwrap_optional_annotation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3 (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/pydantic.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdf532dcc8659a72fca1c59976a0368f4d411ea3f73482f4f36a2abaa53558f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Transaction.build_manifest_prepared: MethodTooLong \u2014 build_manifest_prepared runs 964 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 864 over it, 9.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd5a9c18e76b1fa28dbc19ce53b86b427980622fec9de5284414c75a4182b28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/ivf.rs: FileTooLong \u2014 4570 significant 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 99 free functions. The bar is 500 significant lines; this is 4070 over it, 9.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a602bd8f48461d22fda3048bdd3ef5d999b502a1d1db0437e16a6f3a4af987"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Dataset: TooManyMethods \u2014 229 methods. The bar is 30 methods; this is 199 over it, 7.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"021aca332c7592475dc480dd5559702ebc666cb3b863ea50aa8d8b5c0e8a5a2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/fts.rs: FileTooLong \u2014 3490 significant 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 51 free functions. The bar is 500 significant lines; this is 2990 over it, 6.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df87d2c4a2b02ad9d27b10f7723aadfe3154427298880e688592c1e9327c0ed"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Dataset: ClassTooLong \u2014 2787 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 136 methods, 4 blocks, lines 313-4506. The bar is 400 significant lines; this is 2387 over it, 6.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"376af26e66e22b6a8f7853388f08dfce852c31ccd38cc55f57ca7c8a2c73a08e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dataset.rs: FileTooLong \u2014 3427 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: Dataset (4 blocks, 313-4506). The bar is 500 significant lines; this is 2927 over it, 6.85\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc6e2e4048eb6bda4904a37440ee202808854391cd6553dc147722040d46ec9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner: FunctionTooLong \u2014 lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner runs 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 529 over it, 6.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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffaec548830e1b9d85d44660050899798d2b9f1ed6cc5f7d369d1368d82a357"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Dataset: TooManyMethods \u2014 185 methods, declared across 9 files: src/dataset.rs (160), index/loading.rs (10), dataset/deletions.rs (3), dataset/files.rs (3), \u002B5 more file(s). The bar is 30 methods; this is 155 over it, 6.17\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":"rust/lance/src/dataset.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89463a16335daa7f54ca856652da16bb31688c88ae46fe07a7dca3af55c7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/compound.rs: FileTooLong \u2014 2999 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 2499 over it, 6.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3cc4ecbdb5e71ecef5be7fbf25cc5865c6b4e9f1bb3400fa8befae508ed92f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Wand.and_bulk_search: MethodTooLong \u2014 and_bulk_search runs 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) in one body. The bar is 100 significant lines; this is 492 over it, 5.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b14a559eee6a6e4d6d009c1e7f245d8a7ca01e510497ef72ab44edf392bef95"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Scanner: TooManyMethods \u2014 177 methods, declared across 8 files: scanner/builder.rs (66), scanner/plan.rs (28), scanner/fts.rs (26), scanner/source.rs (25), \u002B4 more file(s). The bar is 30 methods; this is 147 over it, 5.90\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":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"519054d3d419c901c69da50ac63973ea7f76ff69b5c0e8424fdd290a506fa4e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dir/manifest.rs: FileTooLong \u2014 2916 significant 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 78% of them inside a single declaration: ManifestNamespace (4 blocks, 974-4454). The bar is 500 significant lines; this is 2416 over it, 5.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7123bf8a2181b76be2bf030237ec2d03ec60eb07cbb730c298648ef1775627b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/btree.rs: FileTooLong \u2014 2900 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 2400 over it, 5.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce8753ef4ac36adac8375e872d8f72bddf669a43b4cbb14606262d87d192007"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Operation.eq: MethodTooLong \u2014 eq runs 578 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 478 over it, 5.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/conflicts.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57f4aca8418b6a5a5d911f432a6d7b5342d694e40b0c5f0b7d6f66117009769"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ManifestNamespace: ClassTooLong \u2014 2276 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 72 methods, 4 blocks, lines 974-4454. The bar is 400 significant lines; this is 1876 over it, 5.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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b69af918913eb9d208ee58602e54453802532844e8501c0cfc9cf13a3f77769"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Dataset: ClassTooLong \u2014 2254 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 185 methods, 7 blocks, lines 256-5214. The bar is 400 significant lines; this is 1854 over it, 5.64\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":"rust/lance/src/dataset.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7450faf1a5ad6724475d2a12c0d92f650790c688096ec65ccdfb38e425ea28d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dataset.rs: FileTooLong \u2014 2811 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: Dataset (7 blocks, 256-5214). The bar is 500 significant lines; this is 2311 over it, 5.62\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f1c9895880682f187cc768a6ed40a4fb309c836424b3cbb712d57560c3fab9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/namespace.rs: FileTooLong \u2014 2798 significant 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 132 free functions. The bar is 500 significant lines; this is 2298 over it, 5.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd12c21e1350db2190b8f2dec6b5ea5bb612c2a1865cf23b94a19c1b4d48925"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ivf/v2.rs: FileTooLong \u2014 2733 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2233 over it, 5.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d04d3f835d4391d7c18976cd50522632800bf7c4ea9222fc6c1c21cd244b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/fragment.rs: FileTooLong \u2014 2687 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2187 over it, 5.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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b79201cafdd8a0203ede5955d68535c3d21747d34e17428494e107ce802bd2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/filtered_read.rs: FileTooLong \u2014 2667 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2167 over it, 5.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7533f0b45486c5bb4a3bb55b6ef3292fd906a73bd2dcb7a931ee87b63a6a0a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/builder.rs: FileTooLong \u2014 2416 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1916 over it, 4.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5215ac6d25b89510e8eafcf17c0c9c51b3bb9bba7642b5568627917f656ad651"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lance/dataset.py: FileTooLong \u2014 2376 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1876 over it, 4.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"947cd5e5eaebb418e88b443b130730f7de83e895e2b167861f7a520f960c5a11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::append::merge_indices_with_unindexed_frags: FunctionTooLong \u2014 lance::index::append::merge_indices_with_unindexed_frags runs 471 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 371 over it, 4.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fe92c8988f6a688880116496602482923d4394e1f77a5f159619d0e982a2df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/zonemap.rs: FileTooLong \u2014 2346 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1846 over it, 4.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6e0fc0b12f4cce502a93f3c6d3f18ad0455a4fd8bfca35f9a770aac9ed58f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/builder.rs: FileTooLong \u2014 2336 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 1836 over it, 4.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b347adbb9bf4b32872eab6fbf7e3bceb9400a6845d7393ad72304d2c8569cc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bq/storage.rs: FileTooLong \u2014 2335 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 1835 over it, 4.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea401739ae97656a338c843d1fd4af235dec74a0f4919b531dc203c57dc19728"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Wand.maxscore_search: MethodTooLong \u2014 maxscore_search runs 462 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 362 over it, 4.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":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"58db49e222d64264d982116b8b7b106b59388fe85bc17a2dbf21e8ea4428758d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeInsertJob.update_fragments: MethodTooLong \u2014 update_fragments runs 461 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 361 over it, 4.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9240bf2fa34d120b3ae96af1d4ab4b202c807fa17702fcc44eb5c8945e60cde"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Dataset: TooManyMethods \u2014 136 methods. The bar is 30 methods; this is 106 over it, 4.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"818a126ca665ef68d26d7167468d3e04e9aac7ff80fcc8a769ecbacdbf4c41ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/cleanup.rs: FileTooLong \u2014 2239 significant 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 68% of them inside a single declaration: CleanupTask (2 blocks, 428-3017). The bar is 500 significant lines; this is 1739 over it, 4.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6182d0b634b9fdfd571ca963128093072d29a813df2a701d2c3f0495c6b065"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrimitiveStructuralEncoder: ClassTooLong \u2014 1751 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 38 methods, 3 blocks, lines 207-2979. The bar is 400 significant lines; this is 1351 over it, 4.38\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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb47d8e8723ac1ee5427fe91292acc61da77d2d1d42f2726cbc41a34f84137e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/decoder.rs: FileTooLong \u2014 2130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1630 over it, 4.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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"094a14d04809beccd029d25c4c6a4dcbed1a8dd4bc0f6340a2bed7f00241035f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/knn.rs: FileTooLong \u2014 2092 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1592 over it, 4.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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a4c782ba0da826cacfaef1be3360f30ae9a0dd5f36b05a03a94d673647879c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/structural_encoder.rs: FileTooLong \u2014 2046 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: PrimitiveStructuralEncoder (3 blocks, 207-2979). The bar is 500 significant lines; this is 1546 over it, 4.09\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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba6cfc01205e80fb60e08f8955d7caaa1f53672d5444b523a3c5acef4febae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/rle.rs: FileTooLong \u2014 2043 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1543 over it, 4.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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"211a637d8399883a36b056cc056b73bd988ec3b4f49bf1a2e6674079a9f85f23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/repdef.rs: FileTooLong \u2014 2012 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1512 over it, 4.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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8a4e32ba067ab4dbfb9da3534c1ab4fb634a1c54380f8c79b478447bf12c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/fts.rs: FileTooLong \u2014 1989 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: Scanner (410-2892). The bar is 500 significant lines; this is 1489 over it, 3.98\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"354326b985060bec4c9fbdea858bc61f289f03b0181f5e24441d12507ba6115a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CreateIndexBuilder.execute_uncommitted_impl: MethodTooLong \u2014 execute_uncommitted_impl runs 394 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 294 over it, 3.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"60edfa4d308b25059e03ffc327f961ea737c0a857c599d45964bf32f3d01eed1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/generator.rs: FileTooLong \u2014 1964 significant 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 48 free functions. The bar is 500 significant lines; this is 1464 over it, 3.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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2479998c919c5c0e86a32a5dd05f9162a6c4a6e2631a726da311426ff65eeb88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/transaction.rs: FileTooLong \u2014 1921 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 1421 over it, 3.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a98fdc2214c78bccea35d2fa1d9d2adf14ebd236407d9aa92044a210a4c1e27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/storage.rs: FileTooLong \u2014 1920 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: IvfQuantizationStorage (3 blocks, 1375-3173). The bar is 500 significant lines; this is 1420 over it, 3.84\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":"rust/lance-index/src/vector/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae91b9e4d43a99287371d56d301f8d8051b10ec3dad0bbe7ac9a6c946401494"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dir/namespace.rs: FileTooLong \u2014 1913 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: DirectoryNamespace (64-2747). The bar is 500 significant lines; this is 1413 over it, 3.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7db58ef7219bb0f50c5289ecb68fc29312e8a4e1877a3297cc05f3440a5a27d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CleanupTask: ClassTooLong \u2014 1524 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 428-3017. The bar is 400 significant lines; this is 1124 over it, 3.81\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b28a0f36cc584854b11efb82c2fe60f8514adb534d8fdde1470a035086856a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/vector.rs: FileTooLong \u2014 1901 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 1401 over it, 3.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc59fca3571daf5bbb8c67fd773c6115163e7a9d955a6794fb59fed88eedf17"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::transaction::convert_to_rust_operation: FunctionTooLong \u2014 lance_jni::transaction::convert_to_rust_operation runs 378 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 278 over it, 3.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"674b03a3850f0576824e3190b0e82cdf50c1cd57121b2535b3deeed31ad84de8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DirectoryNamespace: TooManyMethods \u2014 112 methods. The bar is 30 methods; this is 82 over it, 3.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d448f476d5ef83bb91bfa3b02ff85b87c7a08534f6f7a252db87a7ff2782701d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestNamespace: TooManyMethods \u2014 111 methods. The bar is 30 methods; this is 81 over it, 3.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/namespace/RestNamespace.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"867b4a309e7aa757d242082f48921e56893c60391cf846acd38e968e9b51d62a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/data.rs: FileTooLong \u2014 1839 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1339 over it, 3.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5859f2131536001ccfe1861286f7bf33fbaab94194f9229b75e28d2f73ccbd21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/reader.rs: FileTooLong \u2014 1838 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1338 over it, 3.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da12e9d341fce6e1cec7ac5f330f5614ebbd568fa27316b9d8620416b786bf20"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_datafusion_exec::expr::safe_coerce_scalar: FunctionTooLong \u2014 lance_datafusion_exec::expr::safe_coerce_scalar runs 367 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 267 over it, 3.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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec33a3d634251cb7ebd5a719ad056070cbc61e180a8eeb766bf084652711ad07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderableScalarValue.cmp: MethodTooLong \u2014 cmp runs 350 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 250 over it, 3.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1a781d9fb7664f6f64a3572580c06ac95146dae308675b27c9d0ec19cd2ced"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IVFIndex: ClassTooLong \u2014 1386 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 46 methods, 6 blocks, lines 1541-3819. The bar is 400 significant lines; this is 986 over it, 3.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"990b8c8b1cb7e75bf2d4fe21a8cd252b0ba52cffed4d265e0d99890cbf119e73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/write.rs: FileTooLong \u2014 1716 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 1216 over it, 3.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"888d4d82039329fcd177860b06eb0f2823ff0d11f1f0ffe3c404066a4441b53c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/expression.rs: FileTooLong \u2014 1713 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 39 free functions. The bar is 500 significant lines; this is 1213 over it, 3.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"197eefd43c8d16b9732da91520acc3b1bb144bda14e73e1be5c5e2db54daf547"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: merge_insert/job.rs: FileTooLong \u2014 1706 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: MergeInsertJob (2 blocks, 108-2551). The bar is 500 significant lines; this is 1206 over it, 3.41\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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2440c2349e6d1002f1ab78cca249da1a61378e34fd5d9d59fcd5fae6bda2cecc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LanceDataset: TooManyMethods \u2014 102 methods. The bar is 30 methods; this is 72 over it, 3.40\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":"python/python/lance/dataset.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb206c9032dc95891040a3cb934d5f03a1e61108aea9a2ec80744466fdd26c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/alp.rs: FileTooLong \u2014 1696 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 1196 over it, 3.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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebb37cb193f88f4e157b393ed730d362364909ed1d24fca605ce63bc90a39b2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: RabitScanStats: TooManyFields \u2014 101 stored fields. The bar is 30 stored fields; this is 71 over it, 3.37\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/scan_stats.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2e579592d176cf6ee7e5739c3f80df63c663605e291ffd484f10722eea72b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.scanner: MethodTooLong \u2014 scanner runs 336 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e7ef6d79e97a12e300ebe1748638f2dfbed8f7c7619ada5157eb04910c19d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/frag_reuse.rs: FileTooLong \u2014 1666 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 1166 over it, 3.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbbfa4b13e9b242e6e3456bb6f4ffb3c273662c0edb50ef187a5e3564666942"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/bitmap.rs: FileTooLong \u2014 1649 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1149 over it, 3.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1ea6e27bdd77f461a9a5d89dd30d0e865a0c275ea8aad5cd6aeda4ab482ce9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/fmindex.rs: FileTooLong \u2014 1645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1145 over it, 3.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7d0bb99b293b020493ba7438d27cbda23daaa1148142bd4a2f7daa1230e926"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/sparse.rs: FileTooLong \u2014 1633 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 1133 over it, 3.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0b1ae06b6e58243829b193676f9e70be2e7a3c422665cd3267e0624af51664"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileFragment: ClassTooLong \u2014 1294 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 64 methods, 2 blocks, lines 142-3340. The bar is 400 significant lines; this is 894 over it, 3.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89b3ac09f1f66c728e6dcb902ea6a77c599fcfe5d7e6cd3f5854db71abe1300"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: simd/dist_table.rs: FileTooLong \u2014 1597 significant 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 81 free functions. The bar is 500 significant lines; this is 1097 over it, 3.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6adba5ce5f5f54c1068cbbbd44a5a057e800714d1c8def591416c90808dd76"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::commit::commit_transaction: FunctionTooLong \u2014 lance::io::commit::commit_transaction runs 318 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 218 over it, 3.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"430e570be606fa33cb4c3a0a15004fb9a9d6a05ba9cfecbe1fadcf212d2eb209"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/miniblock_decode.rs: FileTooLong \u2014 1559 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1059 over it, 3.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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f020a015ee24f0010363772dd007dab20e0d15781ff5df0eeba1cb12b1c0e8f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/append.rs: FileTooLong \u2014 1555 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1055 over it, 3.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83aaad494c5192ca721072e20a998d3474cbff82135710ed00da2714de9c2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/object_store.rs: FileTooLong \u2014 1548 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 61% of them inside a single declaration: ObjectStore (6 blocks, 261-2573). The bar is 500 significant lines; this is 1048 over it, 3.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3babd06c84872ae5399551b4adaef77d3ed5603ecdd5d83423f4d0df41a35c30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::build_distributed_vector_index: FunctionTooLong \u2014 lance::index::vector::build_distributed_vector_index 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f22f4bd1ae6f07d5bb7ea4f6893a2d36a309c38dd8fe7602868b24e18e0545"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.check_create_index_txn: MethodTooLong \u2014 check_create_index_txn runs 302 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 202 over it, 3.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":"rust/lance/src/io/commit/conflict_resolver/check/create_index.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e95c604af086d7b8f82446d04d7f35c9e1b72491acd35f565817c34b4c88f10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IvfQuantizationStorage: ClassTooLong \u2014 1199 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 69 methods, 3 blocks, lines 1375-3173. The bar is 400 significant lines; this is 799 over it, 3.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/storage.rs"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ce4e0aabfcc79d8107fd61bb13f7b0473cc0e5f0bf112481d7873609d69715"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transaction/manifest_build.rs: FileTooLong \u2014 1493 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: Transaction (166-2544). The bar is 500 significant lines; this is 993 over it, 2.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":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbf7f8feca02924a66e6bb64c170a10d369c6244bcc825b8e62a06f49c3652e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::transaction::convert_to_java_operation_inner: FunctionTooLong \u2014 lance_jni::transaction::convert_to_java_operation_inner runs 298 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"10380b468abcce82fcc2c03673e9e92168d45131f1e67b55e11b46d4c36d7f4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::build_vector_index_impl: FunctionTooLong \u2014 lance::index::vector::build_vector_index_impl runs 298 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c56a68b6e8f7a2c75de276e944f8a56c18df3f41ee82ded4922370f69ead55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CompoundQueryExec.execute: MethodTooLong \u2014 execute runs 295 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5871016d775e69b87ee4f2193aa1e3d6fdb3ba7eab720fdc34b9ee99dceaf9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/compression.rs: FileTooLong \u2014 1471 significant 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 62 free functions. The bar is 500 significant lines; this is 971 over it, 2.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a1ffcbed85b0aea00495506a53eb96b1bdaaf7ab6e76d09f758f11b346cb3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/documents.rs: FileTooLong \u2014 1445 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 945 over it, 2.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/documents.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1253b549a05f7dd23f882b5f75f48f3a399d762a971231de2326ee07222160f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/commit.rs: FileTooLong \u2014 1444 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 944 over it, 2.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c28d34753c9833f5897fb28b77f489406714c2326d737d211654e39a260ec90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v3/shuffler.rs: FileTooLong \u2014 1429 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 929 over it, 2.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/v3/shuffler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8b163095210b927f1eb80ea3b79f36e259bc387b65f814e3dfbecc8eced2e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/ngram.rs: FileTooLong \u2014 1428 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 928 over it, 2.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dafa4afbbc5a664c1ad67a3270ffe01192ad7bac9b1000a9b46661f4776fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/partition.rs: FileTooLong \u2014 1421 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 921 over it, 2.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"312ffa2abe57c2d388f50809e978dfe2d74f8c38d684b11fc171950ab5b68457"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/kmeans.rs: FileTooLong \u2014 1418 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 918 over it, 2.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35ad91732c97b99164633f0772c0e54c41575c3a2a53b45682602bad601764a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FtsMemIndex: ClassTooLong \u2014 1129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 52 methods, 5 blocks, lines 1334-5303. The bar is 400 significant lines; this is 729 over it, 2.82\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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d94588b591da259a3e60d16368bb2c5047f5878e45c0f984fbf1ecf94c4d78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: write/writer.rs: FileTooLong \u2014 1400 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: ShardWriter (2 blocks, 894-2637). The bar is 500 significant lines; this is 900 over it, 2.80\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b2c9bbdbc279dc570d882c6b5253a528e4a3a50e3645b2de93eaf58d67440e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::optimize::execution::rewrite_files: FunctionTooLong \u2014 lance::dataset::optimize::execution::rewrite_files runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f35c224dc4b9d57bfe2ea786b3be8f8124584a26cf4cbe1aeb01b8bc215f536"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultCompactionPlanner.plan_groups_with_budget: MethodTooLong \u2014 plan_groups_with_budget runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c9fd10d11784d558ce3451089ecb58742cc901ec073c70aee5815f4b556f9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Transaction.try_from: MethodTooLong \u2014 try_from runs 277 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 177 over it, 2.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c258a382d4f7f215f0fbde994beabba0b47242ea16a8d4505fcc832d42e8e96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1375 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 875 over it, 2.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e4cb6c24c48464885216db4a6353d305fdfd06cd8ccd4bce809f831008589f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_tools::manifest::write_transaction_operation: FunctionTooLong \u2014 lance_tools::manifest::write_transaction_operation runs 272 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 172 over it, 2.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":"rust/lance-tools/src/manifest.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed127c3319127ae1f70bdbdce3bc29ca432b7d95c30eeb1485ee48e0708883c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/namespace.rs: FileTooLong \u2014 1358 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 858 over it, 2.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99b28999ad68f7a71bcd00214963c0d71bfbd2f043fe34a611ff8de2ab9eaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.vector_search: MethodTooLong \u2014 vector_search runs 269 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 169 over it, 2.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dbd2b66b4ce50dd395e48f7847ccea4abb0b4d27dcf8ae093026eb75dc7af9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.open_vector_index_from_metadata_with_plan: MethodTooLong \u2014 open_vector_index_from_metadata_with_plan runs 264 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e69352f911d5fbdcb6faecb8c8013e15b9d6edd53c91bd6cb3cf01e9bee356e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/fullzip_decode.rs: FileTooLong \u2014 1317 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 817 over it, 2.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24c761789eb0b68b3e68df1922a3c8dc31be241480122ec65b7b9736df63859"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::optimize::commit::commit_compaction: FunctionTooLong \u2014 lance::dataset::optimize::commit::commit_compaction runs 260 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/commit.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f18964d27680534cbd809744b65fbbfcfc187f9bda52edf4f13a09dd5e5cfbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::append::merge_scalar_indices: FunctionTooLong \u2014 lance::index::append::merge_scalar_indices runs 260 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"f579860b4a3a3214bf88b0db5378fc954c4518be5164655184988f7bddd183e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeInsertJob.execute_uncommitted_impl: MethodTooLong \u2014 execute_uncommitted_impl runs 257 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 157 over it, 2.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"b604429c07108feb8ecebd149401308138ffcccc03988a64b76b69f34f2440be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Wand.complete_maxscore_single_essential: MethodTooLong \u2014 complete_maxscore_single_essential 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":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e477e1c0b23f66788cb6cc035787c9dc1231560a6726e248b404ed1a04d10d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rest.rs: FileTooLong \u2014 1254 significant 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 78% of them inside a single declaration: RestNamespace (5 blocks, 627-1900). The bar is 500 significant lines; this is 754 over it, 2.51\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fdff5dd202be40028fb25ba386c1ddf208d609bfb3539db4666e51cd15a28d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/index_merger.rs: FileTooLong \u2014 1253 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 753 over it, 2.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d6009564eee2124e41db00455dc72e4f7cb2f813c9ec71d9ee96df4a0e63e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimize/planning.rs: FileTooLong \u2014 1244 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 744 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eae8dc5ed9e21e9c0263db53765390bf81fd21684df99afe9872caf48a08da5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fts/compound.rs: FileTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 737 over it, 2.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8515c30da6e4d8102fa311cb352a4a892b3e776ad1c14097ed6610a0224d90e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lance/Dataset.java: FileTooLong \u2014 1229 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 729 over it, 2.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e51396725a6a2500cb024c8932585d23f04294f8602d50fbd3e7a5e5123f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JavaLanceNamespace: ClassTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 5 blocks, lines 159-1520. The bar is 400 significant lines; this is 581 over it, 2.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e53b64552a5e0d9a095db79a872753f2c458acdd8ecfb9a919dcb89c9cad4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::inverted::cross_column::cross_column_compound_search: FunctionTooLong \u2014 lance_index::scalar::inverted::cross_column::cross_column_compound_search runs 245 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 145 over it, 2.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f985dd42cac8188add85254099b84462a4ee81ce09d20ed9975175f557301ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/manifest.rs: FileTooLong \u2014 1222 significant 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 47 free functions. The bar is 500 significant lines; this is 722 over it, 2.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-tools/src/manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ccd3b37b5a41004a85626eaeec05249863011752a2c65f58d93519c3365a5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/loading.rs: FileTooLong \u2014 1222 significant 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 68% of them inside a single declaration: Dataset (2 blocks, 631-1831). The bar is 500 significant lines; this is 722 over it, 2.44\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc8bf18302621af5e1833ca85c999ef5ecc630373e625789ba3fe9cd695bfcd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/cross_column.rs: FileTooLong \u2014 1218 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 718 over it, 2.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e14e927a2ae3c1377db5df1f3498a356b7b36c33b256a58a6e4c7011b06e8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RestNamespace: ClassTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 5 blocks, lines 627-1900. The bar is 400 significant lines; this is 574 over it, 2.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acfd0c11e19617f0d644ca8fc8a5eaf0d464ded6bb733e44923d5da5f071222"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::commit::do_commit_new_dataset: FunctionTooLong \u2014 lance::io::commit::do_commit_new_dataset runs 242 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 142 over it, 2.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeb9d7d5a4250b5db54b133efac4a5c9390f3ab721f77d3ff948c2d8fcac681"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Planner.parse_sql_expr: MethodTooLong \u2014 parse_sql_expr runs 241 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"e997709a37736ca78e071f25f68ab84a4aa6bbce9705099792c3dec6e70a30ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: lance_index::vector::bq::ex_dot::x86: TooManyFunctions \u2014 72 free functions. The bar is 30 free functions; this is 42 over it, 2.40\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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0b7992a03f994278f5aad7de8254f2385d70b1ce0a57903fa522166aea57e2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ManifestNamespace: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ad0dd8d48a413eba0df8c9ca79daab4d68e2e88304a7edb0d93b076e015183"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minhash_lsh/index.rs: FileTooLong \u2014 1197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: MinHashLshIndex (7 blocks, 174-1768). The bar is 500 significant lines; this is 697 over it, 2.39\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":"rust/lance-index/src/scalar/minhash_lsh/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb7ecd3396f29ac031572fd6f5ea9971eb8a94d1235e02ec0719ed3770f6d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanupTask.delete_unreferenced_files: MethodTooLong \u2014 delete_unreferenced_files runs 239 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3164713b916299237a19f9a3d6fe06a1180817835f1a0018195f75d8d90f437d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::schema_evolution::alter_columns: FunctionTooLong \u2014 lance::dataset::schema_evolution::alter_columns runs 239 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1d210068fe19c300171afed9d1ffa2065b50347ee16e28497c8d0f10a93174"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileReader: ClassTooLong \u2014 955 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 52 methods, 3 blocks, lines 460-2450. The bar is 400 significant lines; this is 555 over it, 2.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"234938cf021e6ea6fbc9c675df87a4a790645275319d4c15c94ecf16909def64"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ObjectStore: ClassTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 64 methods, 6 blocks, lines 261-2573. The bar is 400 significant lines; this is 549 over it, 2.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aaabb374e2a68be772123bde75a1e4ed85e85ad19bcaf1ab60c78abd100142"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pq/storage.rs: FileTooLong \u2014 1181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 681 over it, 2.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a4609b9300f2a40138dc718c284ffe50a31d33fc7cac4e637553eebc9d1555"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::optimize_vector_indices_v2: FunctionTooLong \u2014 lance::index::vector::ivf::optimize_vector_indices_v2 runs 236 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56055755765d937590cff3181bebb1bdf55481bad6e68a9525b8ccad112590a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/vector.rs: FileTooLong \u2014 1165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: Scanner (93-1740). The bar is 500 significant lines; this is 665 over it, 2.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f853b807716a7597dbf6b9e609c4e8d53ed1e4f6829d42a75601b38ed0ba9949"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem_wal.rs: FileTooLong \u2014 1161 significant 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 88 free functions. The bar is 500 significant lines; this is 661 over it, 2.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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6931018ebfa5a340e447071bc7ea521e5fefe614b917f9f43b2a6f056c91a814"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hnsw/builder.rs: FileTooLong \u2014 1158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 658 over it, 2.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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09b40df732a467321a34edd9cc33be2460d7148e01693a03574771fb20f459b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PyLance.into_pyobject: MethodTooLong \u2014 into_pyobject runs 231 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbb3b850ad1ded0f77dd08854d6c74ad6d651c8ff48f0f013bcd944a583ad5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IvfQuantizationStorage: TooManyMethods \u2014 69 methods, declared across 2 files: vector/storage.rs (68), storage/prewarm.rs (1). The bar is 30 methods; this is 39 over it, 2.30\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":"rust/lance-index/src/vector/storage.rs"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4229c23468a7e17ad6046c97df91429c642c52d73e812f9c3c52e506a186547"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rest_adapter.rs: FileTooLong \u2014 1140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 64 free functions. The bar is 500 significant lines; this is 640 over it, 2.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e0d01a4d080e3ea05aaee9ebfcea007ce3ba735e1228c0c4119659037a292c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeInsertJob.create_indexed_scan_joined_stream: MethodTooLong \u2014 create_indexed_scan_joined_stream 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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e972027fdb2aa54e83065f199949eac852a0e3f183df960310b9a68b47bf1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShardWriter: ClassTooLong \u2014 905 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 41 methods, 2 blocks, lines 894-2637. The bar is 400 significant lines; this is 505 over it, 2.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2beb1dae70aba8cc840a6d2ba1e59f1775a5580bf5b8b65985062f8dbd95fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrimitiveStructuralEncoder.encode_dense_page: MethodTooLong \u2014 encode_dense_page runs 226 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 126 over it, 2.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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15166587e53874af7b4e6a9453f3462f0a79a3df9ddf0f3879d40c8509a2cc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/update_join.rs: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 621 over it, 2.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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ee96eabc05a310f4bfe50782f129e4a8a6df33f38a6607d12708ce141894a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DirectoryNamespace: TooManyMethods \u2014 67 methods, declared across 7 files: dir/resolve.rs (37), dir/versions.rs (9), dir/transactions.rs (6), dir/index_params.rs (5), \u002B3 more file(s). The bar is 30 methods; this is 37 over it, 2.23\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":"rust/lance-namespace-impls/src/dir.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2142523dd561f982dbc11c208f0e9be175231d2f1ec26a0d817f76efbf5f5b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeInsertJob.analyze_report: MethodTooLong \u2014 analyze_report runs 223 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73c631ebf785cc347e7de3a4924b4e5e46f11c40cb67e780f5d37a20c5f94e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanupTask.cleanup_file_if_not_referenced: MethodTooLong \u2014 cleanup_file_if_not_referenced runs 221 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"584cf41c9bf6cf4a0ea5b58eae883d877fcae8ee2b9e9386b34f358de81ca1ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wand/maxscore.rs: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: Wand (2 blocks, 170-1586). The bar is 500 significant lines; this is 599 over it, 2.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db68f4df83d1edd722596ed067df787c3954e3651648ba2d230d15eb17c02125"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bq/ex_dot.rs: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 599 over it, 2.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b500e40cedf0f456912791d2e5f2cc14e589c538c2f325711718d1224a9ccda4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BTreeIndex: ClassTooLong \u2014 874 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 6 blocks, lines 2001-3463. The bar is 400 significant lines; this is 474 over it, 2.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37cafe8e14612d487e05e1206a25fca931a1ec726d01c92385173cba5a778ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/bloomfilter.rs: FileTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 591 over it, 2.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":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58060211de7eb39b9e7ed1d4fd3e5b732ef6019508f6ec3cdf93f58251d9ab85"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::builder::merge_partitions: FunctionTooLong \u2014 lance::index::vector::builder::merge_partitions runs 217 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7410dda02978354700a200edc1338dd1b5277c6b62b9f91ab0949f4ae440e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::build_vector_index_incremental: FunctionTooLong \u2014 lance::index::vector::build_vector_index_incremental runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed06a86e6fb10019f61c73ed3e733c2696c06972cc0d0088885dc81f9abf06f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::v2::partition_search::search_partitions: FunctionTooLong \u2014 lance::index::vector::ivf::v2::partition_search::search_partitions runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3d1730a3a81e0daa84f9827a5014b3c1447814f12d8b79bb8b67aa71014861"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::frag_reuse::build_frag_reuse_rewrite_entry: FunctionTooLong \u2014 lance::index::frag_reuse::build_frag_reuse_rewrite_entry runs 215 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc91d719e31fd2ea234f158e52ab8a522236fbb665251637bb97ed5898c97f63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datatypes/schema.rs: FileTooLong \u2014 1073 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 573 over it, 2.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34c8d8c387f04a8cea23a5dd0ca50829a5a3e4d20bb7a46f3db5fe7ff49c24a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fsst.rs: FileTooLong \u2014 1070 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 570 over it, 2.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7c699e9bd2532031584cafc32edd04616bb0a7f0d32aabedddafe77b3758a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/optimize.rs: FileTooLong \u2014 1069 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 569 over it, 2.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf3d515a1c34449bbca809e706710dc516edf1d841be16e7a276f2e834eeaaa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InvertedIndex: TooManyMethods \u2014 64 methods, declared across 2 files: index/inverted_index.rs (35), index/search.rs (29). The bar is 30 methods; this is 34 over it, 2.13\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":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fd33f6da89861c234c814afd2b73fa658d4df628e64cf2b6ea0ca6e3396730"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ObjectStore: TooManyMethods \u2014 64 methods, declared across 3 files: src/object_store.rs (60), object_store/local_staging.rs (2), object_store/read_dir.rs (2). The bar is 30 methods; this is 34 over it, 2.13\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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"947536c5656062e39363ec3e1ebadaf55fb9c97a970ccdbe280d3e5aed1d4889"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileFragment: TooManyMethods \u2014 64 methods, declared across 2 files: dataset/fragment.rs (59), fragment/aligned_update.rs (5). The bar is 30 methods; this is 34 over it, 2.13\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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2117db737d62388aad180e5747a5de52fd49f623c74b83891fd16931c7e16d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/transaction.rs: FileTooLong \u2014 1064 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: PyLance (21 blocks, 35-1419). The bar is 500 significant lines; this is 564 over it, 2.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc6d8d3f835f2274b3bdd440451cc3428256e27784180fcddbede25a1db91e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/commit.rs: FileTooLong \u2014 1061 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 561 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6162aee4953f4b5223ef57cb4ff2351f2a25e849a2507b8008e14423460e3816"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/json.rs: FileTooLong \u2014 1058 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 558 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5fa1dd2e109692feb6aa658edfc244fd5716ec8dcff90deb3427618e432ea8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mem_wal/wal.rs: FileTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 555 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":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dad4367f1c9849e44a86ccd2cac0b3680c7bcd0f124a0b8b9e010ea48f81372"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::optimize::binary_copy::rewrite_files_binary_copy: FunctionTooLong \u2014 lance::dataset::optimize::binary_copy::rewrite_files_binary_copy runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86165e109f1fb4858352f30a0a7f72281316ecb227b8c4c3682f74063d696de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/refs.rs: FileTooLong \u2014 1050 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 550 over it, 2.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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1424bf29ebb8cdc7b0fabcc3a10770f290ef5de52101b0b8ea61a78399e03d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Transaction.try_from: MethodTooLong \u2014 try_from runs 209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"376ead4e232edb0906a8140172969a4942e082a2aab95afffe3d1291db4b9411"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RabitDistCalculator: ClassTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 4 blocks, lines 1012-2348. The bar is 400 significant lines; this is 427 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"44017f222b818364d35fea518e6d07c2cef3fc8c9c7fa75855f3a913e55c6602"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DirectoryNamespace: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/namespace.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"afab5d949562c560ba05894593b300921175e03ed9f52c2bb5df936c41dad4a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestNamespace: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/namespace.py"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b1667136ba44f6a7c75c7657682733d42c37b6d144a52c920b774203e7e33b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blob/write.rs: FileTooLong \u2014 1033 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 77% of them inside a single declaration: BlobPreprocessor (2 blocks, 207-1403). The bar is 500 significant lines; this is 533 over it, 2.07\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":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f05ff2f48765f979cc1a5e14b978d54f3f5f433db716c1c21639ac224745ba6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullSchemaMergeInsertExec: ClassTooLong \u2014 825 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 4 blocks, lines 279-1490. The bar is 400 significant lines; this is 425 over it, 2.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a4037fd103a41cb5f85735df8b2b1d5289725ab0382f445b7ae14e98822bb5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FilteredReadExec: ClassTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 4 blocks, lines 2378-4165. The bar is 400 significant lines; this is 419 over it, 2.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4da9134fc6f32b1dc6dff6a1b34b746ec5c7878ecff684cc3e94a576bb30e84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/schema_evolution.rs: FileTooLong \u2014 1018 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 518 over it, 2.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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd97447303718a7f077e16da052297dd04d9e6657ec2c47e537d1d543b964b2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FilteredReadStream: ClassTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 3 blocks, lines 497-1839. The bar is 400 significant lines; this is 411 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1816f47ff6e80dd42f9583df01c9c5dc98d148f37103fdacb817ec8703ca3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1012 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 512 over it, 2.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":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24411ee021c957f14bfbc794626d24389bdc55a5ad8003319453d0c32003f3b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::blocking_scanner::build_scanner_with_options: FunctionTooLong \u2014 lance_jni::blocking_scanner::build_scanner_with_options runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33cb8b7fa27331a41e7cfc89be6b6af443eb653d8389fdaee094b33d9cc09f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.create_index: MethodTooLong \u2014 create_index runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86c8570156d70e09722626c2ac10c3d806308e35236f249b89e10f4743316ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VariableFullZipDecoder.unzip: MethodTooLong \u2014 unzip runs 200 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1247f256d9c1d5756c743a6fdd63d157c90ab4d9cf5483b6b18d5d2e325eee8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocking_dataset/index.rs: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 497 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"774a048b6fa78fb0a388912b11d4094782f22bc5c7be86d08d5b8c5af5f45168"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/write.rs: FileTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: FullSchemaMergeInsertExec (4 blocks, 279-1490). The bar is 500 significant lines; this is 494 over it, 1.99\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4655b4b0a8df05ddb1d94f372ea304f6f4c6706ba6952bfdbb0f4507ffb1fb13"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BlobPreprocessor: ClassTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 207-1403. The bar is 400 significant lines; this is 394 over it, 1.99\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":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a88932394da99d6c69875e21dc65ef53b46e6b8d03f67a45ab51f44329ba7e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/scheduler.rs: FileTooLong \u2014 982 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 482 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":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d95b9c24584ef6f35e9f58d0764e54ea7d133d581f266cd621251c1ff910cf3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InvertedIndex: ClassTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 64 methods, 9 blocks, lines 23-1201. The bar is 400 significant lines; this is 383 over it, 1.96\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":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e41fd2b9efa2a991ab6fde760411ca16ea8887dfbe3ea1a18aba67d04249900"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/search.rs: FileTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: InvertedIndex (53-1345). The bar is 500 significant lines; this is 468 over it, 1.94\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b5997325e2cf7d5a5e1cd9c77117c1a9cc7b9871305b65ac8c6ca9aa5f3047"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rtree.rs: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 467 over it, 1.93\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10227ea0f7a2ea34b267ee22c01d0e04a9d4b9e3c794faadfdb345a1b6b5a06"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PyLance.extract: MethodTooLong \u2014 extract runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c133c523d9483389c3cb7e81099212886c0a8718b15b442cf8288cd8ae4cdbb4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommitBuilder.execute_inner: MethodTooLong \u2014 execute_inner runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dadd6b1f940029d82fa9a1f8996ad39309170abe863efec06e65c2b7fc3701c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DecodeMiniBlockTask: ClassTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 3 blocks, lines 76-1156. The bar is 400 significant lines; this is 364 over it, 1.91\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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fdc65cabfcbc43b7f2adb40a31ec774ff5fdd6d50f9c12c1497cf3ec1b7797"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LanceStream.try_new_v2: MethodTooLong \u2014 try_new_v2 runs 191 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f28ec4c7c3c4f2eb6ef5af4aeebda9973cbf5524b91661ed506cfe0ac0ee087"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/binary.rs: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 453 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce503d513bece2e8a0c24104c43fae5d4da6a99e783b7d81b88e572be941ecce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Field: ClassTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 48 methods, 5 blocks, lines 137-1363. The bar is 400 significant lines; this is 357 over it, 1.89\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"656d8e36699bd431367f96fa59e986c3fb84382b3ca88251d75be444564b30e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullSchemaMergeInsertExec.execute: MethodTooLong \u2014 execute runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a4ccc98f0ff3b282cbb6c0541894cee470b2c0faa66cf5c08c12e7535cf50c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fragment.rs: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 444 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/fragment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b3b8697f396a36e78726feff47684f20e5068a9100bdc5a6836c755baec125"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sparse/planar.rs: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 444 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30f9b2745fb9c0ffee4d0dbdb675015e0246164374e24cb0690f5c96ac45142"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wand/posting.rs: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 444 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ea5623e44bf1e408b2dd4cb802844d42504165a7f421fb16ae62245273bfac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::inverted::index::flat_search::tokenize_and_count: FunctionTooLong \u2014 lance_index::scalar::inverted::index::flat_search::tokenize_and_count runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2b4e531deec21542dfe6733b59ac0d6db32b9db3cd61a28e744c9f58d7dfbb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MinHashLshIndex: ClassTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 7 blocks, lines 174-1768. The bar is 400 significant lines; this is 351 over it, 1.88\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":"rust/lance-index/src/scalar/minhash_lsh/index.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4e29be0bf86d713f1b75838ad0530e260939a64e046f7aa0b7c6496ab3f908"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::train_streaming_coreset_ivf_model_with_algorithm: FunctionTooLong \u2014 lance::index::vector::ivf::train_streaming_coreset_ivf_model_with_algorithm runs 187 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5819}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26de58353e25c6dc3b0ae0355623c10ecef6f8f4a2100393639cccb51524955"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PyDirectoryNamespace: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caf3f4cf725ab3eaf2e25880e2c4292ec2ddcdb3b3ad8ecc4526d2de24ee8a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PyRestNamespace: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"580aa53645042d1c7d5558d6bdc501788e8e3ab94c4adbfae13792c198390743"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/btree.rs: FileTooLong \u2014 933 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 433 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd40f402fc004d6cd0aa4ffacb85452810a9f23639bf0e392a66e756316db99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fragment.rs: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 431 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fragment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0215423d713392a5dfca9de49c079af79e7c8a3215b112fd6fd5e1b40087be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _dataset/scanner.py: FileTooLong \u2014 930 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 430 over it, 1.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4199d61a035221a17d9a373b4aa5b29110e33bcfa166bf8a17483965ed627f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PackedStructVariablePerValueDecompressor.decompress: MethodTooLong \u2014 decompress runs 186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"6574957ee28460a47705e464f3e18d0e1b4575f08378c191602df7dc1f807e84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: object_store/throttle.rs: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 427 over it, 1.85\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a08e2c41403eac9e86b37be6e104acf03881fbe4ece6fe45370907361f6e98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultCompactionPlanner.plan_with_budget: MethodTooLong \u2014 plan_with_budget runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"99331ff019bf6eb81ddc6ab6f2f8abdb946e62780a69f532b5f16d0fb38f3474"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::commit::do_commit_detached_transaction: FunctionTooLong \u2014 lance::io::commit::do_commit_detached_transaction runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27a3d22023a00d630d7d65558a8aace6f5c636b09930410036d798b2e804280"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PostingListReader: TooManyMethods \u2014 55 methods, declared across 2 files: index/posting_reader.rs (31), index/posting_prewarm.rs (24). The bar is 30 methods; this is 25 over it, 1.83\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":"rust/lance-index/src/scalar/inverted/index/posting_reader.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa474b0b999ea860f0771e1a3ca0df8ebaa32ad0deee9ad96532368d68d15147"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Wand: TooManyMethods \u2014 55 methods, declared across 7 files: wand/disjunction.rs (23), inverted/wand.rs (12), wand/conjunction.rs (9), wand/phrase.rs (4), \u002B3 more file(s). The bar is 30 methods; this is 25 over it, 1.83\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":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dde6cad07a5ad349f11aeb3b11fa77bd761e32165e65bae997c3a21ba35c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IndexWorker.process_document: MethodTooLong \u2014 process_document runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8931425667052e46c87dadcfdc3919422f56e0778e2335a27129815ee9f2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UpdateJob.execute_impl: MethodTooLong \u2014 execute_impl runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3de8a3a87d546a24d20995fd28c6e444ccdb6c99c8d5d3844e036caaab274cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.check_rewrite_txn: MethodTooLong \u2014 check_rewrite_txn runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check/rewrite.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f13337acb14252d05ab124f4c444f5c0afdf1ca56384f979f7782f0cff1bb35"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemTable: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8b37bb1989e6b7815025670cbe4398d939f09b1e529c859258a40b1411e2a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/fts_search.rs: FileTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 399 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3673452add65d2ca6b7f14282a07eaef4d346a598c54fccd5456925bed461cc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RleEncoder: ClassTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 5 blocks, lines 468-1447. The bar is 400 significant lines; this is 318 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7b9e57a745b56acf62c0cf909c1a1d179b0984898cd51accc58a42c689965c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logical/list.rs: FileTooLong \u2014 893 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 393 over it, 1.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0383e7a44514a005bb29fc83e052ccfa9743970c7793a8f9901ed593417b9f53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/flat_search.rs: FileTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 390 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d37a44544586b0dbe96d001bfe2080ebaa148f0087bbc0a9e9103f34052d9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/planner.rs: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 77% of them inside a single declaration: Planner (2 blocks, 331-1388). The bar is 500 significant lines; this is 388 over it, 1.78\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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc13f4fa116ba74ae802e612aa49012a1b4c1c8bb388189a977b26cac1e6c45"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CreateIndexBuilder: ClassTooLong \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), 18 methods, 3 blocks, lines 78-1201. The bar is 400 significant lines; this is 306 over it, 1.77\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":"rust/lance/src/index/create.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"302c9c928ad5a8c8e2ef60c17e40d1a8374a23e876fbc6f13afb469a5b24554f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/blob.rs: FileTooLong \u2014 876 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 376 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/blob.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c2a684d9d17990950b78614188f255cc7db0cff70188236a8e27b9d932df7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DirectoryNamespace.describe_table_impl: MethodTooLong \u2014 describe_table_impl runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"584e1f16367b2a01e5283699469618ebbc60528896323806517fb188a8ce3c2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/lifecycle.rs: FileTooLong \u2014 867 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 78% of them inside a single declaration: Dataset (2 blocks, 242-1320). The bar is 500 significant lines; this is 367 over it, 1.73\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"561ba0d354adabae98100549d6d03511340354b795ca66577114c9dc36ebf3ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileReader: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"946e39555a001a411de9ad1ce8c122258dc1c3464538bb5a1995f904cc25d427"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FtsMemIndex: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db74fead3bd8f72486d7040e1b4c8f23780084c1dc41fffd8e30ac23757a3e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: versions/mod.rs: FileTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 364 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/versions/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"100c873488d428e8d28ecf49b87277f111e963932aec03dc56ebd2cbf796f415"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/inverted.rs: FileTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 361 over it, 1.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149881f6d51674dfcf8ebb78f0606dbcbc7c7d2d26c356060b54e969df62f299"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hnsw/graph.rs: FileTooLong \u2014 855 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: HnswGraph (2 blocks, 338-1235). The bar is 500 significant lines; this is 355 over it, 1.71\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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"135244419087075afff6f9c9236e3a2ab585921f5d7d55de654a1cb9cefd5599"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InvertedIndex.bm25_search_modern_candidates: MethodTooLong \u2014 bm25_search_modern_candidates runs 171 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ca4c3746eaeacde443d7cab0a5797ba5a5d49be2a079d126874b464f7ce920"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_compound_scorer: MethodTooLong \u2014 plan_compound_scorer runs 171 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe36c2e6ecb1c75bc0f8f286fd08ec328a9147491c5ae15a7bf7d2937e2da1d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Planner: ClassTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 32 methods, 2 blocks, lines 331-1388. The bar is 400 significant lines; this is 282 over it, 1.71\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"55deefefc22a69a4618e194c2580a8bd6ab85de8c9cec5c226af1fa91bac974e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/utils.rs: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 351 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac91d3ca7c64695818b7f16943f52e78317df24c850771713ef9ae6fb6f93b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BloomFilterProcessor.process_chunk: MethodTooLong \u2014 process_chunk runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d58de03785deee989b7828adce7ae9cba18adfb2b5d753e5239e01318b3622"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::take::do_take_rows: FunctionTooLong \u2014 lance::dataset::take::do_take_rows runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/take.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6704bf9c45accb9d9049568c2eb1b74c2ec76b86a2b32ba7628b0ecd6583a358"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CreateIndexBuilder.execute_multi_segment_fmindex: MethodTooLong \u2014 execute_multi_segment_fmindex runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e765903973f27c5b52a329a9722a827cff1bcd2ea3265bb6f426d301534529"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/mod.rs: FileTooLong \u2014 849 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 349 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"304da8cb5cc31c284cafab34f1d5084413e4d8809643349487c75ab6c227b847"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/utils.rs: FileTooLong \u2014 847 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 347 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dea51ac05802f8a208f603fd36fe5bd9937d0f434b887336e08d0f9bb99865"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecodeMiniBlockTask.decode: MethodTooLong \u2014 decode runs 169 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf76c11428a118ee109dd8a807c2be488ea60c643e7aac5ef2c3120a0da346"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IvfIndexBuilder: ClassTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 31 methods, 2 blocks, lines 357-1441. The bar is 400 significant lines; this is 275 over it, 1.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb1cfb33f579008dbaf94bd132d9224a6bd78852b52ac13e9d58ef7d6a10d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/list_element.rs: FileTooLong \u2014 843 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 343 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98f01a352410e8b835451d1957f51be22c94654fd960d5776654d0a7f54e1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lance/fragment.py: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 342 over it, 1.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/fragment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d214f2a81d79f2a0449803a7b17dc3f84d868476248892276f1d0a91c5b5fb77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/create.rs: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 84% of them inside a single declaration: CreateIndexBuilder (3 blocks, 78-1201). The bar is 500 significant lines; this is 342 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"337a954ee1d86fef62f67173f8cd0bbbaa6fa8e5260acf2b15cad96f6dc7b452"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/scalar.rs: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 340 over it, 1.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"425ef7e2a17d93914e44a51ec71ab32571151a9f173a8ca3a06888acf6b267f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_fts: MethodTooLong \u2014 plan_fts runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"111137356fac584b8f8ce9cbd78703231476bbebbd6809efa0403ecd18c96751"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions: FunctionTooLong \u2014 lance::index::vector::ivf::io::write_hnsw_quantization_index_partitions runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b8fe5192492d991191015d2b29824f98d17eae93f6fea1b5d65477f6b370da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datatypes/field.rs: FileTooLong \u2014 836 significant 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: Field (5 blocks, 137-1363). The bar is 500 significant lines; this is 336 over it, 1.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d190df37172684ca3ad690c84ab8842fc6d71027225c11aa72cc3e659830291"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bq/builder.rs: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 334 over it, 1.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bf8e4ca13c63160f664cd5bb294131d601ff587a46f5dc30d8de5bd9ea7eef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShardWriter.open_memtable_mode: MethodTooLong \u2014 open_memtable_mode runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ce5252be21c01bedf3617e9dbf290601e1248650b70696e90f0e45b992c5c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/scalar_index.rs: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 329 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scalar_index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd2983e5d5a4e289ed9a770f66bdf547ae44c617ba31a5c236aaf1c9194751c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ANNIvfSubIndexExec: ClassTooLong \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), 13 methods, 5 blocks, lines 1554-2846. The bar is 400 significant lines; this is 261 over it, 1.65\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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8830f3d4dbae8c8cc9c0071cfcbfbd6388f2d232913a2dda356247d40aa47f40"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ObjectStore.copy_via_stream_inner: MethodTooLong \u2014 copy_via_stream_inner runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfcc2501698a9f2597ec2d2f79369b0da8aae68d0a27fa3b48926e18e790eda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/field.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":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f11e89479b6432c0a6c984190e8f5f44b7a3e723e6a32527aa955716cca008"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.commit_existing_index_segments: MethodTooLong \u2014 commit_existing_index_segments runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84cb49acc6023799e59873f2bd836c208aeceb279fdcc997900c7ecc47b06bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fts/flat_match.rs: FileTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 319 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d748e967d43a17158cdf19d4ce6d0949f31761e56bfe0aaa38760c2d8583eca3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KNNVectorDistanceExec: ClassTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 4 blocks, lines 225-1132. The bar is 400 significant lines; this is 254 over it, 1.64\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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa77ef2b7cbe13503ed14cb058bc17212914b15d39fb51d2dfa51c919871a32a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Schema: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a794a5d50e8a3e59ab0dd4b3ffa9aed7849172fda019290a072bf6e8a431c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/builder.rs: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: MemTableScanner (2 blocks, 533-1481). The bar is 500 significant lines; this is 315 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca260ce7b027f1580cf509b681eb83243bdfde923769521a1ae22f5d909154a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimize/execution.rs: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 315 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf34367e4edf997a2f9cf07de3e71a731b849ab3a24f6dc9b5ad4a960ba5b17"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ZoneMapIndex: ClassTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 7 blocks, lines 222-1315. The bar is 400 significant lines; this is 251 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd4965c34e0db56fe270c2ab7e693f64f5edef64fb06d93a3f411b2986d43f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/concat.rs: FileTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 312 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea67cec41f3e6f48f76bc8beb9696598a77948c3c44812e0aa4fd95c56b3879"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_table::system_index::frag_reuse::gate::classify: FunctionTooLong \u2014 lance_table::system_index::frag_reuse::gate::classify 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":"rust/lance-table/src/system_index/frag_reuse/gate.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97781e452281ecede9219adadb383ce15893e000cd43e79f2eeae87680867b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.create_plan_impl: MethodTooLong \u2014 create_plan_impl 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":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b0169969b0ba7c2ee5ffb90ed0b6364b21d72f160489682ba63968af912ad1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PartitionAdjuster: ClassTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 15 methods, 2 blocks, lines 2236-3165. The bar is 400 significant lines; this is 247 over it, 1.62\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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72d6f2e1327896f243b48aa6fc6600c4adfc364e7782ca2bbbfdb54650a42a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RabitQuantizationStorage: ClassTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 5 blocks, lines 595-3135. The bar is 400 significant lines; this is 244 over it, 1.61\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"647ec2ae4959d8daef0733add4a72726f39469f8398ee92dd9e91703f14de3cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: alp/restore.rs: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 305 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e45becccdb96592c7a0d0e8d1fc0362d3bb6e697d3c52e179f954ce679e0e59"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::compression::create_fixed_width_block_decompressor_inner: FunctionTooLong \u2014 lance_encoding::compression::create_fixed_width_block_decompressor_inner runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"200b4bb15ba7e669b2cf27bf282c182d9aaba796f3f87cc4b4dc2907c352f438"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::optimize::consolidate::plan_index: FunctionTooLong \u2014 lance::index::optimize::consolidate::plan_index runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba32eda5d096840c8b1a54fe002f7f42f02dce389264050cd3a3319642815f8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::train_weighted_hierarchical_kmeans: FunctionTooLong \u2014 lance::index::vector::ivf::train_weighted_hierarchical_kmeans runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a003e019c115508903116664588fa83d5465c9d7a6053d067814a75e974318dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mask.rs: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 304 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-select/src/mask.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1c549ec93c8a359f5ba4cfa6636a6afbd8094d9cf749e25ec3457880268e63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Field: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d1a4971bb6fef2f151d14a6e197f9c7ce9455b121ea690f926affea7c3d3a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemTableScanner: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"980f889d0683108e04ce74a3db46059d34433e465bf4b69a2bc26eba1f64fe80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blob/read.rs: FileTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 300 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/read.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54921143214e3625808012d4caa3697031d62fc5fea6e7e00969ca20dcda79f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/inverted_index.rs: FileTooLong \u2014 798 significant 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: InvertedIndex (9 blocks, 23-1201). The bar is 500 significant lines; this is 298 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feafaf2565fdd709598f1074cd9959488955b7962bc2378836eb2d413632a49"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem_wal.rs: FileTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 296 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/mem_wal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc7367789d3b1bd6e99769221373af3ac2f571edf44894442494b5773326c2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/source.rs: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: Scanner (220-1246). The bar is 500 significant lines; this is 295 over it, 1.59\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":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc53a1ddd48f2d55c9b4515e4e03835b42d51dc059e00acaf7c980d64d3f76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZoneMapIndex.evaluate_zone_against_query: MethodTooLong \u2014 evaluate_zone_against_query runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b773d277cae6096df55b89ecb309ead507f00250dec42989315181981fa08551"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Number.cmp: MethodTooLong \u2014 cmp runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e63c22da255a3c4362b2be8cfb77f3f0d45619f33ff9e9a3bc4a62c1a4efe5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/number.rs: FileTooLong \u2014 793 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 293 over it, 1.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c850502ee367836c69a40c8d71cda320d357cc31566f616977da5ff442cc159"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InvertedIndexBuilder: ClassTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 3 blocks, lines 211-1079. The bar is 400 significant lines; this is 234 over it, 1.59\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"723908458ab249cb6e98eb85bdc5d350b069e9461b28605de907414b420f2428"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rowids.rs: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 290 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"601179212c709718d4516eba9d6d2aa1ffa3077e0567d2f85105d8c9d7f310c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlobV2StructuralEncoder.maybe_encode: MethodTooLong \u2014 maybe_encode runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/blob.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c70e42231f0c87fd9d85ff8aba005dad42672f00592d0d715b1f54caa0d4bfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::optimize::remapping::remap_index_tagged: FunctionTooLong \u2014 lance::dataset::optimize::remapping::remap_index_tagged runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca1e734ee4ff527b592c6c2556e92c3c16486b73ed46dee530f410de41d3e5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Error: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/error.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e02543c4a026804a0866b8c117d4b79bf09828fcb492070733ca99b7eff6dd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::blocking_dataset::maintenance::convert_java_compaction_options_to_rust: FunctionTooLong \u2014 lance_jni::blocking_dataset::maintenance::convert_java_compaction_options_to_rust runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/maintenance.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0988f407e410e36a0f79f14d4581ea290ce292bf24141ae0b2fb8951900119"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/block.rs: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 278 over it, 1.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67372a3190b9b87247f0780125fda889041f7aa250270b1284bd164a641f53f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/label_list.rs: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 278 over it, 1.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45acd6d1f9b942f0e552ad049b77ea3af362874a18f1c29dff7cf9190d8aba1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: conflict_resolver/check.rs: FileTooLong \u2014 777 significant 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 100% of them inside a single declaration: TransactionRebase (9-1215). The bar is 500 significant lines; this is 277 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4b97bb76f6a27b42134eb5f6ba1b92bc84e1ba7906ccc879f681fe5b24a87a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: format/manifest.rs: FileTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 270 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":"rust/lance-table/src/format/manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9714ec517259d61768b4c3ff310f51d9b9ae05ad69c50959330ee80a90fecfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::utils::get_vector_index_params: FunctionTooLong \u2014 lance_jni::utils::get_vector_index_params runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/utils.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2733806068c54191fe187cf5691060d29e9716923a797cb4c91ed60285448429"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ManifestNamespace.create_table: MethodTooLong \u2014 create_table runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e88857834eb6ad39409cd0ace2c39824c3353d1e2f6c631052c9066d2a71f82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/query.rs: FileTooLong \u2014 769 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 269 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":"rust/lance-index/src/scalar/inverted/query.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c86d793deaebd77690e12b89ed2a8d2079fe37fa5beb13b8866bb3f3fc634"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IVFIndex: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"09820719a9157e79ec20269c6dec4aa34bea4861bfbcb5543dac0329539c7a02"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VariableFullZipDecoder: ClassTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 3 blocks, lines 835-1669. The bar is 400 significant lines; this is 213 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6b31ceb451e9a727bdbe8aa929786fb273a0c7ec1dba8a4f3e07dd1a27cebb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/posting_prewarm.rs: FileTooLong \u2014 766 significant 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 96% of them inside a single declaration: PostingListReader (12-1068). The bar is 500 significant lines; this is 266 over it, 1.53\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38f90dc58add9cb3b92ce7a7448cc74834604d3b9e2c4b646c3ab720da2046e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rowids/index.rs: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 264 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c5def36e3f06a64aa82f53235f3a48e8c71845f5dfaa4629fced60f344d17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: primitive/all_null.rs: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76c0ff9e1db16f0bf697e42daf4ac9cfcc87c0dd4faac3a38f9b844bdaca991"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LsmVectorSearchPlanner.build_knn_plan: MethodTooLong \u2014 build_knn_plan 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":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"d265a6863d144eed1b73c84f702f54538330f8589535e32c677671708e8d541d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ANNIvfSubIndexExec.execute: MethodTooLong \u2014 execute 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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":2612}}}],"partialFingerprints":{"codehealthFindingId/v1":"24af07814d143f984f916943a48bdbaac2d58b1c90df9434a04ffea542382f78"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HNSW: ClassTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 4 blocks, lines 203-1928. The bar is 400 significant lines; this is 203 over it, 1.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc921c9d2e9e674051608ba2513384580d730d63bfb4d3dca15af77211108d6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: credentials/gcp.rs: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 253 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8e0851f7f877a12f371b55d113b6aa1a313f205a608465d61f3b8d5af679d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distance/hamming.rs: FileTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 251 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84237f5c25ee4f28387ee6d338c5d88f6cceb403d6a6f484ee12c6345a1e976"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Scanner: TooManyFields \u2014 45 stored fields beside 177 methods. The bar is 30 stored fields; this is 15 over it, 1.50\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":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88f0f18edebed51bde63611459ed4dead226044f643aeafeb6e19749692811b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MergeInsertJob: TooManyMethods \u2014 45 methods, declared across 2 files: merge_insert/job.rs (44), merge_insert/update_fragments.rs (1). The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a091823fa1ba1f24fcee821e846bae61b55934e8ee9bf9b4d1da0ef5d9e0d4c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FtsIndexExec.materialize_rows_sorted: MethodTooLong \u2014 materialize_rows_sorted runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59e4f916abe6992dd69a97af81707022079e4389d491e2656411aedb3a2c105"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IVFIndex.try_new: MethodTooLong \u2014 try_new runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"910e5e18e070acaaa99ec30bccc75ec4778f1ec92ab257f6874dfaeff5088559"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/file.rs: FileTooLong \u2014 748 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 248 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/file.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"798163f1e7a69c4d6fa87a1d5c95dd59034f026958680d861141e37312fb44e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/pca.rs: FileTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 247 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pca.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0724edc09f36d35e684a334afad0ecf376e0b82a75dbe57d901d4742eb6267"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HnswGraph: ClassTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 2 blocks, lines 338-1235. The bar is 400 significant lines; this is 196 over it, 1.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2227662cf75cc1923dcb042678f7d2d5b8c503e08a0b3603358666aab553ddc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::blocking_dataset::index::inner_get_zonemap_stats: FunctionTooLong \u2014 lance_jni::blocking_dataset::index::inner_get_zonemap_stats runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1fde39ef3dcf97b84687375c663344cc32f9d903b2549f1c03a904dc2cd8b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlobPreprocessor.logical_to_prepared_blob_array: MethodTooLong \u2014 logical_to_prepared_blob_array runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb2e296efa3fc21c5cc04d1f6d4fa18b4c28d8fd91a20e77f6d56e65fade361"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/point_lookup.rs: FileTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 240 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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37648ec11f6440ea2f265bc68e22ce2f8fbc2c07c3a5c7a1bc809d156a6859fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pylance::dataset::prepare_vector_index_params: FunctionTooLong \u2014 pylance::dataset::prepare_vector_index_params runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"309d99034e6ea5eff65a091fbc19ffc75f16d180ba772936a19f119005749882"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileFragment.open_current_file_reader: MethodTooLong \u2014 open_current_file_reader runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e9d6176162e6a1cbf56233d93a624586a837d6d51a4396238fdf5d4d1a81e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::mem_wal::write::replay::replay_memtable_from_wal: FunctionTooLong \u2014 lance::dataset::mem_wal::write::replay::replay_memtable_from_wal runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/replay.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc2aa2fb9d85e6b9cb6aaf4456cdea961512322017f30cce659bc65ada34186"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KMeans: ClassTooLong \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), 18 methods, 2 blocks, lines 967-1810. The bar is 400 significant lines; this is 191 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":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"923d6642ecc37ae42fdee751f90a8fa5d4618422f16146ab24dc6d83cd67d460"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.fts_global_statistics: MethodTooLong \u2014 fts_global_statistics runs 147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64e8f83bc42d014824ca322b77caf033ef495c4cb374a0d067968052884b752"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Transaction: TooManyMethods \u2014 44 methods, declared across 4 files: transaction/index_maintenance.rs (22), transaction/manifest_build.rs (18), format/transaction.rs (2), transaction/row_version.rs (2). The bar is 30 methods; this is 14 over it, 1.47\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":"rust/lance-table/src/format/transaction.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5080b536f6a2cc49a185e687e777b6d82934d2ea88a72f83cdbf8be961d548f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commit/external_manifest.rs: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 61% of them inside a single declaration: ExternalManifestCommitHandler (4 blocks, 566-1176). The bar is 500 significant lines; this is 230 over it, 1.46\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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdb65b483d4039c552432f511432cc0a601d105c0e9bb899b7cee45c6981a55"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fsst::fsst::decompress_bulk: FunctionTooLong \u2014 fsst::fsst::decompress_bulk runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58e76fcabb21c1675c75a23314f46464724d025493a6b067c218923a9560466"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.check_update_txn: MethodTooLong \u2014 check_update_txn runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9545976c68b252724cda18d30b4e62619002d2918a890d88748101e68dfee38b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/blocking_scanner.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":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cbeafc0a7c35c01c1cbdecf1f8452bb288d4c9c52979622a33d8bd1b0418d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_combined_fields_query: MethodTooLong \u2014 plan_combined_fields_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfca681fb556349637292a6c69e9158db94307a50a219d413509bc6c17a64457"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::frag_reuse::validate_folded_deletions: FunctionTooLong \u2014 lance::index::frag_reuse::validate_folded_deletions 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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a66fb1874f7e0673f28fd9d610199f3119fbe0974e81369c7d759113705ab5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lance/namespace.py: FileTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 223 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/namespace.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5e3b60d24a333d78d3b0a38471f64fadc54c3d09661ca2c02a312bd2141355"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JsonIndexPlugin: ClassTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 5 blocks, lines 837-1653. The bar is 400 significant lines; this is 178 over it, 1.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d87207de84fe6f1da59496de9ccf1aff28a5db30b2a2e6c26766145cd5dd4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::sparse::planar::encode: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::sparse::planar::encode 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7038b201d1bafba4c15ea13b8b8499635de3643e51b66659076858ae22dfd6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrimitiveStructuralEncoder.sample_unique_ratio: MethodTooLong \u2014 sample_unique_ratio 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2e13f029caaca61a1f86c8d18e5e9d7842e24c976b502b4b5910ac8b252952"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns: FunctionTooLong \u2014 lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns 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":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7bb44f6680063183dce140117c67b56d946402ebe9074067456168486ab770"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BatchStore: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/batch_store.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7195fb0cd81bc2edf3f91888dafe8119cd88ee718ccfa33f15a52e5a0c53a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_table::utils::stream::wrap_with_row_id_and_delete_impl: FunctionTooLong \u2014 lance_table::utils::stream::wrap_with_row_id_and_delete_impl runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ebc52644a4538cc9ab06402279c3652d26aefabba295c6af964571c59eca57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchRefineExec.refine: MethodTooLong \u2014 refine runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/refine.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc70dcc4d8038c1d46c282fa39845193f9f819d8429cf756ce0c0aa622ca2b0f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Error: ClassTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 47 methods, 17 blocks, lines 160-1111. The bar is 400 significant lines; this is 171 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/error.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"def600bf3e24d88312897dd7d4c361173167da27d9315067491fbf0a48fba4bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocking_dataset/read.rs: FileTooLong \u2014 712 significant 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 55 free functions. The bar is 500 significant lines; this is 212 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79b1eee1184c1774b4aa08ca169d2362105f249bb36c9369daa9c6760f70596"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ManifestNamespace.rewrite_manifest: MethodTooLong \u2014 rewrite_manifest runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e226aba445c311dd51c2b0a6a5f532bae6212f5f30ea2fdf4f8b6622da676422"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DirectoryNamespace.query_table: MethodTooLong \u2014 query_table runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"42809cb6d622ecc08353369042986cadd7f999cee9f0541e19451db0ec197bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/error.rs: FileTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: Error (17 blocks, 160-1111). The bar is 500 significant lines; this is 208 over it, 1.42\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":"rust/lance-core/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfe5c60613334e5724e17cf7ded3aa594078f3c6aaf5cca2497558a2248962f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transaction/validate.rs: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da2467e8f9db2c5adbd56454e49636080f1e9605c1e1c60afc5c39a96907e95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/sequence.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":"rust/lance-encoding/src/encodings/physical/sequence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17be0b5caf64b7b5bd4107ffbef9f3acde4c5e7be9a0529ffbbf684c0535c93a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fsst::fsst::build_symbol_table: FunctionTooLong \u2014 fsst::fsst::build_symbol_table runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d390b5e7d906f18f23864743cdde5db09f4fe765d673f9ad3be52b5ee5d48b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanarSparseScheduler.try_new: MethodTooLong \u2014 try_new runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aee05077945ff54a089d5dfea2166820dd8e7d5566d62dfcc1cbc6bddaca00e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LsmFtsSearchPlanner.build_source_plan: MethodTooLong \u2014 build_source_plan runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e274533121ade2d94e7b01ec46836d02e4f06cdb800ff817e7c259a5164c87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_phrase_query: MethodTooLong \u2014 plan_phrase_query runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb97e13e3ce8a28a18280a9ff281aa6344d50f66fa2c04548ec1e19edc8a4681"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/plan.rs: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: Scanner (65-1207). The bar is 500 significant lines; this is 203 over it, 1.41\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":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03516361ec42533feccf677c793869e70e8ffe47a803cd90983d504e303dd4f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MergeInsertParams: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"java/src/main/java/org/lance/merge/MergeInsertParams.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b237dc71506f6a70327f1acb0e02f89d519c5063b4665d54f217382d70f9aad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InvertedIndexParams: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"rust/lance-index/src/scalar/inverted/tokenizer.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee28d1008a48c1ded12330a40725f31347ee14da07fd0a4f382818d5ea54fe50"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2: FunctionTooLong \u2014 lance_encoding::encodings::physical::alp::transform_chunk_f64_avx2 runs 140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee5806e254b7f0dabc9b1de4f4d45e2d215b45cb7179d361d797d651207ff30"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PostingListReader: ClassTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 55 methods, 4 blocks, lines 83-919. The bar is 400 significant lines; this is 159 over it, 1.40\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":"rust/lance-index/src/scalar/inverted/index/posting_reader.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff65066e9aeaaf8e7c9c8ff181a44a9528eabd6044f4e4fb339d90cf9ca4d01"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/tokenizer.rs: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 61% of them inside a single declaration: InvertedIndexParams (5 blocks, 105-1230). The bar is 500 significant lines; this is 196 over it, 1.39\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":"rust/lance-index/src/scalar/inverted/tokenizer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4714f64df878bce23017fb476a17cc1aa3be99807b08fa671aa9dd80eda41e73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ivf/streaming_hamming.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":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d725925bb636705761409de462c3d51ec0c0bd60a11d4e204fdb49d5e9c2a509"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullZipScheduler.schedule_list_structure: MethodTooLong \u2014 schedule_list_structure runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2753fdf83d231ead6c3282d9883020df53769c1191c373c6cda0d8ff887bf8bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::lifecycle::build_index_metadata_from_segments: FunctionTooLong \u2014 lance::index::lifecycle::build_index_metadata_from_segments runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6664d970ae42e34414a799e465f69cf8954fd1b5085743a34452f2d328ab2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.finish_create_index: MethodTooLong \u2014 finish_create_index runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d7094cc3eea399e4b7f59e873625e4da7063aadff0ab7ea2e580752bdfea85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZoneMapIndex.try_from_serialized: MethodTooLong \u2014 try_from_serialized runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78972a22813a6fe3a873ae91916d4f2a7e61ff74a5a63e961a1ef0093aaba1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mem_wal/api.rs: FileTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 188 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b49603d3e1ea17501d495a46c47c1efaa83d06d31fa7699ada11929df655f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: simd/f32.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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dab89fbeea8f77ef96a5223a9294b639d86144373c4be3d6743d0c00333a948"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minhash_lsh/builder.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":"rust/lance-index/src/scalar/minhash_lsh/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4c662892a98d31df784e4a335698c99c3ed77973cc931ddc79d30a0be18b3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: updater/blanks.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":"rust/lance/src/dataset/updater/blanks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0a62c61e4c36cb6ae15a0b3028c91644fa4904515b63ea056146e71fea9fdf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.merge_existing_index_segments: MethodTooLong \u2014 merge_existing_index_segments runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"807eb689756389123351a320a75db144add35f1a5ac1febe1695fab671cff677"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlatMatchQueryExec.execute: MethodTooLong \u2014 execute runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ab0c932e6e4ec958d15bb62a8e076de44580d3ced632d75b9a9b33b7075fc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::exec::knn::warp::warp_select: FunctionTooLong \u2014 lance::io::exec::knn::warp::warp_select runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/warp.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e54ee305853c780b86c9d78fe24f17cc689938afcf53a485b0991cf1660621"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distance/cosine.rs: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 184 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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72d99ce699904b50487441892ddf7efce1738296c0a14e50292b802a2608c8f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PostingIterator: TooManyMethods \u2014 41 methods, declared across 2 files: wand/posting.rs (37), wand/maxscore.rs (4). The bar is 30 methods; this is 11 over it, 1.37\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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c773bfebe55b292bdc65768a1967597af926e868d8c77f99cb00d1831ca1fbd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShardWriter: TooManyMethods \u2014 41 methods, declared across 2 files: write/writer.rs (40), mem_wal/api.rs (1). The bar is 30 methods; this is 11 over it, 1.37\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":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5e7ce7171d514e470354e12be0fc02418cff59e67ecd04700d8586eb34c60a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProductQuantizationStorage: ClassTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 6 blocks, lines 171-945. The bar is 400 significant lines; this is 144 over it, 1.36\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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3483688ec2354b10e4d6d12bdbd8600ded6444cb7e21b15a119fddc4a3f46637"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecodeMiniBlockTask.decode_inline_bitpacking: MethodTooLong \u2014 decode_inline_bitpacking runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"993f94db4cb4461318305f8e2e5691249f623d45399ecaa324364c5aa74e1383"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/packed.rs: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdd89be77f1cfe99267ce5aa87eebb5d343d24a40906377d54a06ab5851108d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AzureCredentialVendor: ClassTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 3 blocks, lines 221-978. The bar is 400 significant lines; this is 141 over it, 1.35\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":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4c44dba56adb73ec3169538a620d629fad20a053e360f00968452cc7f5749c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::sparse::select_position_set: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::sparse::select_position_set 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d6cc729d27127f1284a19c1e919f8ac18e51a5dbfb4e8600867f7c71f6ef00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2: FunctionTooLong \u2014 lance_encoding::encodings::physical::alp::transform_chunk_f32_avx2 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"4506a6783424a7b04d355df512761e40f62140704690994a43f779f891092d36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_corpus_query: MethodTooLong \u2014 plan_corpus_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ccfa4b4a4c61d741f3b4b3e9be2039042b589b51ee7ce067e1ddf3000f83ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.plan_match_query: MethodTooLong \u2014 plan_match_query 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec39fc5b51923fc6e5bef599e56d0ffb8e0b5cf960f47b74ba961cf042276a66"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: credentials/azure.rs: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: AzureCredentialVendor (3 blocks, 221-978). The bar is 500 significant lines; this is 171 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a588245d05c3986df76533d66fb8c297fdf9d37a44f48f9b33329fd8320e8c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PyRestNamespace: ClassTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 56 methods, 2 blocks, lines 872-1577. The bar is 400 significant lines; this is 136 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfc0c0f76079a0919ce51eb27aadb5f401ef2fd0e0bc0a0ced2205121ffd11d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transaction/conflicts.rs: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: Operation (2 blocks, 18-1000). The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/conflicts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c2f4445c6fd69d877e62bd9d5af0cac4dfbcf6ed72a242ebd3609de9fa4d42"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::blocking_scanner::build_full_text_search_query: FunctionTooLong \u2014 lance_jni::blocking_scanner::build_full_text_search_query 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":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f1537678797844c974cf30be763b5b51a79431433d5787c6f3d707b8e38f57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileFragment.validate: MethodTooLong \u2014 validate 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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52d4137ba56357efc4305c4cc2e6970d0b23a152bf00edd0456a6b7d268809e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimize/remapping.rs: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc3e6dd9c2ba91d3a547b3548dbbb3e722adcb40c6dda8bb9abf3e42c186ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ZoneMapSeedWriter.decode_seed: MethodTooLong \u2014 decode_seed 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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"117fba148ae1343c1183b7b4738aea721a9f986066c46388e98fc6281cc5190c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_namespace::schema::arrow_type_to_json: FunctionTooLong \u2014 lance_namespace::schema::arrow_type_to_json 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":"rust/lance-namespace/src/schema.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cf4609738cf891025a60588f50cbd2f32714cd538d92d314660d3156b3e9df"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::builder::build_fresh_partitions_windowed: FunctionTooLong \u2014 lance::index::vector::builder::build_fresh_partitions_windowed 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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5394e4b6b610519dbf527d7177a5dd39263c4a30980dd0646eec48e76ec6bf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::write_root_vector_index_from_auxiliary: FunctionTooLong \u2014 lance::index::vector::ivf::write_root_vector_index_from_auxiliary 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4315033aa10b184d88d3bc1ff94248d32b08e5af2b095663fe8498986026f369"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/bitpacking.rs: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/bitpacking.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e30d12662d04ee3755e2a1110b73d5d1f9f568122d6e6a0fc57a37fa6727b4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PyDirectoryNamespace: ClassTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 56 methods, 2 blocks, lines 122-821. The bar is 400 significant lines; this is 130 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"65322eec5532fa4ae37f2eaaf690da3719686348e1799e760ffab168f090e4bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScanOptions: ClassTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 130 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/ipc/ScanOptions.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a36e14bf5b6f3ce0a4cc7c91f56c76f281bf0a208e1399cf194c5a45ca64c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/provenance.rs: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 162 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":"rust/lance/src/index/provenance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dc2d5b2f978e3517f4001731d8a50bd386255ff7b7bf3b336dd6344df0f159"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BitmapIndex: ClassTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 6 blocks, lines 173-1354. The bar is 400 significant lines; this is 129 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"341f5e556f529d7a113d2a8e768197bfd70ec732cb712eb55c2ef8ae3fe6dc9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/substrait.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf164753b58ae914b8927c46b2dae1545dcfe5a8c20da0d35d07645b6cef6ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inverted/encoding.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bce077823ca7af27dce89deb989a945763d9916c3eb8261243fa598e56a071"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::exec::count_pushdown::try_rewrite: FunctionTooLong \u2014 lance::io::exec::count_pushdown::try_rewrite 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":"rust/lance/src/io/exec/count_pushdown.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5481a6be67d46f4ed15383a6789f80e318a657164093841f7dd2c96392d867f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultCompactionPlanner: ClassTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 6 blocks, lines 800-1659. The bar is 400 significant lines; this is 126 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"8031bb6bc62d278b732fdf0f5e7bacb361f7a9cd17c162ec614e2a4bb63386f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transaction/proto.rs: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: Transaction (3 blocks, 85-849). The bar is 500 significant lines; this is 155 over it, 1.31\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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3112bbdd41fd1c19362bff77c2fe301b9bd66b7ea19ddd682623889c476fc4a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/scan.rs: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 155 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c3f7157aabfc8cdf2ee9561a58b3d257fa694c70b0cc865ce39883ac76dda4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.prefilter_source: MethodTooLong \u2014 prefilter_source runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1fe52535c907869283a015daaf3c9d16092741be9d8d29d727dac4723e31c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ANNIvfBatchExec.execute: MethodTooLong \u2014 execute runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/batch.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0128225c651559227ec16e676c224e8b1a8505fea4481f0ef9a2f9c87315311b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LsmFtsSearchPlanner: ClassTooLong \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), 16 methods, 2 blocks, lines 661-1553. The bar is 400 significant lines; this is 122 over it, 1.31\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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4527805a074eaa0adcd399988f04196cbbcd3df1ee83105e508823a4ec2557"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/exec.rs: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be2b318f7ded009c34f85e830eae182d1a062cb3a6fe75b292a72d45b4d25af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LsmScanner: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 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":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef49b13b8f3ab6f95a452b87ec216d81536c0f3a71bd2610d7d9e29136760ae3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DirectoryNamespace.alter_transaction: MethodTooLong \u2014 alter_transaction 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":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb2f9c01ad80c661539bcdcec3c7311f80507f67ee0a54f79f14140880df7c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.create_data_file: MethodTooLong \u2014 create_data_file 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":"rust/lance/src/dataset.rs"},"region":{"startLine":2832}}}],"partialFingerprints":{"codehealthFindingId/v1":"d228821416aa2fa7dba1a288340594f904a5180704d392cb5998259c4200af2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::rowids::spill::read_spilled_column: FunctionTooLong \u2014 lance::dataset::rowids::spill::read_spilled_column 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":"rust/lance/src/dataset/rowids/spill.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9566c5ee7b3190af4c7dc61661459605ed36fd97582957469dd8842050ef7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::scalar::build_scalar_index: FunctionTooLong \u2014 lance::index::scalar::build_scalar_index 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":"rust/lance/src/index/scalar.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"2406c1409cc93cc90b551732d86f9d94fa8003b1a044c5e85b187b9e52d282ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IvfIndexBuilder.build_partitions: MethodTooLong \u2014 build_partitions 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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"064b0a20e2680ab899045aa34d60478468a6e92c915b1a2fdb3bc55f0c423a59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bq/pairwise.rs: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 149 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1affa07d15afd3052fbc2794ddf0ff52ebc9f41adda1dd3ba0a6daec1c4930"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rowids/segment.rs: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: U64Segment (5 blocks, 41-848). The bar is 500 significant lines; this is 149 over it, 1.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c89b0a74bc29b4f5d12e9f13ca7b44d7461077baa2954a645a909fc49f02d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: physical/value.rs: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 146 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/value.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d0e21356362c04c9631f0b548b39846e87541304999d4d1f4655c13771c8d7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PostingListBuilder: ClassTooLong \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), 30 methods, 2 blocks, lines 25-777. The bar is 400 significant lines; this is 116 over it, 1.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_builder.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3f827fff0afc1991e5979bdbfebb0559d6fbdabc05d8dccae89dd68dcde2db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: writer/structural.rs: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/writer/structural.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02853cd8de8cb65d526cb28a46113f7d24ca41a61315397ec5fee7c5ba02c89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transaction/index_maintenance.rs: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: Transaction (60-1129). The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33384101c7c43a8ad90d205d795c11ac7148d9eaca161480d1d3e048d5004331"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knn/warp.rs: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn/warp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28a3c95bafc491804ee7c58e6d28364b214d9af24f73768fe98fadd38ec7b4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::blocking_dataset::index::inner_create_index: FunctionTooLong \u2014 lance_jni::blocking_dataset::index::inner_create_index 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":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73237bf7ec234b5476c7553a618d58217ccbe05669ec7a49b437b80245d3d24"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pylance::dataset::write::get_write_params: FunctionTooLong \u2014 pylance::dataset::write::get_write_params 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":"python/src/dataset/write.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a38985894bd049cf890d9e38f384c544f67bcd9ca8a206135abebc034050e89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BinaryMiniBlockDecompressor.decompress_range: MethodTooLong \u2014 decompress_range 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":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"262fc343e1f0c52cf4954367459f36762d389b32f07c150734baf22222c0a1b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::prewarm::prewarm_index_segments_by_metadata: FunctionTooLong \u2014 lance::index::prewarm::prewarm_index_segments_by_metadata 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":"rust/lance/src/index/prewarm.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fa0cc48bd813d549ed900e498cc4ababf6ce79c27b4ca4add89f0414024d0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HybridCompoundQueryExec.execute: MethodTooLong \u2014 execute 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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a0f5defbee7f5f32219e812548ceb161bb9ee97eaf191e75d8b6551524d632"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemTableScanner: ClassTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 48 methods, 2 blocks, lines 533-1481. The bar is 400 significant lines; this is 115 over it, 1.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a442dbee2a3161ca4c4e47b1d2e258035db3089d828486ccf41393c4ee58fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NGramIndexBuilder: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 2 blocks, lines 1207-1950. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dfb7e84c8d67909d7cdfe1ce9e306a9bfcbf1cb3ade95a88b81981f2450a64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: write/update.rs: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 140 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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba78ebc8d2a3fd9e026eae204f06a391b8ec6eebea551020a13d75ba68bd956a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VariableFullZipDecoder.decoded_bytes: MethodTooLong \u2014 decoded_bytes runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0fde3166cebda8399eb4b0000558d0b1e420afd469c6f31748b530f77a0fdd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SerializerContext.normalize_specials_and_plan_splits: MethodTooLong \u2014 normalize_specials_and_plan_splits runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d227bde5847e48e1b56c19c6f2cfb3f32f61bc990d8ae917da1c71444b93af80"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::blob::external::collect_external_blob_uris: FunctionTooLong \u2014 lance::dataset::blob::external::collect_external_blob_uris runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"350c679895cb070230ae121ff91d3ad4fca48555f81d093dc8febc26367e8e2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TakeStream.map_batch: MethodTooLong \u2014 map_batch runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/take.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc253fa6d34ede644e462bc1ef01fb084d228e88661f6a27ef1b8bcd30a8ef73"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrimitiveStructuralEncoder: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9bed03428160b4bdeb31cf5376db7f4d84a2ff9f7d8795cdbcc032c93b1a72"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/object_writer.rs: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a2b7b480459871c411d510903aa2007965855b4794143f7c01ad98248e2862"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MergeInsertBuilder: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 33 methods, 3 blocks, lines 30-678. The bar is 400 significant lines; this is 104 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb4a20531124dadc7a8cd1009fb69b1535a26f470c232d8fff3bca716d07573"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: format/fragment.rs: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 130 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":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b6838337a2d9f9786f560ba5fef79787b340e623d91a172d74fdea7312a0fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_datafusion::substrait::normalize_expr: FunctionTooLong \u2014 lance_datafusion::substrait::normalize_expr 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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44cf169f70339912ba8f46a12c755043f9a1ef7b9aaaaf8a6ac9d96d0bac674"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PQDistCalculator.accumulate_topk_with_scratch: MethodTooLong \u2014 accumulate_topk_with_scratch 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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d7ee6aa5bf3f6289bde76a9f6748c4231c6820699b3424c798f50a96f5369a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RawJsonb.serialize: MethodTooLong \u2014 serialize 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":"rust/lance-jsonb/src/core/ser.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7351e51a56207a5fe260dd3bbec9dcdd3f5273d5f749f4ae880e70f905d8119d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RowIdSequence.mask_to_offset_ranges: MethodTooLong \u2014 mask_to_offset_ranges 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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"54587e671e62cd34247cf70084c46ce69085983fbc198d1b9a0cd4084e7777a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LsmVectorSearchPlanner.plan_search_with_probe_bounds: MethodTooLong \u2014 plan_search_with_probe_bounds 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":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abbdd411103bf1fbbee8f00a54f98438321297a1eae7e3315d9199accb5b223"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::io::exec::knn::batch_probe::late_search: FunctionTooLong \u2014 lance::io::exec::knn::batch_probe::late_search 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":"rust/lance/src/io/exec/knn/batch_probe.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca003492ac18dd61b06463a20a9090f885fc0e9c983073cd7b3c5eaa14a39b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/posting_reader.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: PostingListReader (4 blocks, 83-919). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_reader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc5be519ab0e4d0fcbe76a67434104ab4268d54bf42aff9bbafbb84dfe53884"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Schema: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 49 methods, 7 blocks, lines 30-1339. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67689a304cd2ee38d02a3b60c7821e7036f282b4c40851fc53c4ebb177ce839"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/row_addr_remap.rs: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26cbfeb12c5e8a552e10faebdd111659dd7977582f55677b52ea10c8811381b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiniBlockDecoder.decoded_bytes: MethodTooLong \u2014 decoded_bytes 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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf67786643bfeddd64543de10ee592d3683a56ca32512f28106be87afef4949"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanupTask.inspect_managed_blobs: MethodTooLong \u2014 inspect_managed_blobs 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f90c1a2ca9af681127b037fb5b1760a9458d61601381e49dc5267d013bd2cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::remap::remap_index: FunctionTooLong \u2014 lance::index::remap::remap_index 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":"rust/lance/src/index/remap.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b156d144c14b1113531f0f68f7e08ef92d044b3bcb6a4603a97f87ae2a57e60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/indices.rs: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 122 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/indices.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f40fc6f9e8a0544e33fb9c9873f3ff9c17575c78a95d5466d47df3d8409fd83"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShardWriter.open_inner: MethodTooLong \u2014 open_inner runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6acc1a752edebecde3d9412c99bce876f93d28ad7ec3d27281b71a82ea7181"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Branches.cleanup_branch_directories: MethodTooLong \u2014 cleanup_branch_directories runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0f5142801fed189de23e69a33d6cce09e4dd20e4936da57d4c358098a20bb5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.knn_combined: MethodTooLong \u2014 knn_combined runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcf284d894a31151ebcf696c25602118ccdefe652ffc8049480094d642d77ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MatchQueryExec.execute: MethodTooLong \u2014 execute runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"39569e10ea1706b515482f7ac3f594d76200f4e88b1d9be26297bbe8d190a2c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BlockingDataset: TooManyMethods \u2014 37 methods, declared across 7 files: blocking_dataset/refs.rs (14), blocking_dataset/read.rs (8), blocking_dataset/construction.rs (7), blocking_dataset/maintenance.rs (3), \u002B3 more file(s). The bar is 30 methods; this is 7 over it, 1.23\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":"java/lance-jni/src/blocking_dataset/mod.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"616ffb5e76b59116570173c478c6f5ba155ec56e372f7056a18c7f411c65f4d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LanceCache: TooManyMethods \u2014 37 methods. The bar is 30 methods; 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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedaec086818df0131a62079d9a1d7142895ca2d7e54bccb3e237082ca91345f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IndexStore: TooManyMethods \u2014 37 methods, declared across 2 files: mem_wal/index.rs (25), index/pk.rs (12). The bar is 30 methods; this is 7 over it, 1.23\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":"rust/lance/src/dataset/mem_wal/index.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6de267827a643aa342c6c29d2c01d79b67401e84110324627caf2324bead521"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distance/l2.rs: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/l2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b5d498c23218bbcbe1e0ced96626532934dcb3c7b15a12e3cad7946dc94c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/overlay.rs: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 115 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/overlay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"703cb6ff90fc2fcb32493b6255bed153673bc4bcafffb5924e1d0638f37ab08c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecodeMiniBlockTask.map_range: MethodTooLong \u2014 map_range 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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce0683052df886bea2f6673b8348eb92ac72d39ed6c1a943580b9de6bf3e2ef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RQPairScorer.stage: MethodTooLong \u2014 stage 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":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c74d12d96b9998a879b4095815295871c1633531aeeff1f22bc6068969a7842"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::schema_evolution::add_columns_to_fragments: FunctionTooLong \u2014 lance::dataset::schema_evolution::add_columns_to_fragments 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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9581999cea922ebf7c640430666f567c5952948472b635eb8b57353a97eff966"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blob/rewrite.rs: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 114 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7eb2727e1038f2ce861009d0b843adba8cac04590e7f9760a6e55d638a88e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ivf/shuffler.rs: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 113 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"691caca7168e30a2d00d0c9b218a094547b216b7ccbec2e1d78991a68cabd96e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/builder.rs: FileTooLong \u2014 613 significant 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 93% of them inside a single declaration: Scanner (56-1565). The bar is 500 significant lines; this is 113 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":"rust/lance/src/dataset/scanner/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f99442f704428ea419346330f8507444324bdc2b8dc9cc40eb83d588da48a25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: writer/statistics.rs: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0b061dfdbd239ccec6bad76cec18b19fed510329ad921e150dde84718a5a28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wand/bulk_conjunction.rs: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: Wand (26-936). The bar is 500 significant lines; this is 110 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33143ec13d0a6a92fe173ae1046061a261e5e6b292ac2bb5c3a7bd1a8e5ffc27"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::inverted::cross_column::score_cross_column_sources: FunctionTooLong \u2014 lance_index::scalar::inverted::cross_column::score_cross_column_sources 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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59455c5b105520317f3da14327a62c1b2511078f871561c5559c974a0830e15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_tools::manifest::write_index: FunctionTooLong \u2014 lance_tools::manifest::write_index 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":"rust/lance-tools/src/manifest.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf58b71fd57a2c9da76cd4a5efb2f0aa7ce1f19f0dd0912edc5d8c6679c2e26"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilteredReadStream.plan_scan: MethodTooLong \u2014 plan_scan runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"91755f530af365d0010dc26057223b244e7c4126ad50be4d1b7f2ac38d37dd24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/de.rs: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: Deserializer (3 blocks, 27-680). The bar is 500 significant lines; this is 107 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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca590e582d400f516784dd309c9313fd2aacd96a7ecd9b57eefb797100075bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemTableFlusher: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 2 blocks, lines 70-891. The bar is 400 significant lines; this is 84 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d777706af405169edf062d3088750d2ee9ce86f2447263089f49be6b0d05435"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataBlock.from_arrays_impl: MethodTooLong \u2014 from_arrays_impl runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"957248944289f64e32efa12102013f7e95ab1e51682eba87e05f90074b8709a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.load_manifest: MethodTooLong \u2014 load_manifest 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":"rust/lance/src/dataset.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbca795d5f010f15c2257dbd696348aece9f3e6776e082d797320cd353f3600"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.count_indexed_rows: MethodTooLong \u2014 count_indexed_rows 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":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8f0f892b68d999ec39027bcef79cb369ac1141fc252b76bea6d95d46f0e665"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Branches: ClassTooLong \u2014 483 significant 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, 3 blocks, lines 139-1083. The bar is 400 significant lines; this is 83 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dd851fe11e15d0bac7cb049705636ca272d04a8f95a01b03c07c7c56ac1d06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Selector: ClassTooLong \u2014 481 significant 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, 2 blocks, lines 81-893. The bar is 400 significant lines; this is 81 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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"108da86d5cfbb350023a94d16f65cdb362449469051b366dc7c616b3167db378"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: lance_jni::blocking_dataset::refs: 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":"java/lance-jni/src/blocking_dataset/refs.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd2998fc0f33270357cefa06b7e02f39e182b814b6bb2bbf2de4aaae0828784"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DocSet: 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":"rust/lance-index/src/scalar/inverted/index/doc_set.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f808dfe02c0fe03dd08c9e063e569aa4d1ac543eb363a6b19a82e4ec27261d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatasetBuilder: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 32 methods, 4 blocks, lines 37-956. The bar is 400 significant lines; this is 80 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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe1bee71b2979d5cc942b08759706494df3eefe06b6ef6b1e7562b6f59dd4ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: array_encoding/strategy.rs: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 64% of them inside a single declaration: ArrayFieldEncodingStrategy (4 blocks, 52-632). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc7aef945f7d6573b1d6f84ac76c1dbb63ba896438a96522a3f546ce15ccde"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/stream.rs: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cb7311a89f50ded33c3faca223e4f18006f31b5150351849226a51910fa9af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_arrow::merge_with_schema: FunctionTooLong \u2014 lance_arrow::merge_with_schema runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe2a09c95deda4b241061081ca6845880703e09046705569d84b8a11a40920d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::optimize::consolidate::validate_commit: FunctionTooLong \u2014 lance::index::optimize::consolidate::validate_commit runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c521f21008dae8482ce4095e011401b14b782a75b3c1a82aa28b324879095b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::optimize_ivf_hnsw_indices: FunctionTooLong \u2014 lance::index::vector::ivf::optimize_ivf_hnsw_indices runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"550b91b7638bebcfc760858f992a54d7fb369f12ac63f8d4be68f7d8d153591f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilteredReadExec.try_new_row_stream: MethodTooLong \u2014 try_new_row_stream runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2581}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc075f9c15f0851ad968b7178d8b5cb8ef3bde5a527c7de093a7117471f1809"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlatCombinedFieldsExec.execute: MethodTooLong \u2014 execute runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_combined_fields.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ae220dca8068168165a880e2ff59ae90069fe3f34ddc3476123d04d2db3e52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/telemetry.rs: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 99 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a2ee14a44c690034a38b8effd51a4dead09e67d92c16024770fccf4e69509b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v2_0/writer.rs: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 71% of them inside a single declaration: Writer (2 blocks, 153-852). The bar is 500 significant lines; this is 97 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0217bd6043efa3ae1b718b45127927caa9cded5d7c8e875d29f3c5649fd8778e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config: FunctionTooLong \u2014 lance_index::scalar::fmindex::write_partitioned_fmindex_stream_with_config runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aa111ba6b737ddfce4862c9a771c45a61081f5dc39bd3c21de54ebc8edaab6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeInsertJob.create_plan: MethodTooLong \u2014 create_plan 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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"300ba30908f2f0c4d238ef94b4132ccb4d69ea7603418f87fd88813e49aabf59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/spill.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/spill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b646c09e4f2fc446c24ef2b5beb34f256c81c0daa5ebf7aa99646138eb5972da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: memtable/flush.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: MemTableFlusher (2 blocks, 70-891). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1104906a723fe535c58c7b2abfaaf34ae349b079e2c597e3f1c4eaf6e98c982a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range: FunctionTooLong \u2014 lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c3e46a9d99b737dcc0b58df17cbf3e82954bb8909cb5c7488141b677c70f53"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_table::transaction::row_version::resolve_update_version_metadata: FunctionTooLong \u2014 lance_table::transaction::row_version::resolve_update_version_metadata runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f6102ba23b0e8ebccac4b6ffa157e4c54e28b441dcc44780416bb47ea9c3f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LanceToolManifest.fmt: MethodTooLong \u2014 fmt runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-tools/src/manifest.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca2ea5ce8222c1c7b8faded7a22072dc390b3ca220175125ed6503747e4a13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::blob::rewrite::descriptor_to_logical_blob_array: FunctionTooLong \u2014 lance::dataset::blob::rewrite::descriptor_to_logical_blob_array runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1b85e2dddc4f2e0aa89feea9d998705258772487059989fd6baad12c635ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.scalar_index_info_with_plugins: MethodTooLong \u2014 scalar_index_info_with_plugins runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"28823e9158133e25963621e54edf2f14464acade7c602df88b86274e83da2fab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.finish_rewrite: MethodTooLong \u2014 finish_rewrite runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"68440a5aba328acb3e1ffbfe34db90492796f645ce3a234ba33e6994003b0561"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/spill.rs: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/spill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e419e24e3333e5c317f3230512687cbe8774ca1fe64da0440e13b5e9f887fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StructuralPrimitiveFieldScheduler.page_layout_to_scheduler: MethodTooLong \u2014 page_layout_to_scheduler 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":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d175a37ec6d11d4e9aa7578525b0362014d9d32551a1635d839d7cf2a990ffd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::inverted::index::flat_search::flat_bm25_search_stream_with_options_and_scorer: FunctionTooLong \u2014 lance_index::scalar::inverted::index::flat_search::flat_bm25_search_stream_with_options_and_scorer 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":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7368f786aecb9c3d4e93ae8e4d1c689b80a4b10ec62aff9704c63eda2a5abaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DirectoryNamespace.build_index_params: MethodTooLong \u2014 build_index_params runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/index_params.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"267a56642843ef47503dbf94f9d26c2ffc0eb1bfb8dc0531b55de8e5a160bf29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanupTask.run: MethodTooLong \u2014 run 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7729f706927a272af70c957474768e5b0c8cc160376950541233d634d2333a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::schema_evolution::add_columns_impl: FunctionTooLong \u2014 lance::dataset::schema_evolution::add_columns_impl 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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb24a4704f1683f68e0f5ec9123d12938538b1516981f5ea057d3ce3a4e4742c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IndexDescriptionImpl.try_new: MethodTooLong \u2014 try_new 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":"rust/lance/src/index/statistics.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"978dbbd60b33e52cbca4457bcea913b701b846cb213e54587bc7c50f5305129c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/diagnostics.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":"rust/lance-core/src/cache/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26275e10244a03c2aecfb77eb6feee2f8c40c444611c214a8ea49102ef0495e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/posting_builder.rs: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: PostingListBuilder (2 blocks, 25-777). The bar is 500 significant lines; this is 84 over it, 1.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/posting_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18c4a7d32f7a86563f46bf9661ab086bd65f1839eb00fe80e4f1bcd36688694"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PyBitmap: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/bitmap.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a23397baef4325d58f3b430f5a91ec4974c0feb0f588a3ad7c05e86e9ef7ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Number: ClassTooLong \u2014 465 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 13 blocks, lines 201-1163. The bar is 400 significant lines; this is 65 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a79176dd31d9badacbdaeb0e86349eaaa0b7a6eb9954e3fa59005d23371e202"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pylance::lance: FunctionTooLong \u2014 pylance::lance runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/lib.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"972d7c5997369baa41832ee3306f0e72eafe4c0fafa518ea23bed405539145bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanarSparseScheduler.init_from_buffers: MethodTooLong \u2014 init_from_buffers runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c16bd8364290b46007e555c0806d88cc1f1724eda055737d413d42b2a096e8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::physical::alp::encode_chunk_f64_rd: FunctionTooLong \u2014 lance_encoding::encodings::physical::alp::encode_chunk_f64_rd runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a39af10de89167a062428b9510e564bf1d52f456fce3c37395b4bfefd582e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InvertedIndexBuilder.consolidate_updated_partitions: MethodTooLong \u2014 consolidate_updated_partitions runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b56579e98b818a1a3a4c41c173f2695ddd18a6852dcd8cd0688c2bb64e55d8a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: U64Segment.with_new_high: MethodTooLong \u2014 with_new_high runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"b881088f7d0c199b46fd2974d557878fff38fcbd0ce2e769f8ac2402a8799e1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::v2::partition_search::search_partitions_batch: FunctionTooLong \u2014 lance::index::vector::ivf::v2::partition_search::search_partitions_batch runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeffaef6e9a7c056216f565c36b401df39cd7286d566add74e5ba9189ad3b8a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FtsIndexExec: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 5 blocks, lines 65-755. The bar is 400 significant lines; this is 63 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb1ca8f45217a7508ca0c5c767cb5c3b1e3b28dba2797ec86b065dceb2fd7d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blob/materialize.rs: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/materialize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfca8b7cc853b562cd672d6c744b233380e6ab9e9814cfa1232d543ede89778"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/utils.rs: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"139aa008efb8523d93d6168309bfa6285f5bc02de41a3a4348e7e0e6fa196e8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CompoundScorerPlan.analyze_node: MethodTooLong \u2014 analyze_node runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64ff27d7323d76225debfd8f0bef138bef8c4276ae7ec41b7f386912b9a2f91"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::zonemap::parse_seed_for_binary_copy: FunctionTooLong \u2014 lance_index::scalar::zonemap::parse_seed_for_binary_copy runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98e3a7901635245e5008defcd3c8172932f7ff2f6956e46754460cff774b000"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TwoFileShuffleReader.try_new_with_preload_limit: MethodTooLong \u2014 try_new_with_preload_limit runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/v3/shuffler.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a600da92168f9d438594571ed74e7a2f0243ab94ebb686290f6247a8cdb8fade"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FtsMemIndex.to_index_builder: MethodTooLong \u2014 to_index_builder runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9016277c2eef531580b3a89ba891e2b843f0a5c47a8cd9bff871c8f4f7d7362"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.scalar_indexed_scan: MethodTooLong \u2014 scalar_indexed_scan runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"4839ce44eb4b835068715a7e1bd86dd46a3b5f3d718429cdddf79f147c2bbaed"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CompoundQueryExec: ClassTooLong \u2014 458 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 4 blocks, lines 111-1437. The bar is 400 significant lines; this is 58 over it, 1.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9a9da2cf857dcd8134e216e092bd07872532e4bb996eee6868862f16eda973"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::fullzip_decode::structure::read_row 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":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode/structure.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7022e0ed5eb64e95afd958bf4a69209a9d2b7b3a026c9da07dfca8ac498b2f12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::sparse::slice_sparse_plan: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::sparse::slice_sparse_plan 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"102223907a5cf4e4f72ab6eb9683b7804e310366845eedb367773aaa511a7129"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/hnsw.rs: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/hnsw.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fcab8c32129ef134914dc66873d683fc97dcce9d0b12b33dc893553a23ddc4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScanOptions: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/ipc/ScanOptions.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d75b51207e3271743b9a1ff22df332c4c1513ae6dce6a18d8150a4527040f71"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScannerBuilder: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"c785d43cc4b848d22f6d5d417ce48c4facced379cfe1c5446c0cc44c2a6bf26f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PartitionDocuments: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/documents.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d08735b07ce5bf95e5d26e5d36907367a97cfba66441acc33716a6c19548814"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TransactionRebase: TooManyMethods \u2014 34 methods, declared across 6 files: conflict_resolver/check.rs (15), conflict_resolver/finish.rs (7), conflict_resolver/init.rs (6), commit/conflict_resolver.rs (4), \u002B2 more file(s). The bar is 30 methods; this is 4 over it, 1.13\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":"rust/lance/src/io/commit/conflict_resolver.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2460ec5f4ed3a42a4010c4d78694d04b9f2d1809d769c44a827d1b5463dcf889"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RleDecompressor: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 13 methods, 6 blocks, lines 1451-2441. The bar is 400 significant lines; this is 52 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b805e125c37badb11d99ffd1e59e51dacf3518412fe22bb57f9d6c780e408fec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lance/vector.py: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 65 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":"python/python/lance/vector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d30c4cb006988a9e5a858c0c2d3f5014855e0554fecedeeefcec1f2e5f8cc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::scalar::inverted::builder::finalize_staged_partitions: FunctionTooLong \u2014 lance_index::scalar::inverted::builder::finalize_staged_partitions 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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":3030}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c5f98e65116718e32d5aa02626ce1474c88c8066618db2cfda8a6fd4c2abfb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RabitQuantizationStorage.try_from_batch_with_remapper: MethodTooLong \u2014 try_from_batch_with_remapper 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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2880}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c93d9fa21da117ea1aa9ff56ad0bb210f732a534627475a96dd97d682d9c28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.flat_knn: MethodTooLong \u2014 flat_knn 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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd89f77987ca06517eb9c3223d6a358c5bb8e5ae6677fb581c2a3cc605956b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KNNVectorDistanceExec.execute_batch: MethodTooLong \u2014 execute_batch 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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"313b5ec3ec9cec0354e5280adae308350adf9bef6fa4f9531dadf3639f31d058"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/take.rs: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 63 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/take.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67e63dfbce822a5f40a3d5cada00dedb8ad5e75a4faa847f0ec2eedb543c0cc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: U64Segment: ClassTooLong \u2014 449 significant 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, 5 blocks, lines 41-848. The bar is 400 significant lines; this is 49 over it, 1.12\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":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d68a2feb5328fc3d67ab33dc81312a55fa2dee7e9452232ce71eef86a594dee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dir/resolve.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), about 97% of them inside a single declaration: DirectoryNamespace (24-944). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/resolve.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92403d79567b11e2434c063b095432e3649103a6df7050af2957dbc7174ff215"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrimitiveStructuralEncoder.serialize_miniblocks: MethodTooLong \u2014 serialize_miniblocks 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d0b6addad99b183f2a2f2c1fd4282eb2ff405fe9f25110ec59fbc4ee84c4f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PartitionAdjuster.join_partitions_impl: MethodTooLong \u2014 join_partitions_impl 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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":2893}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc83911f25de2f0065713df5aab70ce458689bb4114a29b188c7ff7648759ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocking_dataset/construction.rs: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 59 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/construction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68aeba01d8952b4a901c0ca616a58aaa54c4a93d539406327b699020eedfcf6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DirectoryNamespace: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 400 significant lines; this is 47 over it, 1.12\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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"882fc980b25b5343cfd2a4aab28e177e6e5dfed6626863438b776251274cb523"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: simd/f64.rs: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 58 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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"460654cdeb4109aeb7c9213cd92a589f4742bf40a68baeb66514979a83a4ae15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LanceCache: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 37 methods, 4 blocks, lines 503-1219. The bar is 400 significant lines; this is 46 over it, 1.12\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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b2a3a19c002c223f6e4f40acd66a81d2d8882572fa7c2c36101c798291a89e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocking_dataset/maintenance.rs: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/maintenance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1640516cca7161b409050ac222fc487ad1b90d863ea375ad582348241a2efe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bq/resident.rs: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/resident.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf52f0c5f032cd0d8b3d01b0b861384c1b437d87eee78f2ee34e583d44e1bac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::repdef::build_control_word_iterator: FunctionTooLong \u2014 lance_encoding::repdef::build_control_word_iterator runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2775}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f87cf769b214977e49a4639614110372d20b21ca837331c4d143b9c7fcf609"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.finish_delete_update: MethodTooLong \u2014 finish_delete_update runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"771a953d3a5a69bb81cea3675c78ea09b171ae93120394563a1ac32a56797043"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileFragment: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 28 methods, 3 blocks, lines 80-700. The bar is 400 significant lines; this is 43 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fragment.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e1e7f61b401baffc98883aaad605dce3e2f70a0a6bd2b972feeca1a7b15167"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: merge_insert/update_fragments.rs: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 84% of them inside a single declaration: MergeInsertJob (134-799). The bar is 500 significant lines; this is 53 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c7d08abb31863b1a9ba9b3efaba09b3954ab782240bfdef2023f7c03d8c30d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LsmScanner: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 39 methods, 3 blocks, lines 195-1001. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c471ad9d84e0e3e0e297d8375de1081f554ec4a66339f6504f6f416c3f8585"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Deserializer: ClassTooLong \u2014 442 significant 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, 3 blocks, lines 27-680. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f8f1386b3783ddfaadce92f14aac53aabe2a4fc0be484941acaca8c3656602"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExternalManifestCommitHandler: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 3 methods, 4 blocks, lines 566-1176. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"218cb30d131b07d4d3454cf3261195fbdf9dab5dfc8b8afa9c3ddc0158c5b603"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MatchQueryExec: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 4 blocks, lines 93-734. The bar is 400 significant lines; this is 41 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"016910ede4b365552e754e789622bff5bfec5008446e34ea3aac5700b00610f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MergeInsertBuilder: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"003bde3d8c2ad4c8f99f8d3a905b4ec1f78553eb677e0a03a0a2b2de393bea89"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: lance_index::vector::bq::ex_dot::neon: TooManyFunctions \u2014 33 free functions. The bar is 30 free functions; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4947ede60af982da2711f5fa2b49f14bc6d1227ca643ab85bd67d00720fc7795"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanarSparseTask.decode_checked: MethodTooLong \u2014 decode_checked 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"f602c2650fb116ae6f70787f6ad6684ee4db024c906effd30b7a1a09222f5f17"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InvertedIndex.bm25_search_legacy: MethodTooLong \u2014 bm25_search_legacy 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":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841043d22a7c7bbb48954e0501e1b02ef3cd8b32a2d084a66c9e57d78aefcda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JsonIndexPlugin.convert_batch_by_type: MethodTooLong \u2014 convert_batch_by_type 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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"219c6c675077ff46d595bed717af48183b91d795c868f8b8fa7ff66305c7f132"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ManifestNamespace.ensure_manifest_table_up_to_date: MethodTooLong \u2014 ensure_manifest_table_up_to_date 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fbe0a35f740aaf55613fd32b0feb1de2d5ab747a32c1d2544b39a3475190e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CompactionOptions.apply_dataset_config: MethodTooLong \u2014 apply_dataset_config 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":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9397ddc15c8754327aa622e474b573edb87e362f5677ba0b4b0067c5157b16c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::optimize::remapping::remap_index: FunctionTooLong \u2014 lance::dataset::optimize::remapping::remap_index 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":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde9758d3a8c9090fb5f7954259da388b783d4cc55a6dceb41185956af433db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/delta.rs: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 49 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":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa58803c1a55707f602b290f5aac2297004688e0cbeff55db87455d4cba2af67"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RestNamespace: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 111 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/namespace/RestNamespace.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a8489999a1251bca19155ce63c645709dbca18d7e8a500d96240c485ad1a98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/optimize.rs: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 47 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":"java/lance-jni/src/optimize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbff50de783c6578ef84cfd0b86564dc3b57a149c0cffb3fdd10dbfc970a54a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: namespace/DirectoryNamespace.java: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: DirectoryNamespace (238-932). The bar is 500 significant lines; this is 46 over it, 1.09\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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da68d76c28995656bc3d9c189b7a076f4471ca7a5c88b8b32a7cf80487d7b61e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scanner/builder.rs: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: LsmScanner (3 blocks, 195-1001). The bar is 500 significant lines; this is 46 over it, 1.09\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":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e85240838453bb0ed56746340fedd52402e7a4ac29f5755dca018e4aef61b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RleEncoder.encode_chunk_rolling_slice: MethodTooLong \u2014 encode_chunk_rolling_slice 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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"1636affb69ae21aa173bc852d706e71358bf4d55a93a5700569886f992e2b5c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilteredReadStream.get_stream: MethodTooLong \u2014 get_stream 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a164a7f22150da8ce4f34634f802cc9f1b592f50c4280962e3fb0807e706c84"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StructuralPrimitiveFieldScheduler: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 4 blocks, lines 151-917. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac4ae99dfd88d5d6fdcdf55977e52bfe43d733b0d3067ef2278ec2673dc054f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreFieldDecoderStrategy.create_structural_field_scheduler_with_mode: MethodTooLong \u2014 create_structural_field_scheduler_with_mode 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b6eb33326b755d5e839588cbe5c013123d47d392c8c4f3b87636e0ff1cee9d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InvertedIndexBuilder.update_index: MethodTooLong \u2014 update_index 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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28a8ae87349ae956a2ac59ec900f396aae54669efa426e3b463376c5f251a09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.new_filtered_read: MethodTooLong \u2014 new_filtered_read 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":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3170f5a65fc21473f780e8d12f446f042b35edb106e2a25f65d0d0b3211c0d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrossColumnCompoundQueryExec.execute: MethodTooLong \u2014 execute 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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7dfc99b6429d358f4ea0bc9010fbcf3fe3b68790a23502ae9fff7f45163cf2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhraseQueryExec.execute: MethodTooLong \u2014 execute 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":"rust/lance/src/io/exec/fts/phrase.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3118d4d0b6b448994bd2f29b095c896656fe15130d30abb364df89e7135a11f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ipc/ScanOptions.java: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ScanOptions (27-1130). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/ipc/ScanOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2989b492c100c202ef65b5550e0cf386f7ac784e439a4a4669692e1df507049b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v1/reader.rs: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/reader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"000d629b33f2cb9c0ed66f6eb8bf7934e4869133128a93003b489f11f2d62c5d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProductQuantizer: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 15 methods, 5 blocks, lines 45-740. The bar is 400 significant lines; this is 29 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b48364b6bdd756dbe0864f12cbfe3908bb70eaabf5e658393972a29cff234a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: namespace/RestNamespace.java: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: RestNamespace (154-839). The bar is 500 significant lines; this is 36 over it, 1.07\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":"java/src/main/java/org/lance/namespace/RestNamespace.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"783e3db97595bebabb0c0197d82e274bd0ea717b55c9c1ef40ffd005ea43b604"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InvertedIndexParams: ClassTooLong \u2014 428 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 42 methods, 5 blocks, lines 105-1230. The bar is 400 significant lines; this is 28 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":"rust/lance-index/src/scalar/inverted/tokenizer.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13d1a2d2356390852527ddf67e92c25b3228ebb28dec37d16ea527450d00b45"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::transaction::inner_commit_to_dataset: FunctionTooLong \u2014 lance_jni::transaction::inner_commit_to_dataset runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6917e5638639d2920bda8e7a9a3690bb3c6a230944de9f0a27208baaeb2fb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_file::concat::validate_blob_field: FunctionTooLong \u2014 lance_file::concat::validate_blob_field runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c9efccc7e333f87d4c4c6e980ad1aa1972eba77aa5862690711d69969e974a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LsmFtsSearchPlanner.plan_bound_search: MethodTooLong \u2014 plan_bound_search runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86e445bcc47ac569def56afadcf24865625f547a6d6cf7d9af919d01018f07f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::initialize_vector_index: FunctionTooLong \u2014 lance::index::vector::initialize_vector_index runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"23851789fb5edf0f535315deeea271933be78254ee2ec203ff17d669e4985388"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CombinedFieldsQueryExec.execute: MethodTooLong \u2014 execute runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/combined_fields.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f905835d48f8c1ae97a843cb50d3c2d1e71194159c7ece7a24fedaf584668be3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Wand: TooManyFields \u2014 32 stored fields beside 55 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04ce22ea73ff86438374d575bc588459321a4a0551feda54a03ec7a10ac16cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: 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":"java/src/main/java/org/lance/ipc/ScanOptions.java"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"754c7b03c57eb3afd25d72371eb2af710c917ee19912ccfd46d628a3e7e30a24"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Planner: 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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c79296b0cfd00cc40609096b458e4e30870fb8a9204880fbf45e787507de48b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatasetBuilder: 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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4860eaeacc747cc356a4d675f04c2b85c1bb1cf5ff1351b48bfa9fcaea8150"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jsonpath/selector.rs: FileTooLong \u2014 533 significant 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: Selector (2 blocks, 81-893). The bar is 500 significant lines; this is 33 over it, 1.07\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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaaeb75c754b1059650008bb88ec203c3ca12997b55303f1d7017184e0f1020"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Writer: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 2 blocks, lines 153-852. The bar is 400 significant lines; this is 25 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98dca96a2837311eb57b477a3c61b770cbb28cff143edcdb6a72917b49cc612"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: udf/json.rs: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 39 free functions. The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad4ee91eb614a42990efae9db1f8b6ac6cd672b9e8cd7d77b3e992a67758812"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/format.rs: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: EncodingUtils (320-804). The bar is 500 significant lines; this is 30 over it, 1.06\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":"rust/lance-encoding/src/format.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5868570124a6b3df3c2567ce85e91cd6c2ae49ea1aaab6873440328b3ae83ee1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.commit_transaction: MethodTooLong \u2014 commit_transaction runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada407cd800a96608678d7c4894300f1ff791f64bc1d62f15ae0357c3ac2db90"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrimitiveStructuralEncoder.encode_miniblock: MethodTooLong \u2014 encode_miniblock runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e252f9ac10ac1570d0d82ac8c792c9a7a73c2963624d10389502d5a0f1293a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::mem_wal::api::build_index_specs: FunctionTooLong \u2014 lance::dataset::mem_wal::api::build_index_specs runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/api.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcf1f3cb1a0c9117f9a5e8d54190bd9bccf84098a0a95c6e60d6d26768baad2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/scanner.rs: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90980e1e3f199741e29d2a354cdc4b6f3340d9b297ff03ce34cd3c4eaf30555e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/doc_set.rs: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: DocSet (3 blocks, 223-902). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/doc_set.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"196a3b06f85f7ffdb8abf795aa289f43879d0b923a2188b9de4528f9d73fe243"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CleanupTask.process_manifest_file: MethodTooLong \u2014 process_manifest_file 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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927c6549c9528403ebc8fe026e606386969db30759b1e4941d9ab56599b1477"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MergeConditionExec.try_new: MethodTooLong \u2014 try_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":"rust/lance/src/dataset/write/merge_insert/exec/condition.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1662fe39233734d235558c5a59ddbb1c78c6c2792cd9075a3cb8590a347b3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlatMatchFilterExec.build_filter_stream: MethodTooLong \u2014 build_filter_stream 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":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea0dba98baddc1a7725d86804b103a1f5111f47eeb1e6fcbd544f40c5a40a0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/merge_insert.rs: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 96% of them inside a single declaration: MergeInsertBuilder (3 blocks, 30-678). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70911223dc28609357e254afb90910b905fa8b152f28b28c7b809922373b325b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FragmentReader: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 4 blocks, lines 3626-4378. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adfe7c20d8fa870438ee2765c55d6cdf1d5bef0eb07f3500a75931a29d1fb4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/inverted.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe0cc102ec00254f2bf8c50104a7a4337621741c589f13adbf77f9db764895e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileFragment.scanner: MethodTooLong \u2014 scanner runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/fragment.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"237333de8cf11b3ff47bbdb84d9483fd9ebd5a763721b3096b8034bd56cdcd25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_arrow::json::convert_json_array: FunctionTooLong \u2014 lance_arrow::json::convert_json_array runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42bfad3b6f08cfb0d24c8f2a534f1a7f968c69020963460275dbb3c70da6fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b50b783377a014d692e3a61a6a3698b0a2c73dea3b9d38dac7febdae9f94dab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_index::vector::bq::transform::compute_raw_query_factors: FunctionTooLong \u2014 lance_index::vector::bq::transform::compute_raw_query_factors runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/transform.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12b746efec5757ac6d6d3a60c139569fda3388f4e305ec8ad880826b6232658"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::dataset::blob::prepared::prepared_blob_to_descriptor: FunctionTooLong \u2014 lance::dataset::blob::prepared::prepared_blob_to_descriptor runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/prepared.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acc72b8f9867ad7137e1d0c9a2467c2b8e3a2475c432c4235d3071069f063fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetBuilder.load_impl: MethodTooLong \u2014 load_impl runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81268a3312358d404081135af14d778f5b15e02fac9b5f86ddc613a53428ae2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scanner.minhash: MethodTooLong \u2014 minhash runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/minhash.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51dbc0fe768bff11d424de60de8c49259ff30bad2c10c561f84d1373739cfac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::ivf::remap_index_file_v3: FunctionTooLong \u2014 lance::index::vector::ivf::remap_index_file_v3 runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6b50a518e60149832793ccddacdb46e224457a9b44edf2b924f21d1c94795c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RawJsonb: TooManyMethods \u2014 31 methods, declared across 4 files: functions/scalar.rs (16), core/util.rs (7), functions/path.rs (4), src/raw.rs (4). The bar is 30 methods; this is 1 over it, 1.03\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":"rust/lance-jsonb/src/raw.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c922653650600f005a99efa4e20f90b63e26b1a619ee1ae225a1cda2a409d094"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IndexMetadata: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/index.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de203e09e4a9d1f5bce9de5e273fdb8b09b336800f40aea22be706f731c640a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IvfIndexBuilder: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"73151fbcb01110c5a318fcddf8582b2c7e43d4469896427383b4e48ed76a4868"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distance/dot.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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9293e86f2f30967be51c635adef16921ec6e8da8124fa50b3d2af8464362e343"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductQuantizationStorage.new_with_remapper: MethodTooLong \u2014 new_with_remapper 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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f55ec98d6ca1d16157e7deacb32ad0aeb7eee8e92f16bc4c9303d1d0d779dbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_table::transaction::validate::merge_schema_valid: FunctionTooLong \u2014 lance_table::transaction::validate::merge_schema_valid 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":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"98838228fededd96da0a7f8b355c8a7e7e46aab2b5bc3723b368833aa79ed4cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dataset.write_into_namespace_impl: MethodTooLong \u2014 write_into_namespace_impl 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":"rust/lance/src/dataset.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"289fc7b844e34d864c203a1dcfa08a716290bbbea5d4c07e00a14870ea7b9405"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minhash_lsh/mod.rs: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 11 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/minhash_lsh/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0c59fe1539ef5a4eff6bd84f24eb5b3f8d30470d869d894e92a7c16a1d1091"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Manifest: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 5 blocks, lines 40-1224. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/manifest.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c83d1c8920647a210fd7705a90cb2e936d22fbe23595fe008e81224ab84cab0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_jni::transaction::inner_commit_to_uri: FunctionTooLong \u2014 lance_jni::transaction::inner_commit_to_uri 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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc58e6d39c051aaa5209b14066c613f9794e15b3a32da69fec8e8ddbb47584e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreFieldDecoderStrategy.create_array_field_scheduler: MethodTooLong \u2014 create_array_field_scheduler 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b49ec1a399db99eef3bf638e1fdb20f743cb73e731d21d26b4d5e1276ac21c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullZipScheduler.try_new: MethodTooLong \u2014 try_new runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed402858759f16323de97cd412acb085af5a4c6c07ada126bc12cb321f46467"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Wand.next_and_candidate: MethodTooLong \u2014 next_and_candidate 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":"rust/lance-index/src/scalar/inverted/wand/conjunction.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"251c9d6c9c3299755ac64f8d4e32e1d9aec512aa43f08cb475ac5b88e981501d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_namespace::schema::convert_json_arrow_type: FunctionTooLong \u2014 lance_namespace::schema::convert_json_arrow_type 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":"rust/lance-namespace/src/schema.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a24246a1e7899cd9e6c025054093bfa075c5c9085417b11f46d16602670111"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MemTableFlushHandler.flush_memtable: MethodTooLong \u2014 flush_memtable 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":"rust/lance/src/dataset/mem_wal/write/handlers.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38602f690ca493da2b75307bb18b1a975a39706b1211f949a6a1266d8d8dd4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance::index::vector::details::convert_v3_metadata_to_details: FunctionTooLong \u2014 lance::index::vector::details::convert_v3_metadata_to_details 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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bab9d99fe8fbff3a75df1e4f4e7409f3663d6efe44e0a3997ddedfb94303d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FilteredReadExec.statistics_from_inputs: MethodTooLong \u2014 statistics_from_inputs 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3818}}}],"partialFingerprints":{"codehealthFindingId/v1":"220b43666ac3f4f7a50b29a3ff9b79c4f7314dc3c18f3905fd8b4ae672a60195"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: exec/fts.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), about 91% of them inside a single declaration: FtsIndexExec (5 blocks, 65-755). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca513a5188ef2f1438455cd8c16cdb24946944d05ec9e8397b671576f7473f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dataset/builder.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: DatasetBuilder (4 blocks, 37-956). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8fee7d98f2578e1650e640b889c8bff8df672e2f216bc7bb44fc869e633228"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: write/merge_insert.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a75ffa67416a435baf6034a6253905d12c08ffe5aabefccb71a6940d9a2df2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileWriter: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 2 blocks, lines 79-652. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"24afcd0cd28ff6de3091c10eae3798a97aca7dd2858f537370efac89f0fcd5a5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PhraseQueryExec: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 4 blocks, lines 81-635. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/phrase.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e47ecc7b8ce63eda8481e34bfaacece6a795181c544e7fc37de8846500c02de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hnsw/remap.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":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"263e01b45d932bfe45cede3599a1305829e05cf402b2149c3f3ed285530765ba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RowAddrTreeMap: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 18 methods, 23 blocks, lines 504-1281. The bar is 400 significant lines; this is 4 over it, 1.01\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":"rust/lance-select/src/mask.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"064f96262091be013cdadac884309e7cff063db08ffc777c39347a05fd34bada"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultDecompressionStrategy.create_miniblock_decompressor: MethodTooLong \u2014 create_miniblock_decompressor 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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5504dfcc086391faff13e87e1cde95ed0666fe4e8213c7317bae80b50160a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lance_encoding::encodings::logical::primitive::sparse::writer::plan: FunctionTooLong \u2014 lance_encoding::encodings::logical::primitive::sparse::writer::plan runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/writer.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"985c7de3ff680cb35ce1d41d62496fc2f364f45a43ec984fff607eae8907f54b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DirectoryNamespace.create_table_version: MethodTooLong \u2014 create_table_version 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":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"822f521259ffa9223a2fce3a0e336cb890af065ca67a7c591c7d69571c5d5be9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionRebase.check_data_replacement_txn: MethodTooLong \u2014 check_data_replacement_txn 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7c521d7ddfd281c607f6d26acb440c11adcb079ed3e758c4c8a597d014ac8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/pq.rs: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: ProductQuantizer (5 blocks, 45-740). The bar is 500 significant lines; this is 3 over it, 1.01\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":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fef7665a11754d887061a077bd90def3f59232183e67fd26c0a50902f77564"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/simd_x86.rs: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/simd_x86.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4209adb345cd0885509566ca8fc186cf3c2d9ee0971726369ceca4aeca52218e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DictionaryDataBlock: ClassTooLong \u2014 401 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 2 blocks, lines 1111-1721. The bar is 400 significant lines; this is 1 over it, 1.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c2e54aece19b6d554a497f59e3040f298050ec24a93f279d61bb16bee9ce45"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 31 shared lines): java/lance-jni/src/namespace.rs:353-424 | java/lance-jni/src/namespace.rs:494-566 | java/lance-jni/src/namespace.rs:577-656 | java/lance-jni/src/namespace.rs:670-748 | java/lance-jni/src/namespace.rs:759-829 | java/lance-jni/src/namespace.rs:844-938 \u2014 These 6 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0edecd1563144eb0aef9c6751b368c9099a1bf2edb289e095a7f48132a73fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): java/lance-jni/src/namespace.rs:353-424 | java/lance-jni/src/namespace.rs:435-483 | java/lance-jni/src/namespace.rs:494-566 | java/lance-jni/src/namespace.rs:577-656 | java/lance-jni/src/namespace.rs:759-829 \u2014 These 5 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfe572c593f6d5276ba017f892cacac95241dbb55b2e9457dc00c8bbdcfa25f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 37 shared lines): rust/lance/src/dataset/write/delete.rs:55-96 | rust/lance/src/dataset/write/merge_insert/exec.rs:85-126 | rust/lance/src/dataset/write/merge_insert/job.rs:1823-1864 | rust/lance/src/dataset/write/update.rs:828-869 \u2014 These 4 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"rust/lance/src/dataset/write/delete.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1770d987229be751c026a986ab81080e5cb88b9a294360d43c0a6d47e926f458"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): rust/lance/src/index/scalar/bloomfilter.rs:21-108 | rust/lance/src/index/scalar/minhash_lsh.rs:26-112 | rust/lance/src/index/scalar/rtree.rs:22-74 | rust/lance/src/index/scalar/zonemap.rs:37-112 \u2014 These 4 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4ba78b8f34fc170dffe70880b66638ae59d411a1e892f9ad50042d10db2744"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (111 shared lines): rust/lance/src/dataset/scanner/fts.rs:1660-1830 | rust/lance/src/dataset/scanner/fts.rs:2022-2188 \u2014 These two members are variants of one another: 111 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"190d197da98e2f174e6130fbc758314dd3c69861df5b49c8ba2f7ada9aecf286"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): rust/lance-encoding/src/encodings/physical/alp.rs:1338-1450 | rust/lance-encoding/src/encodings/physical/alp.rs:1463-1574 \u2014 These two members are variants of one another: 66 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63fc48d66d52f655555719a3b62aa3b6995fb2094c528c28798b8b45e69b3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): rust/lance/src/io/exec/fts/match_query.rs:579-721 | rust/lance/src/io/exec/fts/phrase.rs:503-622 \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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f43ba43c044a08466fdb1ae7850ab59bc3c02d6756626140f2e9b7e29c8e43e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:335-397 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:405-467 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4caf064290918516db1784e11be34f6a0ede5d42c746b79732c4482e0d35a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): rust/lance-io/src/object_store/providers/azure.rs:257-332 | rust/lance-io/src/object_store/providers/gcp.rs:303-370 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf51759813a45db26c9e7fdffbd06f7d2af95df0360aa978d7258b37a9658ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (52 shared lines): rust/lance-encoding/src/encodings/physical/alp.rs:803-958 | rust/lance-encoding/src/encodings/physical/alp.rs:1037-1198 \u2014 These two members are variants of one another: 52 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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7f0bc86d7ef588499287e6012fcce1a783b1e7f86b8f4a8e3977404d00d729"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): rust/lance/src/dataset/hash_joiner.rs:171-236 | rust/lance/src/dataset/hash_joiner.rs:260-318 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/hash_joiner.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f448f10965b05ace01ca01e460da0a1716eb9431dd77c99bd84161ab1e029c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): rust/lance-file/src/versions/v2_0/writer.rs:858-947 | rust/lance-file/src/writer/structural.rs:843-924 \u2014 These two members are variants of one another: 40 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6f3179a6023f7f5ad279877bdbe3e30b319d8b7aa63d2911af60de295f83f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): rust/lance-namespace-impls/src/dir/manifest.rs:2465-2539 | rust/lance-namespace-impls/src/dir/manifest.rs:2845-2915 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc070e29e83c8b2c0aba6a19c0a84c20b690d78ccaea70b603340be0769cada"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): rust/lance-namespace-impls/src/dir/manifest.rs:3159-3248 | rust/lance-namespace-impls/src/dir/manifest.rs:3754-3814 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4806ee62139f457fd91af31fd0907ac15bce2478e3543be74329f5b81e8d6e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): rust/lance-io/src/object_store/providers/oss.rs:111-161 | rust/lance-io/src/object_store/providers/tos.rs:117-167 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04e4f332b85f22b6e6d8b739f78b488717f1ca1e2a394ff29625250731f18d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): rust/lance-file/src/versions/v2_2/mod.rs:73-118 | rust/lance-file/src/versions/v2_3/mod.rs:80-130 \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":"rust/lance-file/src/versions/v2_2/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64554c025e9fb0d199ad61874a4a92c613f9e89796a0814cd8cf26a230a6ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-linalg/src/simd/f32.rs:434-454 | rust/lance-linalg/src/simd/f32.rs:943-967 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f2de65c8a68b2fcfe13d7f0f48549f220622da48aa21877606d476bc570e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-linalg/src/simd/f64.rs:284-304 | rust/lance-linalg/src/simd/f64.rs:736-760 \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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81b43b8f67e83b5fb3382ca29c81d0b5d80b07ecd0d66514fa4733b83ceebae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:129-162 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:93-134 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1744a843878e33fa4e458916e7d940c330905bdd51eec799c2c82f3abda00e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-namespace-impls/src/rest.rs:1080-1103 | rust/lance-namespace-impls/src/rest.rs:1482-1503 \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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c3993b002207f48b1875a6494fd7f18fd5df389ab51d5a3b2738b1234a7450"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): java/lance-jni/src/async_scanner.rs:277-325 | java/lance-jni/src/blocking_scanner.rs:760-801 \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":"java/lance-jni/src/async_scanner.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"086df67e9b55051209ffe2ea60b30b02f1c9f555d8b06b9ce0714f04a98f12fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): rust/lance-datafusion-exec/src/udf/json.rs:319-341 | rust/lance-datafusion-exec/src/udf/json.rs:485-506 | rust/lance-datafusion-exec/src/udf/json.rs:547-572 | rust/lance-datafusion-exec/src/udf/json.rs:600-628 | rust/lance-datafusion-exec/src/udf/json.rs:656-684 | rust/lance-datafusion-exec/src/udf/json.rs:712-740 | rust/lance-datafusion-exec/src/udf/json.rs:768-796 | rust/lance-datafusion-exec/src/udf/json.rs:926-949 \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":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad05a659fb6bff56c1d9203bab9bfd24ed39335c90e9b7053dd4ac7848001139"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): rust/lance/src/io/exec/fts/flat_combined_fields.rs:371-531 | rust/lance/src/io/exec/fts/flat_match.rs:411-535 | rust/lance/src/io/exec/fts/flat_match.rs:1005-1190 | rust/lance/src/io/exec/knn.rs:987-1061 | rust/lance/src/io/exec/rowids.rs:185-235 | rust/lance/src/io/exec/scalar_index.rs:708-787 \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":"rust/lance/src/io/exec/fts/flat_combined_fields.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce5d567ee8c1b19a7e5c8e0c050ce032c5c2bbd2188a88249552f1409f6e2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): rust/lance-index/src/vector/ivf.rs:156-177 | rust/lance-index/src/vector/ivf.rs:184-219 | rust/lance-index/src/vector/ivf.rs:228-270 | rust/lance-index/src/vector/ivf.rs:278-313 | rust/lance-index/src/vector/ivf.rs:322-366 \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":"rust/lance-index/src/vector/ivf.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd70f35afe29d0a13d14cc8b0e4253dcf284d4998cbc48024d1fce8764e37189"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): python/python/lance/_dataset/scanner.py:1077-1206 | python/python/lance/dataset.py:4113-4356 | python/python/lance/dataset.py:4393-4503 | python/python/lance/dataset.py:5524-5592 | python/python/lance/fragment.py:1612-1812 \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":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"3368f019b94455a66727f0808a73fbd8e09eae387bf470e95125670faed017ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): python/python/lance/dataset.py:1041-1180 | python/python/lance/dataset.py:1210-1249 | python/python/lance/dataset.py:1648-1683 | python/python/lance/fragment.py:746-764 | python/python/lance/fragment.py:786-802 \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":"python/python/lance/dataset.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b615a2f8b9657a90c5cd37d8d4f5434bf578fa705b89977c3194c7e4354a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): java/lance-jni/src/mem_wal.rs:777-806 | java/lance-jni/src/mem_wal.rs:899-946 | python/src/mem_wal.rs:754-778 | python/src/mem_wal.rs:828-873 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"034b1c7bfcdcf8c933bb78d04d0e25151f63acd94d394679c178b174a9aa0568"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-file/src/versions/v2_0/reader.rs:137-148 | rust/lance-file/src/versions/v2_1/reader.rs:183-194 | rust/lance-file/src/versions/v2_2/reader.rs:185-196 | rust/lance-file/src/versions/v2_3/reader.rs:348-359 \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":"rust/lance-file/src/versions/v2_0/reader.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"21298ff3e4fd6cf48424b666e4b7a01eec14101385cc5a393c11cbd6c393dac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-file/src/versions/v2_0/reader.rs:350-378 | rust/lance-file/src/versions/v2_1/reader.rs:218-244 | rust/lance-file/src/versions/v2_2/reader.rs:220-246 | rust/lance-file/src/versions/v2_3/reader.rs:383-409 \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":"rust/lance-file/src/versions/v2_0/reader.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0093871f04092209da42049e54268d760b25eb6392e135a909dc600473288fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-index/src/vector/bq/storage.rs:2357-2380 | rust/lance-index/src/vector/bq/storage.rs:2390-2419 | rust/lance-index/src/vector/storage.rs:219-247 | rust/lance-index/src/vector/storage.rs:259-286 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"05709d04c392ce06bb1e7a8b995d41e69a76940ff267cd1f93257369aea4bfa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-linalg/src/simd/f32.rs:262-279 | rust/lance-linalg/src/simd/f32.rs:281-298 | rust/lance-linalg/src/simd/f64.rs:155-172 | rust/lance-linalg/src/simd/f64.rs:174-191 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b959f45d2a6fe94105543405965888dba67ec4c5ef3ec2e98f38258ab2c4895b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-linalg/src/simd/f32.rs:750-769 | rust/lance-linalg/src/simd/f32.rs:772-791 | rust/lance-linalg/src/simd/f64.rs:595-615 | rust/lance-linalg/src/simd/f64.rs:618-638 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea3a298a145346a5d22efce6cad329c66647999b964414effad6d754f0ed201"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-namespace-impls/src/credentials/azure.rs:392-433 | rust/lance-namespace-impls/src/credentials/azure.rs:435-491 | rust/lance-namespace-impls/src/credentials/azure.rs:497-550 | rust/lance-namespace-impls/src/credentials/gcp.rs:1097-1133 \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":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"682971dc75565511eada074880576d102cbf9030aed3f1a3b108412a28a465e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance-namespace-impls/src/dir/manifest.rs:3250-3370 | rust/lance-namespace-impls/src/dir/manifest.rs:4294-4350 | rust/lance-namespace-impls/src/dir/manifest.rs:4359-4403 | rust/lance-namespace-impls/src/dir/manifest.rs:4411-4453 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e38a2498637a09d574f3e4890e9b68d4229c44a66c62b4520d5b31d4e53afb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1243-1459 | rust/lance/src/dataset/mem_wal/scanner/planner.rs:379-546 | rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:818-986 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:614-858 \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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a3a533cbb89184dded44d2237f07f1c34e3f1aaf1e4a9938269fe407a1c2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/lance/src/dataset/refs.rs:226-240 | rust/lance/src/dataset/refs.rs:261-274 | rust/lance/src/dataset/refs.rs:276-303 | rust/lance/src/dataset/refs.rs:309-330 \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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb574da11b64a8a0a4e03b5b8777014fdc784b89fa5b7eeff0ff1508452af63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): java/src/main/java/org/lance/Dataset.java:1583-1592 | java/src/main/java/org/lance/Dataset.java:1624-1635 | java/src/main/java/org/lance/Dataset.java:2278-2287 | java/src/main/java/org/lance/Dataset.java:2400-2409 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d8461e4faf89f5fbeb6f3c66600384949ad04536a3a84f7ca50ce336f39739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:103-145 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:148-190 \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":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"19231f08b6a7d189d81c342679e52f78cf2e2a81c618c599266015241e2ecc0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:580-684 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:692-809 \u2014 These two members are one piece of code written twice and then edited apart: 105 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a09247c03e6ce152ee80c32275b89628450ff7d41ab8cd8f5e0051673861fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): rust/lance-file/src/versions/v2_1/reader.rs:26-106 | rust/lance-file/src/versions/v2_2/reader.rs:26-112 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22a962be1d537a9c7749162232ce7b621491f1b359e9d06d45baa4916a19b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): rust/lance/src/dataset/fragment.rs:3976-4089 | rust/lance/src/dataset/fragment.rs:4186-4284 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":3976}}}],"partialFingerprints":{"codehealthFindingId/v1":"3753a7f12e9df40c9995f24cca90051062c61fd9a2654fa122755877c9734aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:249-284 | rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:311-353 \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":"rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6111bf9b0566b7ae3bcec888b02c9f25d9a874be6efd1550522d8ee1afe009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:1158-1272 | rust/lance-index/src/vector/bq/storage.rs:1282-1366 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec2e4dc58097f507eecb94db2f7d0622047e1ddf6491555a7847f2db27bfef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): rust/lance-encoding/src/encodings/physical/rle.rs:1840-1936 | rust/lance-encoding/src/encodings/physical/rle.rs:2032-2113 \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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2774aaac8a52cb6f835eff03d549f7a2cf69285e9a81cb342cdbfc03cb588d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 66\u002B corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:365-438 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:450-519 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:602-667 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 66 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ecf666cbb1a1f66de0d2ca8a13530573a7b698dcd22a58a485718aa510e545"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): rust/lance-table/src/rowids.rs:1180-1269 | rust/lance-table/src/rowids/version.rs:566-652 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5a24755729cfca56350ac7ef6d7c7ca8f0c6ad01ed85a6739a1ac3bb145736"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:453-510 | rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:512-571 \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":"rust/lance-encoding/src/encodings/logical/fixed_size_list.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"101eba8b6cbe2005b98184199f810d0d6f4af52126a2f93fd91aa801939df797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): rust/lance-core/src/cache/mod.rs:956-1014 | rust/lance-core/src/cache/mod.rs:1103-1161 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"20163f9a7a373419017c4edbd00c869b1bbb8591a78b535d9eeedc44bfec6748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): rust/lance/src/io/exec/fts/match_query.rs:516-572 | rust/lance/src/io/exec/fts/phrase.rs:444-496 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"b756d401ff05e3529f4bf15e5bd1a87c602f6c0220ce1985a350d7ade3be77f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): rust/lance-file/src/reader.rs:1691-1747 | rust/lance-file/src/reader.rs:2113-2172 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19e8b64b14d99eafefc54a9291bfad3884216a6396820d8e8e026192bf4c2c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): rust/lance-index/src/scalar/inverted/index/partition.rs:1184-1236 | rust/lance-index/src/scalar/inverted/index/partition.rs:1243-1300 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c182a613e7319b584b591e8ac043545e645c8ae232a4ad043f20617f8f004e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:99-142 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:145-188 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c29eacb786a9a7cf71cfc6f72463f22676fd60fcff0712f5c2795897c678db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): rust/lance-index/src/scalar/inverted/wand/posting.rs:1093-1135 | rust/lance-index/src/scalar/inverted/wand/posting.rs:1139-1193 \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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c1979b20d17ddde50e14e29659188fa116634797c31d092f6a0de61c2d0f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:440-440 | rust/lance-linalg/src/distance/l2.rs:462-462 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"15455e4cfbb9dc4b5b65116b9a4be1c0c24d5bb45899e485b5e303ea59e55fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): rust/lance/src/index/frag_reuse.rs:2367-2422 | rust/lance/src/index/frag_reuse.rs:2430-2478 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2367}}}],"partialFingerprints":{"codehealthFindingId/v1":"30775c6762de190290dd83da0737691c7cbe9458cfd45c0e2065ea83e1d4186b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): rust/lance-index/src/scalar/inverted.rs:159-217 | rust/lance-index/src/scalar/inverted/index/search.rs:423-476 \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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ba0b14daaf21eadacb99bb67ab87c14134f630a0429c2133ecd52483c7fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): rust/lance-file/src/versions/v1/writer/statistics.rs:241-314 | rust/lance-file/src/versions/v1/writer/statistics.rs:316-387 \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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"520200494c9aa0ef30908a229775a2a0cc48b63ea2cde703ce3530cc58bf84cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1497-1547 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:168-219 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d9c981cc9e3600f5eabd14989240c4b11ee3f76a63d7e75bd5a439e5b56c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 56\u002B corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:531-590 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:679-734 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1021-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 56 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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bb8538e8e7137363596b3cb20d0c66e7fd7fbc9e2b4d2c1b60f716b92b68cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): rust/lance-datafusion-exec/src/chunker.rs:263-346 | rust/lance-datafusion-exec/src/chunker.rs:371-442 \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":"rust/lance-datafusion-exec/src/chunker.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e607c34cf06f562f1d15abb7b3a372f9d75c7366faf5257354d540bba386a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): rust/lance-jsonb/src/number.rs:409-450 | rust/lance-jsonb/src/number.rs:485-526 | rust/lance-jsonb/src/number.rs:543-606 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 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":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbc09f79d4965b93117055e38bed3291cad0b1eaf80837ab34c0a03abe52e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/flush.rs:312-395 | rust/lance/src/dataset/mem_wal/memtable/flush.rs:593-693 \u2014 These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a21a12a1ccc1fa00ae42ee54a395a048a7f9122eb75c9e33adddd03f967a9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): rust/lance-index/src/vector/graph.rs:403-475 | rust/lance-index/src/vector/graph.rs:504-570 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a61cf29cf9c1576abc5e75eb8f887514f2bd29fa0b822a4efc2d7597d54928"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): rust/lance/src/dataset/blob/materialize.rs:714-769 | rust/lance/src/dataset/blob/rewrite.rs:644-696 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/materialize.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"498ece6f5bab70c0f3d718a50301af4bcbc9d646ee3d54edf5df4905438caee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:237-273 | rust/lance-file/src/writer/structural.rs:205-241 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f54e42443f07162bf9542ab5a1521bc11dc9f1ac8640764ac9702b77a3e743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-964 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1604 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"86da8de0cfee2d2bbf59269bc3d02d9022bca782dd420087e230cd68ad37a378"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-965 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1605 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39d786537edd840b83e7946b5901e9605f6ba2daa7f6c9865018179fe8a5509"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-966 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1606 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13dc841927d3329433a0d093c31f2362583cae57b43acdc2eb49a0c26fbe858"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-967 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1607 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1b85840fca94144a0afb8c32a2efb4717e0cfbeb5cb61e63dc2912955a7213"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-968 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1608 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2e2a519f9cd7c476c9de5418bb65006833fec7909e4e1b49d770aa314fb60a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-969 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1609 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7fac4cfc9a456f8c0190db899659150101fbb522d4a3ec33c86a65f17b3a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-970 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1610 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c61021a6b320c538b5f066f4c1868be7c071bb3548f15177589d0895cd9734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:851-971 | rust/lance-index/src/vector/bq/ex_dot.rs:1552-1611 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0f86932e8afc2f452279eb75f26f568350ee6c2085afd2aae07381efdf546a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): rust/lance-file/src/versions/v1/writer/mod.rs:497-537 | rust/lance-file/src/versions/v1/writer/mod.rs:545-586 \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":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b7625037dd40792633bbdac27141441f9e34d748c156e4eb6e0e8b0dccd26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance-select/src/mask/nullable.rs:278-319 | rust/lance-select/src/mask/nullable.rs:325-373 \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":"rust/lance-select/src/mask/nullable.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e492e3aec4e7b6db600c8f6e27fce50f2deba1ef30b50bb68bad40a7f55970"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): rust/lance/src/io/exec/fts/segments.rs:207-262 | rust/lance/src/io/exec/fts/segments.rs:274-333 \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":"rust/lance/src/io/exec/fts/segments.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9141ac3d95a712430be5e4e32f1665f58647a3f81d7071ca900d3635119d49e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/cosine_u8.rs:110-110 | rust/lance-linalg/src/distance/cosine_u8.rs:168-168 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/cosine_u8.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dc7bc822ee02b1cceab1c7952ebcfcd180205d73cc54954f17349d3ac73443"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:890-936 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:979-1021 \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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5763b4959e4aff6901f55d580d040ed2ede719c4986d12a4a18a4fbac59b1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:735-786 | rust/lance-encoding/src/encodings/physical/alp.rs:967-1018 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49aeda65fcbb99bde6c02a5545dbc822643b9a438c08b8859ca3b5f5d778c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance-linalg/src/simd/f32.rs:332-368 | rust/lance-linalg/src/simd/f32.rs:828-863 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1953c3b1f526b5ba5081187536bdafe925f20d64aa35bf8b9ce0069ef201939"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): java/src/main/java/org/lance/Fragment.java:312-369 | java/src/main/java/org/lance/Fragment.java:390-441 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Fragment.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc108e310e859600b543da346497da9d11707cdf3690930015d65a8d4242a55d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:533-590 | rust/lance-encoding/src/encodings/physical/alp.rs:606-663 | rust/lance-encoding/src/encodings/physical/alp.rs:1589-1639 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e960298c7bb56ddb381a10ae0a0c5cdf8c2241aa17914357dbc8e4722073e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/cosine.rs:810-810 | rust/lance-linalg/src/distance/cosine.rs:1024-1024 | rust/lance-linalg/src/distance/l2.rs:711-711 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd1ada596450b25e96774b59e93b41b5e4902d64d87bf5214cb2ec02af1cebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): rust/lance-index/src/scalar/bloomfilter.rs:520-558 | rust/lance-index/src/scalar/zonemap.rs:1121-1159 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7ca1d1c069a2397bde9cd2cc52cc7c55e8cf101fef846dea78d6e7c3f4f411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:2529-2591 | rust/lance/src/dataset/mem_wal/index/fts.rs:2599-2648 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db946cc0c92d7cb6aeafbb0d786e5cd72326535d44f8f96067e1f6378212a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): rust/lance/src/dataset/index/frag_reuse.rs:663-709 | rust/lance/src/index/frag_reuse.rs:2322-2359 \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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62b23f52b7c04c053bd6981525b9991302134a9d59dc3d19e2afbc5f6f60497"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:713-761 | rust/lance-file/src/writer/structural.rs:734-786 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfb4a5c10879a6753cbd61f5398f4ffe106efe389c621e48629f827ce5adbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:447-502 | rust/lance-file/src/writer/structural.rs:607-659 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b770b977b5b62939a6452cab0e76d16030a4768c60c2c55b238461bbc6629a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance-namespace-impls/src/dir/manifest.rs:1355-1390 | rust/lance-namespace-impls/src/dir/manifest.rs:1456-1498 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef7fbec18b73048a79767fcfc3f76524fa40df3ec58787b4417978dc6f75b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): rust/lance-namespace-impls/src/credentials/azure.rs:899-969 | rust/lance-namespace-impls/src/credentials/gcp.rs:949-1005 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"237aaabb91c9061578aa39cd2d26ead9ebab0f047f9473f78a61369e280f7c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:1037-1068 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:321-362 \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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4511ebcf7a910d161fba6a76f4ee307587d8f779f80f2e8f8a4000af4ccc2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/lance-index/src/vector/pq/pairwise.rs:462-494 | rust/lance-index/src/vector/pq/pairwise.rs:515-557 \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":"rust/lance-index/src/vector/pq/pairwise.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2845d18e97750dd8b19e12c4e848078de2180507ded618203e28890997881f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): rust/lance-jsonb/src/jsonpath/parser.rs:85-122 | rust/lance-jsonb/src/jsonpath/parser.rs:124-162 \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":"rust/lance-jsonb/src/jsonpath/parser.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f22d24bfca2afa78cce58961ceea255a05db7bf28243ba4619b52f2c1f2683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:240-272 | rust/lance-linalg/src/simd/dist_table.rs:454-490 | rust/lance-linalg/src/simd/dist_table.rs:499-529 \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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3f08f386a887d7f0e32181cf8ee6db445bb65ed4298e75b298887bf7b0a957"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): java/lance-jni/src/mem_wal.rs:1228-1273 | python/src/mem_wal.rs:1059-1102 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"560209a3bf3f7f639c1aa58a951b9a6a66e41aca232b4af925b273b01150d81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:539-586 | rust/lance-file/src/writer/structural.rs:666-712 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8d892747941eeee2b51d98df7af898dc5e8b3953e58ada9428aabec3cfa332"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): rust/lance-file/src/versions/v2_1/reader.rs:108-162 | rust/lance-file/src/versions/v2_2/reader.rs:114-164 | rust/lance-file/src/versions/v2_3/reader.rs:235-280 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 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":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5328bbd9203154f30116bd65ecb707bf5809df7aa6d7f799afd5d334099d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:1209-1253 | rust/lance-encoding/src/encodings/physical/alp.rs:1264-1308 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c587de1bf6d530dfae6f7323a96d22edcdbaca1a13bf399136023c37d22cb094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): rust/lance-index/src/vector/bq/pairwise.rs:656-688 | rust/lance-index/src/vector/bq/pairwise.rs:742-773 | rust/lance-index/src/vector/bq/pairwise.rs:818-849 \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":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"03172de624fb4ac8ebcf89d05f76633f1af5d70d17a8c4b3e254b522a44aba4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): rust/lance/src/index/vector/ivf.rs:4706-4740 | rust/lance/src/index/vector/ivf.rs:4754-4797 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4706}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0197149a51158805c21c5d027a4225cbcabfceac3d633d0e160b16c9b24566"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): java/lance-jni/src/namespace.rs:225-283 | java/lance-jni/src/namespace.rs:286-339 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6414cabe71b674b70151331fd9317a0c21fa0d51f5c9b5118e69d0354e1397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): rust/lance-index/src/scalar/bitmap.rs:564-602 | rust/lance-index/src/scalar/bitmap.rs:611-650 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50b429b5c78c4a6ea10853d7c03b1075d6becd92e80dd4e0ab41e2bad200641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): rust/lance-index/src/vector/sq/pairwise.rs:460-493 | rust/lance-index/src/vector/sq/pairwise.rs:506-539 \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":"rust/lance-index/src/vector/sq/pairwise.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"a320269e4ea738cc3d4cc8772b4382be2c95ea31c5dc5689de17b9c4166bc02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 38\u002B corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:745-782 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:793-830 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:841-878 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:889-926 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:972-1009 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1094-1132 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ecc3a7180174e03246a3379fe138324dd4a6515857c22d91cd0dfd42e93c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): rust/lance-encoding/src/encodings/physical/fsst.rs:217-276 | rust/lance-encoding/src/encodings/physical/fsst.rs:326-362 \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":"rust/lance-encoding/src/encodings/physical/fsst.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac55840fcebd95f73c593de9aff486a0573a8427e740cd352e08b55ac5903cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance/src/dataset/write/merge_insert/exec/write.rs:803-848 | rust/lance/src/dataset/write/update.rs:665-700 \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":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"9445ca2628501562e69dcb67c8c8cdf7664f2a4e5184fcdd36b3f57b9069b7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): rust/lance-core/src/levenshtein.rs:17-46 | rust/lance/src/dataset/mem_wal/index/fts.rs:668-696 \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":"rust/lance-core/src/levenshtein.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"008faa8bbe9b769645e741c05b70842903e9fff961c89daf4bc863f16fc7c4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:392-430 | rust/lance-linalg/src/simd/f32.rs:891-938 | rust/lance-linalg/src/simd/i32.rs:232-270 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d2073bedd4e5cc264c6d93ca078f91e94f0ac80f6e47894e25579de256b191"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-file/src/versions/v1/encoding/plain.rs:306-343 | rust/lance-file/src/versions/v1/encoding/plain.rs:379-408 \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":"rust/lance-file/src/versions/v1/encoding/plain.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e85c286e0aa43ded7a8a024d8bf7af6fdf22abfc99900ad1bc538a5518ddd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): java/src/main/java/org/lance/ipc/AsyncScanner.java:62-102 | java/src/main/java/org/lance/ipc/LanceScanner.java:58-101 \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":"java/src/main/java/org/lance/ipc/AsyncScanner.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6aa82d879dfcfdc985df0d568c913235aeca3ab9a532c88111ba29dbc8fda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): rust/lance-namespace-impls/src/credentials/azure.rs:834-890 | rust/lance-namespace-impls/src/credentials/gcp.rs:887-940 \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":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc81e28632dee3d4cbd7393ade57b30e2816f49b3489043e1bdacf29b4c44ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:2098-2142 | rust/lance-encoding/src/encodings/physical/alp.rs:2150-2194 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"26607f6197f562e27954648d46d590bf93de3e8b321c16ac80c6c75202e700c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:312-350 | rust/lance-encoding/src/encodings/physical/alp.rs:354-389 \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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2023a31db404ea7f5ce2532ec4c5e714c917083f7a2bed445c9a30d7de3168"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): rust/lance/src/blob.rs:163-196 | rust/lance/src/blob.rs:210-244 \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":"rust/lance/src/blob.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0988408d1b209b1f860ee0129390a6c776947de3a4d577cc13c8c5a5f658770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): rust/lance/src/io/exec/filtered_read.rs:3565-3618 | rust/lance/src/io/exec/take.rs:458-495 \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4afb1212ae6e641f3987065d775d14e73c4f49f162dd26f991e6fcb6d4566f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): rust/lance-file/src/versions/v1/writer/statistics.rs:718-761 | rust/lance-file/src/versions/v1/writer/statistics.rs:763-806 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aad07888734f9be2522672cd24c867f3c00e46278c381c2fe39ba62796c3132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): rust/lance-namespace-impls/src/credentials/gcp.rs:695-753 | rust/lance-namespace-impls/src/credentials/gcp.rs:773-842 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2acf8da9f064924b67e418cb169a4658297e8a106cc80237f3d08d4fb41a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/cosine.rs:575-575 | rust/lance-linalg/src/distance/cosine.rs:696-696 | rust/lance-linalg/src/distance/cosine.rs:901-901 | rust/lance-linalg/src/distance/cosine.rs:947-947 | rust/lance-linalg/src/distance/dot.rs:656-656 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad438dbbf61eef1c1701c0bc462acca6958d11789921d4e8fdd867cd3c859d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): rust/lance-io/src/uring/current_thread.rs:99-153 | rust/lance-io/src/uring/thread.rs:383-437 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1887132d928905e3e3bf2e085f69131660713d93cdef228af3fe93f377744d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): rust/lance-index/src/vector/hnsw/builder.rs:351-396 | rust/lance-index/src/vector/hnsw/builder.rs:544-584 \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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8df6ac303e32fdeb69849b080f9ac23df19f0c77179fe8daea2bb9b2ba54d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): rust/lance-encoding/src/decoder.rs:1744-1798 | rust/lance-encoding/src/decoder.rs:1981-2026 \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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"413db37b93d08e0a4b75cb089cc53022e8754edd6f6f541f3597d7b2115510f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:1001-1025 | rust/lance-linalg/src/simd/f32.rs:1088-1112 | rust/lance-linalg/src/simd/f64.rs:792-816 | rust/lance-linalg/src/simd/f64.rs:875-899 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"e144d788ad4f9c1668db238ce7123cff734f655f4dc4acd5c5ce54d0c7f56677"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): rust/lance-table/src/io/commit/external_manifest.rs:46-103 | rust/lance-table/src/io/commit/external_manifest.rs:644-710 \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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca681a1aea1fc3ca9337611708ba6e09d7b18b7c3c65a9cb6625b44a06d9b2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:2383-2418 | rust/lance/src/dataset/mem_wal/index/fts.rs:2477-2521 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd7dd08c339939f0ca9eba02e1961bf9258cf5b9e68d11f9da515dd0f33b27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): rust/lance-io/src/object_store.rs:1156-1203 | rust/lance-io/src/object_store.rs:1210-1268 \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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1192d700e8d8aa4581b697212f19bdb3f9afac59b1a38d4c00c4325252cbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): python/python/lance/pydantic.py:54-114 | python/python/lance/pydantic.py:120-195 \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":"python/python/lance/pydantic.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a37a7fbf89e20ab2b7be5f385734a39c510137fe18f1eec2191d634b173dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/l2_u8.rs:81-81 | rust/lance-linalg/src/distance/l2_u8.rs:128-128 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/l2_u8.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"212d0a0f95152792cf0bf4dfae4ef506957b46223d5f003fcede479601b63c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/lance-core/src/datatypes/schema.rs:238-265 | rust/lance-core/src/datatypes/schema.rs:724-764 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"44506e7938e092a61eabe09149aedd065dccbb71d3587c0de53b29d8a4c9b216"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance-namespace-impls/src/rest.rs:1187-1226 | rust/lance-namespace-impls/src/rest.rs:1528-1558 \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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"50941a87f5bf459d7129f9b4bb52c3dcd5723fcaabac0cc41ca870ad9b620a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): rust/lance-arrow/src/json.rs:391-416 | rust/lance-arrow/src/json.rs:419-444 \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":"rust/lance-arrow/src/json.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0ad56cb44cd0635f7c69c0c6746cbae28b4d139479a1073029174227d99c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/lance-table/src/rowids.rs:97-129 | rust/lance-table/src/rowids.rs:138-170 \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"383886c515adcc9fa51073041089067cbc1b5bca22fab5dca5b4436f6ee883d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 36\u002B corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:59-94 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:104-141 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:204-243 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:254-295 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 36 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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6722f63ed1d360272c428326e9847c21659114997c889748bdfd43dacefa79b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/cosine.rs:859-859 | rust/lance-linalg/src/distance/dot.rs:701-701 | rust/lance-linalg/src/distance/l2.rs:761-761 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"21177778460230a7d5a4e7bebe7c0d92987571c756a8640a93e343685cf95bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/norm_l2.rs:223-223 | rust/lance-linalg/src/distance/norm_l2.rs:296-296 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/norm_l2.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808cd1fb3790f41dbc215fc44af38ac4e6bb9ef20d62834c9f6c45fa9daa2e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): rust/lance/src/index/vector/ivf.rs:3443-3489 | rust/lance/src/index/vector/ivf.rs:3499-3547 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f15bbf7421d6f226af4027da93030930339feabf9118416a0f869069a95dabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): rust/lance-index/src/vector/bq/pairwise.rs:616-648 | rust/lance-index/src/vector/bq/pairwise.rs:703-734 \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":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e92a30fc1514421972e89a6b0d8f16021aa2fb4d172e9f4751471d8d14908e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): python/src/indices.rs:459-502 | python/src/indices.rs:629-673 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/indices.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91e258ad64c3622b7643b201664a01b5ea8a1843ed1ff535f1538455a356f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-file/src/versions/v2_1/compression.rs:55-84 | rust/lance-file/src/versions/v2_2/compression.rs:47-76 \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":"rust/lance-file/src/versions/v2_1/compression.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5029ade20b9b5beed5046f5cfc086ee7595f824060dadbd6ffd57d4a2a04d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance-core/src/cache/moka.rs:257-287 | rust/lance-core/src/cache/quick.rs:469-507 \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":"rust/lance-core/src/cache/moka.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b6c7b563527b8b1e4297543d46641f035384c32b55e5139749e7110dbebfc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): rust/lance-index/src/vector/bq/dist_table_quant.rs:286-314 | rust/lance-index/src/vector/bq/dist_table_quant.rs:322-348 \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":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48aa2ebe9adc4d45e5858c5389bbdcae44368e16fa668b076873ba919ac22b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): rust/lance/src/index/scalar/inverted.rs:542-583 | rust/lance/src/index/scalar/inverted.rs:604-630 \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":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dc695a6e5dbfb669582b67afbeeb5676d169a952ee8f9ba721c974018a0107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): rust/lance-file/src/reader/structural.rs:286-337 | rust/lance-file/src/versions/v2_0/reader.rs:244-277 \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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee902d28366982873c906e697a833bffa2f819aec163029038c99205a6e59c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): python/src/dataset.rs:1419-1438 | python/src/dataset.rs:1447-1472 \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":"python/src/dataset.rs"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e8462cd554af003b2c0a06e8d7fae6932984648ede3b172d9daa8bec3cb5c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance-file/src/versions/v1/writer/statistics.rs:52-82 | rust/lance-file/src/versions/v1/writer/statistics.rs:106-136 \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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2b3dc779f70b8cc1e6e41d19979c5e3c5ce5f37d030c74ebc8387d3e4da4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/lance-index/src/vector/bq/dist_table_quant.rs:62-94 | rust/lance-index/src/vector/bq/dist_table_quant.rs:101-128 \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":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"68153aa30e5405d060ac7337c0e2809018ab93cf3d90df9671244ba4e38c3a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): java/lance-jni/src/blocking_dataset/read.rs:756-784 | java/lance-jni/src/blocking_dataset/read.rs:807-834 | java/lance-jni/src/blocking_dataset/read.rs:859-890 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f9d12f8bd112a0205b5b5e065f1a68a189fee0e40aa5a711deb8c4d466b8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f64.rs:699-719 | rust/lance-linalg/src/simd/f64.rs:767-787 | rust/lance-linalg/src/simd/f64.rs:823-843 | rust/lance-linalg/src/simd/f64.rs:850-870 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97990f0c13c5286c4dbb7dd65a91fb4d2d5979612c92a9ad5a77b23e6035e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): rust/lance/src/dataset/mem_wal/index/btree.rs:477-505 | rust/lance/src/dataset/mem_wal/index/btree.rs:694-723 \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":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aebd20b5f644fa5359d35a19c24df5830276b093391fafd64db0a20a9976c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:866-888 | rust/lance-linalg/src/simd/f32.rs:974-996 | rust/lance-linalg/src/simd/f32.rs:1032-1054 | rust/lance-linalg/src/simd/f32.rs:1061-1083 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"6186603a564d0781bffec6f320084d26805e1a468b7035f124566504118f18e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:215-239 | rust/lance-encoding/src/encodings/physical/alp.rs:242-266 \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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba97cb62fab8c59ac8f3c21aec6c6de6fb86e074bfa814ba47483f1d1af3e413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/cosine.rs:539-539 | rust/lance-linalg/src/distance/cosine.rs:773-773 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db2f7f7a75932ef698b4dbce156e41d0bec46d721db1ef5b57f2e394f29bf5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): java/lance-jni/src/vector_trainer.rs:113-145 | java/lance-jni/src/vector_trainer.rs:176-203 \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":"java/lance-jni/src/vector_trainer.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b5466d74c36d03fdf15c4fd744474f3ff82d538e7efaa68b51cf96248ede35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/lance-index/src/scalar/inverted/index/partition.rs:896-923 | rust/lance-index/src/scalar/inverted/index/partition.rs:933-961 \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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5a1f699f0c2a147e9675bd53cb53951ff959cf7e4d13069975e7f6f174d0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-index/src/vector/distributed/index_merger.rs:472-508 | rust/lance-index/src/vector/distributed/index_merger.rs:514-543 \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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc00f8a3c27a1142f8c40497cabb3cfb266e9375421969d55a88ac3cb724446f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): rust/lance-jsonb/src/core/de.rs:583-608 | rust/lance-jsonb/src/core/de.rs:863-896 \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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"299b9510252d68cc4e8cbf91c1f6af16ca96faf8880ba20bd4edc430cb31044b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): python/src/dataset.rs:3610-3647 | python/src/indices.rs:164-195 \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":"python/src/dataset.rs"},"region":{"startLine":3610}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85484e30e7cb9789be760712cdb988428515f115b27830f06ddb710a739d2a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): rust/lance-index/src/scalar/inverted/index/search.rs:272-303 | rust/lance-index/src/scalar/inverted/index/search.rs:310-344 \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":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d345c2fb1c13999ef69bd59b791d9c2f0ac1d1ac3655bee6bb6239c2f54866f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/dict.rs:92-112 | rust/lance-encoding/src/encodings/logical/primitive/dict.rs:151-171 \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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fcfa2789f30e46fe2e8d053ca32c67fdf625c293eabd83d266fa0680ba93d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:3346-3383 | rust/lance-index/src/scalar/inverted/compound.rs:3641-3679 \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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb29dc189f822f052cbd20c3bf2ccf696d833d0e6d08eba4c6b321c89fd4ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/lance/src/index/vector/ivf.rs:4806-4838 | rust/lance/src/index/vector/ivf.rs:4851-4890 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4806}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ba533bd3d839ed1bf3ae0609c7bb4c4803f01280a0a430085e4f2acac02561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-io/src/lib.rs:228-249 | rust/lance-io/src/lib.rs:285-304 \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":"rust/lance-io/src/lib.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af6880c059749ca03e52a68d0bbacdad7190032029683f36861da4995ee5aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): rust/lance-arrow/src/json.rs:625-650 | rust/lance-arrow/src/json.rs:655-680 \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":"rust/lance-arrow/src/json.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ba7e56bc3e9e9e8f8a501e0f2cdaabbfd4df12f841feb8e9c12354d62f586e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-io/src/object_store/providers/aws.rs:190-231 | rust/lance-io/src/object_store/providers/gcp.rs:216-240 \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":"rust/lance-io/src/object_store/providers/aws.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5fe2ca453ca5c3fd90f2b6cce73fab239d34f732509864ea8285262461e197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:573-606 | rust/lance/src/dataset/mem_wal/index/fts.rs:610-647 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d80bacdaa06e5c5d4d829791857f6743e34793598b6abd6d70e636883688dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): rust/lance-namespace-impls/src/credentials/gcp.rs:260-305 | rust/lance-namespace-impls/src/credentials/gcp.rs:419-460 | rust/lance-namespace-impls/src/credentials/gcp.rs:581-626 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 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":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93d9003689137bda05025b19ef88d20592c059dbfdec8dbc2a5a19111c85dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): python/src/dataset.rs:3554-3575 | python/src/dataset.rs:3582-3603 \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":"python/src/dataset.rs"},"region":{"startLine":3554}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adfcfe42d7729f683a0f19a1bea94081c0d1633d9c86c1ef9f9fa71f4414d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): rust/lance-encoding/src/array_encoding/strategy.rs:136-175 | rust/lance-encoding/src/encoder/structural.rs:39-73 \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":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77237e15f265d319edc8c64e212f951e49d9225d9dcbb400d1b4b80a4d9532c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-encoding/src/array_encoding/strategy.rs:213-235 | rust/lance-encoding/src/array_encoding/strategy.rs:240-262 \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":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdd4f46b0f2a1ac3c7d59367f8ae282d3da9cffc805a75ab1b0a09416e83d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): rust/lance-jsonb/src/jsonpath/selector.rs:330-360 | rust/lance-jsonb/src/jsonpath/selector.rs:465-496 | rust/lance-jsonb/src/jsonpath/selector.rs:502-540 \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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1775807a29017a37aa7dda2fdfb8129f9898dc70a9ac6f0e2459c70a180811a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-datagen/src/generator.rs:2744-2768 | rust/lance-datagen/src/generator.rs:2772-2798 \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d5f334dc2008bb83f5a8b18491cdb8fdbfcea939a56bc182bffc607c493b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-linalg/src/distance/dot.rs:36-56 | rust/lance-linalg/src/distance/l2.rs:149-176 \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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab756290e413d00139c6cc863d5fa7754d63e91596deddf9890d974a49235c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-index/src/vector/kmeans.rs:362-390 | rust/lance-index/src/vector/kmeans.rs:1062-1080 \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":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec720ef3bbf8d8dc04ebb2187741db08b9104d40d4fa537b43d04669d934f942"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:624-624 | rust/lance-linalg/src/distance/l2.rs:675-675 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"899aa9771957849593abc30031661bd83c11d921abe61480672dcb87ab023637"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance-linalg/src/distance/hamming.rs:785-815 | rust/lance-linalg/src/distance/hamming.rs:864-897 \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":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"924cfd83ee9a6129f36862fc26efa312aebac334b45669c6a25122ba3e6468a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): rust/lance/src/io/exec/fts/compound.rs:1016-1046 | rust/lance/src/io/exec/fts/compound.rs:1669-1698 | rust/lance/src/io/exec/minhash.rs:179-212 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"e016dc816a406eda5006d4b69ab77cffe46e99e69853a76229986768a5f10e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-index/src/scalar/list_element.rs:384-406 | rust/lance-index/src/scalar/list_element.rs:417-442 \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":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"321405205183bf61df66605f48854585e5ae2a36ec5db6126de5fe57e5a9050b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/collector.rs:307-335 | rust/lance/src/dataset/mem_wal/scanner/collector.rs:344-380 \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":"rust/lance/src/dataset/mem_wal/scanner/collector.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17a1992f8be30c347f4c14cfe7b6cac84594d084868b02b0b6cbf9f7ff2da3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:2275-2293 | rust/lance-linalg/src/simd/dist_table.rs:2423-2439 \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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":2275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2834c2e4294d61bc1663cc3963dfd9797933ed800c9babd96a6ccefbb429e317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:339-363 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:374-398 \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":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef63abe6ab048d8e15b367f1509e119538de7318c522989d0f5f682aff8617c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-linalg/src/distance/hamming.rs:754-776 | rust/lance-linalg/src/distance/hamming.rs:825-855 \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":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d5c9830d0b7074cb1588d57ef5442ebefb65c391fc85e5e120e18b1781335d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): python/src/dataset.rs:1997-2024 | python/src/dataset.rs:2034-2056 \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":"python/src/dataset.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca7dda3f587957399e1fddad599d6654e4704ac5558d67ae789ce87de1ed5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:794-825 | rust/lance-linalg/src/simd/f64.rs:641-665 | rust/lance-linalg/src/simd/f64.rs:668-696 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21884e904afa702ddfa331ddd769f8c3d5a35dcddb2d604ead5a466b2e01a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:305-326 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:336-353 \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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebc7a72d9f2e267517079556823954aaa3e2ac32f6bca8584b089edcfa48cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): rust/lance/src/index/vector/ivf/builder.rs:61-97 | rust/lance/src/index/vector/ivf/builder.rs:264-310 \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":"rust/lance/src/index/vector/ivf/builder.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe5657252152af93b2532eaac48775df0057b568497af585645b0dc07f896ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-encoding/src/array_encoding/logical/struct.rs:584-609 | rust/lance-encoding/src/encodings/logical/struct.rs:341-364 \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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb05a2624998ac381da9a3243fcaf9ea49f57d907fbdd9ecfce52f27fb34ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/lance-file/src/reader.rs:2316-2343 | rust/lance-file/src/reader.rs:2530-2558 \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"669786d1f1cdb91ceda69787b7eb529e347098a334434a66009ac1e1ba8fc8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/dot.rs:791-791 | rust/lance-linalg/src/distance/dot.rs:823-823 | rust/lance-linalg/src/distance/dot.rs:855-855 | rust/lance-linalg/src/distance/l2.rs:856-856 | rust/lance-linalg/src/distance/l2.rs:892-892 | rust/lance-linalg/src/distance/l2.rs:928-928 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"854719a6b25da023066221bacba38fa0312167601d9b2b27f2a9443a44c0720d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): rust/lance-namespace-impls/src/rest.rs:1014-1032 | rust/lance-namespace-impls/src/rest.rs:1105-1128 | rust/lance-namespace-impls/src/rest.rs:1772-1790 | rust/lance-namespace-impls/src/rest.rs:1860-1878 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d599f83bf5c74108d87bbdd1f157352699c085c5835476044ebf191de302ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): rust/lance-index/src/scalar/fmindex.rs:840-858 | rust/lance-index/src/scalar/fmindex.rs:861-879 | rust/lance-index/src/scalar/fmindex.rs:881-902 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e42f7256a6cfe37f9116a2f31328eddd67375071795b7212ccdeaec15a5dede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:870-901 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:903-943 \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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"421795b9d8f38d8f89376b02b54314ad8054aa48b11ac912f09daf164f4770e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): java/lance-jni/src/fragment.rs:485-512 | java/lance-jni/src/fragment.rs:545-571 | java/lance-jni/src/fragment.rs:723-759 \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":"java/lance-jni/src/fragment.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdab26f41853bb2da7ead70e8a39f84a3c961b60fd7b4cafdd403886126f5f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): java/lance-jni/src/optimize.rs:105-139 | java/lance-jni/src/optimize.rs:206-248 | java/lance-jni/src/optimize.rs:324-366 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/optimize.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"993c635e0321bb8e5e19ea113340e193b2bd5d45a4a702c9568fe9ca6ee47b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): java/lance-jni/src/otel.rs:103-117 | python/src/otel.rs:151-165 \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":"java/lance-jni/src/otel.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7239da7055d938d7dda1716257c5c1ca09bf4b122ec28946ee7a34409d8c214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance/src/dataset/mem_wal/memtable.rs:451-489 | rust/lance/src/dataset/mem_wal/memtable.rs:501-530 \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":"rust/lance/src/dataset/mem_wal/memtable.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfe0ba70811a37e855a84eaab3b7d2c88e4e39d7ad60c8c357ff90296b9becb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): java/lance-jni/src/namespace.rs:1566-1593 | java/lance-jni/src/namespace.rs:2519-2544 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd84638e28312527b661f1c658e8bb6bfc509258fa98a479ba39b77f49d9239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/lance-encoding/src/encodings/physical/constant.rs:58-95 | rust/lance-encoding/src/encodings/physical/range.rs:87-119 \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":"rust/lance-encoding/src/encodings/physical/constant.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e86384146641e4daf7309fa5f4fe1d7bdc64ecfc85ad7ea913314c984cc0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:3575-3596 | rust/lance/src/dataset/mem_wal/index/fts.rs:4909-4930 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3575}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a918a160a67228a633cf1c382bba7542c18f8c1fd1a9cc6c4b31d260a8c245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-core/src/datatypes/schema.rs:1670-1686 | rust/lance-core/src/datatypes/schema.rs:1697-1713 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dd2ffa0e304c72c16de4735e5d21149912a4bd4dbd0477207f1e34bfc4cd5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-linalg/src/simd/i32.rs:302-322 | rust/lance-linalg/src/simd/i32.rs:354-374 \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":"rust/lance-linalg/src/simd/i32.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0a66c639637218923c83dcee843884db40e68a6b911f5c293076cd3cfaeb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): rust/lance/src/index/scalar/bitmap.rs:38-63 | rust/lance/src/index/scalar/btree.rs:68-93 | rust/lance/src/index/scalar/rtree.rs:85-118 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b939581f1484ef46b22db2a35aa6399736a526522dde81c52ac62475ebc3f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:1259-1275 | rust/lance-index/src/vector/bq/ex_dot.rs:1669-1688 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94bdcc3ac8670ef537da253b4a05d11bea1fbbb2f063c3495de2c6365f7d951"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:115-150 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:150-189 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1c42a801a1198b28b5fe44350daa876372a429aec341665352be936b682fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance/src/index/vector/ivf/v2.rs:259-283 | rust/lance/src/index/vector/ivf/v2/partition_search.rs:567-586 \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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7fbf1fe68a675a86af2f015472caf70424883487e942ff352052aed3da1ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:651-686 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:439-480 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a373d4028a6f5508c52253d5633e4236ac0893b8e577f8bdedd6fa147b6670"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:772-794 | rust/lance-index/src/scalar/fmindex.rs:796-819 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d62488025b94c826a51aa5167259e01403cf217c0422bb6889a34dd049a79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): rust/lance-index/src/vector/bq/dist_table_quant.rs:397-414 | rust/lance-index/src/vector/bq/dist_table_quant.rs:432-447 | rust/lance-index/src/vector/bq/dist_table_quant.rs:525-546 \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":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf226a285e0dede6cb367f5ecdaf426b5ee81d09cf6d3bfd9980e8b039d97a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:519-519 | rust/lance-linalg/src/distance/l2.rs:555-555 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b0f1777bb4841bb681fec1fb44488cfc7eb546755ca6799471cc49bb7c58b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:1097-1115 | rust/lance-linalg/src/simd/dist_table.rs:1346-1368 \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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9167680434d453995cbb37a632512cbdd1f2102a732bb6394163c883a760a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:495-526 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:532-554 \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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6de20ecec3ba14a037e0b9bcd5bcad1d96f5eb3c1391e7da5f924f084bb9ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): python/src/dataset.rs:3326-3348 | python/src/dataset.rs:3362-3389 \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":"python/src/dataset.rs"},"region":{"startLine":3326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f54b3ed96db5671f38457455fa47f5d9a02bccd5252b10da589d459a603cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): python/src/mem_wal.rs:341-362 | python/src/mem_wal.rs:368-397 \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":"python/src/mem_wal.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b85ca9fe30f12a53a16dfce293b5366fd2199b0977b575278fbc40e4c241842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): rust/lance-table/src/rowids.rs:417-445 | rust/lance-table/src/rowids/version.rs:315-341 \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7794cdbd7dc22e30417e004c988b6f0dcf01c57cb8b471a3e6de2b5235c820ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:155-185 | rust/lance/src/dataset/scanner/fts.rs:1030-1066 \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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1687a27ee7cf0111e53cf9304830a60ba8757f0ba5b18dd60cd9b1257e2eb12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-core/src/cache/mod.rs:761-784 | rust/lance-core/src/cache/mod.rs:1050-1074 \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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a77506919fc11781a9948fa7db1028c1aa92dc988f299482440ecd7a5210374"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): java/lance-jni/src/index_progress.rs:98-125 | java/lance-jni/src/index_progress.rs:127-149 \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":"java/lance-jni/src/index_progress.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4166a14ccd734db0b0b26cdbe17150372c65b979d839527ea3bdcbb4e486854b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): rust/lance-index/src/vector/flat/storage.rs:86-116 | rust/lance-index/src/vector/flat/storage.rs:266-294 \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a59f227da2dcf190d2df466c800c5769d603e43a3142df71dff15893bbce67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/dot.rs:563-563 | rust/lance-linalg/src/distance/dot.rs:599-599 | rust/lance-linalg/src/distance/l2.rs:650-650 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c56b6a2718088d2ab6bc65b83a35edfe45b984100fad18b391751947c8e549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-index/src/scalar/label_list.rs:549-567 | rust/lance-index/src/scalar/label_list.rs:572-590 \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":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4e5f8caa8101960099e4eb9b0a8df454d42e9f2a6d8c8ab1184f39d8384505"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-table/src/io/commit/dynamodb.rs:540-563 | rust/lance-table/src/io/commit/dynamodb.rs:573-593 \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":"rust/lance-table/src/io/commit/dynamodb.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2624ab8e2926afe14ecf0f8f825ddc52a26eca6cf2c8df747149e23990d15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): java/src/main/java/org/lance/Dataset.java:160-188 | java/src/main/java/org/lance/Dataset.java:304-332 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a585a9d5ded205d6ddbfb6e555d1ce8940f3dc4b7f1f61e54caab6bef5087ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:1284-1306 | rust/lance-index/src/vector/bq/ex_dot.rs:1329-1356 | rust/lance-index/src/vector/bq/ex_dot.rs:1364-1391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1654877c9ccdf3ddfc2288a122542b3a8e48a526aa7af3a1dc6e440eeb2ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-index/src/vector/pq.rs:370-393 | rust/lance-index/src/vector/pq.rs:426-448 \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":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71c9a6c9cd85f2e92088745471442e256531fcf4defa114b1c6ff27e9d9b089"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:486-506 | rust/lance-linalg/src/simd/f32.rs:538-558 | rust/lance-linalg/src/simd/f64.rs:336-356 | rust/lance-linalg/src/simd/f64.rs:388-408 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b7b9da79a1aff5b14b0826032a730bb61e3ebbc2de7105b678e9b4a430a173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): rust/lance-file/src/reader.rs:1572-1602 | rust/lance-file/src/reader.rs:1610-1642 | rust/lance-file/src/reader.rs:1650-1682 \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd904c4c5606786a7d22b1a7381909134c861bc47f36d3e1d4ff4a2886b9946b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-index/src/vector/flat/storage.rs:170-191 | rust/lance-index/src/vector/flat/storage.rs:346-366 \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"12feaa1040c8405fdd9d7157809acff11ae7b4f4365b23d95c9da5544ed7040e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-index/src/vector/hnsw/index.rs:274-298 | rust/lance/src/index/vector/ivf/v2.rs:3337-3362 \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":"rust/lance-index/src/vector/hnsw/index.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8563308ff67e465c2a1042b914c92d2771ee398d5bd30d1f6e5f0421657a3699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:360-388 | rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:406-424 \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":"rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"307055bd81802767dc67b5dff8d21ab88a7072d2d6e90fa77994b8e60eff0a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): python/src/fragment.rs:252-273 | python/src/fragment.rs:280-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":"python/src/fragment.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"223c8dce59cc6661af8a92b95e4d8f31d13e5915f0dd1f6be432f9f7f3c7059c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): rust/lance/src/io/exec/pushdown_scan.rs:250-284 | rust/lance/src/io/exec/scan.rs:655-689 \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":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"807142e4809b6006c6d20b5d7f436e9bbb5bcd5bf479687e6842f6776cd69882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): java/lance-jni/src/blocking_blob.rs:60-74 | java/lance-jni/src/blocking_blob.rs:115-132 | java/lance-jni/src/blocking_blob.rs:152-166 \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":"java/lance-jni/src/blocking_blob.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde0f78985542f4a1b6a3bb53b9d3a1c7185abfd53d8de8c8fda287559b060ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-encoding/src/encodings/physical/bitpacking.rs:570-588 | rust/lance-encoding/src/encodings/physical/bitpacking.rs:595-621 \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":"rust/lance-encoding/src/encodings/physical/bitpacking.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70ea74d449e34d3ad9cde6a10559f50d54266807031fc9fc951ac39051dd74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): rust/lance-index/src/vector/pq/storage.rs:449-475 | rust/lance-index/src/vector/quantizer.rs:403-430 | rust/lance-index/src/vector/sq/storage.rs:230-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 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd20f5a832bc0f38b2a41e5c40eba72f35e0e2b4043b82015c0e74ff8c21597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:370-390 | rust/lance-linalg/src/simd/f64.rs:249-269 | rust/lance-linalg/src/simd/i32.rs:210-230 | rust/lance-linalg/src/simd/i32.rs:277-297 | rust/lance-linalg/src/simd/i32.rs:329-349 | rust/lance-linalg/src/simd/i32.rs:394-414 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0c63aa455a25a7fabaf54d5172dbf5f03dd3bee94547f2891fa849f4efdc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-table/src/io/commit/external_manifest.rs:938-958 | rust/lance-table/src/io/commit/external_manifest.rs:965-987 \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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec702d2f20259fb3add1be198629e18aa27056440df7c8705777b9461450645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): python/src/mem_wal.rs:261-279 | python/src/mem_wal.rs:286-304 \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":"python/src/mem_wal.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"61262afa4ccf55788a48776ec3981c084bd7d24946f961a370337de866762e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): python/src/namespace.rs:142-170 | python/src/namespace.rs:892-917 \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":"python/src/namespace.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca56dd748faf5207ab71efb20b32d4d67f2481c4737e510af3805770adf19fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): java/lance-jni/src/namespace.rs:3460-3472 | java/lance-jni/src/namespace.rs:3544-3559 | java/lance-jni/src/namespace.rs:3589-3601 | java/lance-jni/src/namespace.rs:3673-3688 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f8deb8a6d5155d50db8dc665b0e4cc95c136bce4098b5f0afd15653d8b34ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-index/src/vector/distributed/index_merger.rs:260-282 | rust/lance-index/src/vector/distributed/index_merger.rs:339-362 \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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6671c87403277d3520a1a01468bcefa07b39ed81552141def5fabef953913449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:461-481 | rust/lance-linalg/src/simd/f32.rs:513-533 | rust/lance-linalg/src/simd/f32.rs:565-585 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70c11a12909c828dd095941cd5f557f7ebe634b92a2c5634178012da2bfd013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f64.rs:311-331 | rust/lance-linalg/src/simd/f64.rs:363-383 | rust/lance-linalg/src/simd/f64.rs:415-435 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19e0804e29101d3268c4c32a12165331d2f5413ff66c2b04e90aacb57b79c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): python/src/dataset/merge_insert.rs:192-210 | python/src/dataset/merge_insert.rs:239-252 | python/src/dataset/merge_insert.rs:254-266 | python/src/dataset/merge_insert.rs:273-293 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"815bf76154138e3f65c984fc6a96da6e0e70d333dfa4b809b64cb27b11bded67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-linalg/src/simd/f64.rs:194-218 | rust/lance-linalg/src/simd/f64.rs:220-247 \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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb65a9a7e4b6e053a0a0610df7ba0b02017414209145514300dd9a1ee1a0cab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/io/exec/topk_late_materialization.rs:401-416 | rust/lance/src/io/exec/topk_late_materialization.rs:449-467 \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":"rust/lance/src/io/exec/topk_late_materialization.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6246cf66f4e8d25fd25baa049c6d0ac043d40c363eb0a70a124459090fc05153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): python/src/scanner.rs:325-341 | python/src/scanner.rs:350-366 \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":"python/src/scanner.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca26e3463dac04c740c098add251e69838509d92176b6d574c1572ed62b9e32a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/lance-index/src/scalar/inverted/index/posting_builder.rs:697-726 | rust/lance-index/src/scalar/inverted/index/posting_builder.rs:728-752 \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":"rust/lance-index/src/scalar/inverted/index/posting_builder.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e651caf3db190ac434e1febac48acfb407b453b0b3054d53082dd7a825a272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:415-460 | rust/lance/src/dataset/mem_wal/index/fts.rs:464-505 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"291e5d1a116e9ec9b6197e129da9ea55d6315db23c77efabad55f22148019ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/dataset/mem_wal/wal.rs:1894-1916 | rust/lance/src/dataset/mem_wal/wal.rs:1922-1939 \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":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aac1a36b8aaf23da0a560323df11d04c0ab7316387d60a43218671e6167ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance/src/bin/fm_contains_bench.rs:210-231 | rust/lance/src/bin/fm_index_tool.rs:64-83 \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":"rust/lance/src/bin/fm_contains_bench.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3f9d95a10babce2cfe742bc224908cbcc2b8b8b3aa26182b89b77a28a672ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): rust/lance/src/io/exec/fts/flat_match.rs:856-873 | rust/lance/src/io/exec/fts/match_query.rs:400-418 | rust/lance/src/io/exec/fts/phrase.rs:327-344 \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":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61bb35eabaf29ac7be38bb62872dc153f04e36d5e5c78ac1187e1638d51caf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-index/src/scalar/inverted/builder.rs:2845-2868 | rust/lance-table/src/format/index.rs:876-895 \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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc106e13ecdad4e73267adfabcd616028b5053d6aee148d18b50c6aa43dd1c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:2570-2598 | rust/lance-index/src/scalar/inverted/compound.rs:2850-2871 \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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":2570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e8b24481a4af87a5fe9f589024a525e773a69fd0c0266299ab35e5897d708d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): python/src/dataset/merge_insert.rs:215-233 | python/src/dataset/merge_insert.rs:299-313 | python/src/dataset/merge_insert.rs:319-340 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"31af66d2cf536513efa869d6683102a817a641412b79484aa2e4bd9f92d56ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-namespace-impls/src/rest.rs:970-984 | rust/lance-namespace-impls/src/rest.rs:992-1006 \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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de45bb35517f6f6549f9f07fabfed25fc2f6c55c0e2ff69efbcc18fc07c5e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/lance/src/dataset/scanner/fts.rs:333-366 | rust/lance/src/dataset/scanner/fts.rs:375-402 \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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3732668c57906eb3beba783a0a7bf11438cac6d8a0bd1f21174f89365e618628"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): java/src/main/java/org/lance/memwal/ShardingEvaluator.java:51-69 | java/src/main/java/org/lance/memwal/ShardingEvaluator.java:81-99 \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":"java/src/main/java/org/lance/memwal/ShardingEvaluator.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"699ac9de80b27fa0b069ad2f92cba754d7f11d33bbc25f7579216564ee039e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:995-1013 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1019-1037 \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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a860bffda2ebe1c11ee3140660b2c1dca923ba464b8d930c684f8f3a01a8fbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-namespace-impls/src/dir/index_params.rs:255-284 | rust/lance-namespace-impls/src/dir/manifest.rs:3120-3150 \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":"rust/lance-namespace-impls/src/dir/index_params.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4707eb364a56e1d014d2c4779ae84b135be8b9fbbce5f3835fd9a69bca025e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): rust/lance/src/dataset/builder.rs:322-345 | rust/lance/src/dataset/builder.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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"226b68345e7057c6a30c3e3448196e8a7bb22d38fddf1c7694c3e48369adbd06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance/src/index/scalar/inverted.rs:475-494 | rust/lance/src/index/scalar/inverted.rs:496-515 \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":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfe67257b7bddbd1d3a6eba5e4c8925717c718b2a948d2f657c312ed3c48f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-core/src/memory/components.rs:110-133 | rust/lance-core/src/memory/observer.rs:365-388 \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":"rust/lance-core/src/memory/components.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"547782efd7d13c83624b779a1a6509431d6ba9951482554eb4818c063e91c706"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance/src/datafusion/dataframe.rs:58-81 | rust/lance/src/dataset/udtf.rs:38-58 \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":"rust/lance/src/datafusion/dataframe.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f90367c80506f5b2325763c6e929d0270f69dc0c362821517db9ff717209f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:1175-1190 | rust/lance-index/src/scalar/fmindex.rs:1192-1207 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a2fcab8aca5c9fb3624e53e3acf4e025a8d421a440b908a7bfb29eeba634b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-namespace-impls/src/credentials/azure.rs:786-825 | rust/lance-namespace-impls/src/credentials/gcp.rs:850-879 \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":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"c151176fe805f1d162aec18136328f754ea04033491bd2c7580d06d1a8a8a30a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:68-88 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:308-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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fe24ad868ae9cf52501ccaccf64282481d366851c2896cef2e549a80b0dab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): python/python/lance/dataset.py:2887-2998 | python/python/lance/dataset.py:3109-3181 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":2887}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9943a8b2e2820bf9133c5529633d6d8676fc727de7e3738e88541b167ae9850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-file/src/versions/v1/encoding/binary.rs:417-428 | rust/lance-file/src/versions/v1/encoding/plain.rs:428-439 \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":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e5967d6253ea36c8b4430e4538df26b05cf6e3ec2d2a69aa7b45a756ab320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-core/src/datatypes/schema.rs:682-702 | rust/lance/src/dataset/schema_evolution.rs:1572-1590 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad741e57c210f6e664c009973cf0dbd61739f8f177c0abb361828314933c262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance-index/src/vector/hnsw/builder.rs:422-456 | rust/lance-index/src/vector/hnsw/builder.rs:605-634 \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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa75b9955a9b8c836bb6f94dbdeadb3a8f0988b6655b3876ec530dc435afd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:247-264 | rust/lance/src/dataset/write/merge_insert/exec/in_place.rs:425-445 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1166-1189 \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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"53924e4db021b3113e88c0d2d452fc0fd3498f8e60df6d693be239a4d45c8f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance/src/index/vector.rs:2560-2575 | rust/lance/src/index/vector/ivf/v2.rs:2847-2860 \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8685ea4941aee14945adc03dacf510cff9588c1e9b794c00004732c598c50175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-encoding/src/repdef.rs:2538-2553 | rust/lance-encoding/src/repdef.rs:2557-2574 \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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed48a7b2451a114c41c6a49c5ad7dfd5830d07fa604df5605f75c68c95f43371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-jsonb/src/extension.rs:106-124 | rust/lance-jsonb/src/extension.rs:128-153 \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":"rust/lance-jsonb/src/extension.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f3c7b469a4c6440d66a1fea410883983a33871ef992627e684c902f2149a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-index/src/scalar/inverted/wand/posting.rs:1218-1238 | rust/lance-index/src/scalar/inverted/wand/posting.rs:1247-1268 \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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"64afeaaec6ae79f578cf79c049715504c75c198e14c0934e005b4f4a11e868c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): rust/lance-file/src/versions/v2_2/compression.rs:113-134 | rust/lance-file/src/versions/v2_3/compression.rs:105-131 | rust/lance-file/src/versions/v2_3/compression.rs:137-161 \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":"rust/lance-file/src/versions/v2_2/compression.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8359e26f34b3034c65059675aab0adbd0b149263f0e1e0975040e2d8e476674b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:1210-1226 | rust/lance-index/src/scalar/fmindex.rs:1228-1244 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"190e5428be444af9dab629b4caeeb94b5eb6877ffa64478124f59d5903e113f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance/src/dataset.rs:3976-4008 | rust/lance/src/dataset.rs:4030-4053 \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":"rust/lance/src/dataset.rs"},"region":{"startLine":3976}}}],"partialFingerprints":{"codehealthFindingId/v1":"da849b7437cdcb60e40f05323de0344ce163f4cddd28ed8ec3fd4d7c18a8215d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-datagen/src/generator.rs:2862-2879 | rust/lance-datagen/src/generator.rs:2961-2978 \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"856f879a433811d237fd6b6f64e259c84f3f3911469efcb6846a9b2a8cbd7866"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-jsonb/src/functions/scalar.rs:502-526 | rust/lance-jsonb/src/functions/scalar.rs:593-616 \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":"rust/lance-jsonb/src/functions/scalar.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd81b546a2e56fb8397b67d542e7573fa8cc97f2620a438f79e0492f95f9aecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-core/src/utils/row_addr_remap.rs:576-595 | rust/lance-core/src/utils/row_addr_remap.rs:597-616 \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":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c5cb1b5baea4260dfc05322062216d4d15588b5b542795f522945799e78f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:1274-1290 | rust/lance-index/src/scalar/fmindex.rs:1292-1308 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef382aa483229f0fd7e030dfd5e2fbf519b4011617774bcdc92bcbe053b1c11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): java/src/main/java/org/lance/ipc/FullTextQuery.java:382-393 | java/src/main/java/org/lance/ipc/FullTextQuery.java:475-489 \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":"java/src/main/java/org/lance/ipc/FullTextQuery.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb06d52a33f3a5d1647b61ab067f71a5017671f07b6e4db0915527236fe9e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): python/src/dataset.rs:802-815 | python/src/dataset.rs:3440-3448 \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":"python/src/dataset.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"394a7e78403d222a6bf378dbeb6bb3ba598bdb886621132b78c01cd3e02d2b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-encoding/src/data.rs:1883-1896 | rust/lance-encoding/src/data.rs:1917-1930 \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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7685cce45843195a35f378b4764a54ef11d4b8b3f11994418f1d3c7fb37cbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs:43-72 | rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs:74-100 \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":"rust/lance-index/src/scalar/inverted/index/posting_prewarm.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aed37c58364ae8e48abbe0766b4617eb4122792bc7820baa6821937ba0f459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-index/src/scalar/json.rs:1239-1257 | rust/lance-index/src/scalar/list_element.rs:626-644 \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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ff13ef6af547789048c08629851e5c614be7e33cb0670da37e256a5ccb5d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/norm_l2.rs:275-275 | rust/lance-linalg/src/distance/norm_l2.rs:353-353 | rust/lance-linalg/src/distance/norm_l2.rs:374-374 | rust/lance-linalg/src/distance/norm_l2.rs:396-396 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/norm_l2.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"225532a9ea32e244620949aff87cd294ce0d98ff102b29b805f47a9b4433f1e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance/src/index/vector/ivf.rs:5257-5273 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:631-652 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5257}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fd74b700c46c993a9e69e3cad1c82530ebf42bdc02328979a7a8c83877bc25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): java/lance-jni/src/blocking_dataset/maintenance.rs:568-597 | java/lance-jni/src/blocking_dataset/maintenance.rs:602-626 \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":"java/lance-jni/src/blocking_dataset/maintenance.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d0dd627ca034612c142bd03dbdfaed7d8acca988e5cf45de36a1fff98da1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): java/lance-jni/src/blocking_dataset/read.rs:599-628 | java/lance-jni/src/blocking_dataset/read.rs:903-931 \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":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a352d7d6cfb72e68011a90f414149cf9bbe02e12d796dd8f31153ce36451f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/lance-jni/src/mem_wal.rs:170-182 | java/lance-jni/src/mem_wal.rs:193-205 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca561b8281b861d4124c912a6ee0f6f31f128ed0b3b9baabccbaf8801786bfc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): python/src/dataset.rs:3482-3494 | python/src/dataset.rs:3510-3522 | python/src/dataset.rs:3529-3543 \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":"python/src/dataset.rs"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95da1aebfddf1576d985b2d22e084392e69dbef75e5f1a33b37f1c57aa0d171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-file/src/reader.rs:1385-1409 | rust/lance-file/src/reader.rs:1825-1848 \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"9778226c3baef66d54ade752185ccfd356bb2e61044333775455d44d4403813b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-namespace-impls/src/rest.rs:1242-1263 | rust/lance-namespace-impls/src/rest.rs:1464-1480 \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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"72038af5d1a853a545c7fec35bac268dcc3340321a8fff0dc9d0f11733754e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-encoding/src/encodings/physical/general.rs:371-386 | rust/lance-encoding/src/encodings/physical/general.rs:393-407 \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":"rust/lance-encoding/src/encodings/physical/general.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ecdc3114bfa62134a5d4b488ced0d8b60ad08e949eccba9030ba5d159caf0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance/src/dataset/blob/external.rs:291-315 | rust/lance/src/dataset/blob/write.rs:841-863 \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":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6139658de53b9de5d805975f56d750194bdbd2449d1090bd57c627544a4e457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): java/src/main/java/org/lance/compaction/Compaction.java:32-57 | java/src/main/java/org/lance/compaction/Compaction.java:60-81 \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":"java/src/main/java/org/lance/compaction/Compaction.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fc309917d4795d0551054a7b4c45b21d16a89599429274b53efaa70e2057b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:312-329 | rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:197-216 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a86f224c55ccc37b9bef6f775ea6c5839fd9fec6d2a3b85c1b5aebb4e300e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index-core/src/scalar.rs:287-298 | rust/lance-index/src/scalar/lance_format.rs:238-255 \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":"rust/lance-index-core/src/scalar.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34a4c86dbb71a75de74475a110cfcef3b6b4279d19b11debf6b5ed66bc86c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:2237-2261 | rust/lance-linalg/src/simd/dist_table.rs:2394-2410 \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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f12078fadae0b9b211144053c1f43a4f3ee887d80ad47a6be15ded68d94df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-namespace-impls/src/dir/manifest.rs:155-174 | rust/lance-namespace-impls/src/dir/manifest.rs:193-212 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbecd0a7534083a546bd84adefd357a98f711fc50d42a801084a3a85b5d1677c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/index/scalar/btree.rs:28-43 | rust/lance/src/index/scalar/inverted.rs:886-908 \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":"rust/lance/src/index/scalar/btree.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"339bc28800bef1a73b28a79976b68a2a34c62b8aaad2edec1da91b98ecbfff13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): python/src/lib.rs:151-171 | rust/lance-core/src/utils/tokio.rs:98-121 \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":"python/src/lib.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"544239a0c1d72cfbc50a12bc3f6bb102eb0d520f34ac020c4a7e40121fd10082"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-file/src/versions/v2_1/compression.rs:90-113 | rust/lance-file/src/versions/v2_2/compression.rs:82-107 \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":"rust/lance-file/src/versions/v2_1/compression.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ee948272808af877e443487338ec2600b9f4c6275f3fc45e4754dcdf2a5660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-index/src/vector/pq/distance.rs:35-53 | rust/lance-index/src/vector/pq/distance.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":"rust/lance-index/src/vector/pq/distance.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9683bcc71435582968b7dff69ffa212785ec50bae9ac1606c24255b70d8e004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance/src/io/exec/count_from_mask.rs:453-472 | rust/lance/src/io/exec/scalar_index.rs:451-470 \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":"rust/lance/src/io/exec/count_from_mask.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9fa97f00b1d94652c509a46242cbeab90f8ad24f0643ec5c76268635a0cbcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): java/src/main/java/org/lance/operation/UpdateConfig.java:181-192 | java/src/main/java/org/lance/operation/UpdateConfig.java:218-229 \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":"java/src/main/java/org/lance/operation/UpdateConfig.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d991ec80480a4bcd1aa3f46a96488fd99cce01039bdc69a28f54b30f62f8d346"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-core/src/datatypes/schema.rs:1628-1647 | rust/lance-core/src/datatypes/schema.rs:1737-1754 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d583bfea6ae3c8a964748aa779afe697a41485d127e4ddb1bff11f68943b6936"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance-file/src/reader.rs:1488-1518 | rust/lance-file/src/reader.rs:1532-1564 \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b813e92a513f91ab5c61aa61764642e2578cf33b42bf87a84d7ec0c3596192"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-jsonb/src/jsonpath/parser.rs:504-522 | rust/lance-jsonb/src/jsonpath/parser.rs:524-542 \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":"rust/lance-jsonb/src/jsonpath/parser.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2526cb5a3d4044a03f99b4a3cdb9cec1569ead7f533262b8d7ac5b610695b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): rust/lance/src/index/scalar.rs:873-903 | rust/lance/src/index/scalar/label_list.rs:34-67 \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":"rust/lance/src/index/scalar.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"1287678d79f12bdd928338bf365f7aa3cf74d83d7696aad3600291b8e2a6aa6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance/src/io/exec/fts/flat_match.rs:557-578 | rust/lance/src/io/exec/minhash.rs:516-534 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"e133a04e91b831127869c7b939a1a58dc8112b52d788ae603ec8d493bf066d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:183-194 | rust/lance-index/src/vector/bq/ex_dot.rs:198-211 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c535f1e9b6a5505871e8143440fd24fe277648092f8227059565e7e8e7058e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs:384-398 | rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs:401-415 \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":"rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e970d0d3cd341f0f03c965f4a1f721cf1024f184582a3216a76304133db0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance/src/dataset/mem_wal/index/btree.rs:405-428 | rust/lance/src/dataset/mem_wal/index/btree.rs:619-642 \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":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29057f2d3651cdb81d54ac82abed2c12fd0a910312f9dc1b18011c82a7438f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1463-1482 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:106-124 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6ffd68f6243abb9c7f1f11a245548c03008b6312c66de14cc71f6a5bae9592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance/src/io/exec/fts/compound.rs:271-287 | rust/lance/src/io/exec/fts/compound.rs:1611-1625 \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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48b2334e122d4658a7321aa907b093957c2e6c5594979a48767ff9440a76d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): java/src/main/java/org/lance/WriteDatasetBuilder.java:550-570 | java/src/main/java/org/lance/WriteDatasetBuilder.java:577-612 \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":"java/src/main/java/org/lance/WriteDatasetBuilder.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"97de26585918f0b154a1a1e68fdade4cabed49171633250ee10256e44ff11d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-index/src/scalar/ngram/ngram_regex.rs:73-90 | rust/lance-index/src/scalar/ngram/ngram_regex.rs:94-111 \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":"rust/lance-index/src/scalar/ngram/ngram_regex.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e269e88f2c1f3bd08fa2328bfbf5758e1d51c2bce621b684b2132e83f4cf38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-io/src/object_store/throttle.rs:1366-1381 | rust/lance-io/src/object_store/throttle.rs:1387-1403 \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":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5655d32ad7de01b67b359260f549cb35f3f521d6226f284ebee472a7623f806d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:700-720 | rust/lance-linalg/src/simd/f32.rs:723-747 | rust/lance-linalg/src/simd/f64.rs:545-565 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cb3d3e349b4b51f70ea15e9cf4f1b802b4c847580fbecff833b7ec2cc14805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:167-183 | rust/lance/src/io/exec/filtered_read.rs:1292-1318 \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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"deab59ed2087ef3eb298995a8b0638490cab5959b7e759070c5e75b031691ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-index/src/scalar/inverted/encoding.rs:527-547 | rust/lance-index/src/scalar/inverted/impact.rs:582-607 \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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"86748172dd7e282611b00316f6ffd390b92d0cf75921b07e9c2f2737caeba21d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-table/src/format/clustering.rs:343-358 | rust/lance-table/src/format/clustering.rs:383-398 \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":"rust/lance-table/src/format/clustering.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0e7e88fd900af830a183fd2b09e5532560040bea32687403d7fd4ed65728a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/dataset.rs:3038-3053 | rust/lance/src/dataset.rs:3230-3250 \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":"rust/lance/src/dataset.rs"},"region":{"startLine":3038}}}],"partialFingerprints":{"codehealthFindingId/v1":"f046506b1021d101c7a837f41ed61ef981e3fddeb93f0dbb30dd0fac293cbd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): python/src/file.rs:338-364 | python/src/file.rs:505-521 | python/src/file.rs:1002-1018 \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":"python/src/file.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"88148ac2cd5be6efb7ac71d5bd52ba5106c4e33a9366bf65fd10e66ac84aed52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-geo/src/rtree.rs:796-808 | rust/lance-index/src/scalar/btree.rs:2885-2897 \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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"986f27d437201b3857e9acd1a75b743232e2d5e3e91002fa7982f92318a619da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-index/src/vector/pq/distance.rs:59-74 | rust/lance-index/src/vector/pq/distance.rs:134-150 \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":"rust/lance-index/src/vector/pq/distance.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f3c5b2d3f717194b9aa1c8c2a5e3fd3687b825e3203b9e92c32fbd5575e364"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-namespace-impls/src/dir/builder.rs:83-115 | rust/lance-namespace-impls/src/rest.rs:203-219 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/builder.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b51e0268691cebf1b9cea6cfc6e3f7e5642c101d52d489dbd65795c76b896f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:73-88 | rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:105-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":"rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05d163e71b5a9fcf049f55a70197c01ce866e4ab0b56cd760ed3054f5b2c301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): protos/codegen/src/main.rs:87-107 | protos/codegen/src/main.rs:223-246 \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":"protos/codegen/src/main.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaf552711c220b9dca47e0bd8b5a58ab257a8e5f53ae0aaf240e532fd6c79cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): rust/lance-file/src/versions/v1/writer/mod.rs:413-424 | rust/lance-file/src/versions/v1/writer/mod.rs:433-441 | rust/lance-file/src/versions/v1/writer/mod.rs:450-460 \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":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c489b15c324a314ee19606f299108ecdd9281945950eced43f7ba12bef425c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:709-724 | rust/lance-index/src/vector/bq/ex_dot.rs:1475-1490 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"679bd83c2b18b2cc675cf802c4146717c71b7bff2b7735cd4ff344a1e4cb8b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): rust/lance-table/src/rowids/encoded_array.rs:89-107 | rust/lance-table/src/rowids/encoded_array.rs:109-127 | rust/lance-table/src/rowids/encoded_array.rs:129-147 \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":"rust/lance-table/src/rowids/encoded_array.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6de9636029b3471268034fb900c852598b5f3bf67a525473dae442fc2d08ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/dataset/refs.rs:208-220 | rust/lance/src/dataset/refs.rs:639-651 \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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd2bd7745028d4d6985100e373ac47bcd27803735d510451bfdcf0815f1ba81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): rust/lance/src/io/exec/fts/flat_match.rs:156-177 | rust/lance/src/io/exec/fts/flat_match.rs:698-719 | rust/lance/src/io/exec/fts/match_query.rs:122-143 | rust/lance/src/io/exec/fts/phrase.rs:105-126 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae84738684de9d6fabd159948126533cdcf33f99263c1227722d9cd6c76555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): java/src/main/java/org/lance/Dataset.java:876-891 | java/src/main/java/org/lance/Dataset.java:903-920 | java/src/main/java/org/lance/Dataset.java:985-1003 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de24281979e318f70b033adae02fb15c4657480ccdc18f24b5726b07d7f5907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): python/src/dataset.rs:2263-2276 | python/src/dataset.rs:2278-2287 \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":"python/src/dataset.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a518cab4c25ce68601dc6fd0a2ecb4834a10dc9002a56c252ff15f40123f978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): rust/lance-datafusion-exec/src/udf/json.rs:148-168 | rust/lance-datafusion-exec/src/udf/json.rs:175-195 | rust/lance-datafusion-exec/src/udf/json.rs:202-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ca3bfa31b9ed4f685610d3c358fe9f03d59b4062a8d6194976556789da44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 25\u002B corresponding lines): rust/lance/src/io/exec/fts/flat_match.rs:750-774 | rust/lance/src/io/exec/fts/flat_match.rs:809-833 | rust/lance/src/io/exec/fts/match_query.rs:180-206 | rust/lance/src/io/exec/fts/match_query.rs:245-271 | rust/lance/src/io/exec/fts/match_query.rs:313-339 | rust/lance/src/io/exec/fts/phrase.rs:154-180 | rust/lance/src/io/exec/fts/phrase.rs:210-236 | rust/lance/src/io/exec/fts/phrase.rs:278-304 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"50eca49df715c6001f554c09385ddab9881ced81fd7ddaddfc267ec9aa33d6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/src/main/java/org/lance/Dataset.java:1857-1869 | java/src/main/java/org/lance/Dataset.java:1883-1896 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a2fb05e998ae5bf815f39905fd2083f2138ac4c149fda989c4be0ec8911172"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:857-877 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:947-967 \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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a6e06e8f1d60fc27b0b872973502f87b96b728150a2da577df72ae9aa424a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/lance-jni/src/namespace.rs:107-119 | java/lance-jni/src/utils.rs:612-627 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8fe778d14f5d61a78f1c747549722b1cfe11de9783b4071f846a4bd6dcb03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/compression/fsst/src/fsst.rs:284-295 | rust/compression/fsst/src/fsst.rs:299-310 \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":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7200b81d2f46e192997b0a036f06f8e8d33b275180bf2881aac3c6ef89cd7091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-arrow/src/schema.rs:146-157 | rust/lance-arrow/src/schema.rs:163-174 \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":"rust/lance-arrow/src/schema.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9868f2c871c55b424eadfbdd72b55758d913ed55a01c0f989c30e555415b69de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): rust/lance-core/src/cache/telemetry.rs:428-437 | rust/lance-core/src/cache/telemetry.rs:528-540 | rust/lance-core/src/cache/telemetry.rs:548-557 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"116e5130974c2f132b18f33d8eb1fe085e1eae05288011c87867cc005a8b8698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:131-145 | rust/lance-file/src/writer/structural.rs:114-129 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"853329631a0145ed4fd1d2386d686ec72960d520746de27e0ac3fc68a56fa309"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-index/src/vector/flat/storage.rs:584-606 | rust/lance-index/src/vector/flat/storage.rs:613-635 \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f31f15d79b300a378c6b5ec902b9d89ef29a3cd83f3c35ec0a3d18a351f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): rust/lance-select/src/mask.rs:251-258 | rust/lance-select/src/mask.rs:436-443 | rust/lance-select/src/mask.rs:449-456 \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":"rust/lance-select/src/mask.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25ff2a6341af20135b3f2bb549ba1a94ffae6e5b8154d9d6c821c39fe4c270f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): rust/lance/src/dataset/scanner/fts.rs:211-236 | rust/lance/src/io/exec/fts/matches.rs:173-192 | rust/lance/src/io/exec/fts/matches.rs:248-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 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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9ad991b57003be69ce69cc263dfa1263b996a94cf16ba9e093dee1f717a2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/dataset/update_join.rs:1111-1126 | rust/lance/src/dataset/update_join.rs:1132-1142 \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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1c33c092c6ba4b3d5af2e7a010e2e540555d69741b78373fa8e2966685d715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:277-297 | java/src/main/java/org/lance/namespace/RestNamespace.java:191-211 \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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8f8ee6129acf834a468257e0d942afa6fb29cdcdb742e156143525a28d3d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): java/lance-jni/src/blocking_dataset/refs.rs:210-225 | java/lance-jni/src/blocking_dataset/refs.rs:507-523 \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":"java/lance-jni/src/blocking_dataset/refs.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c874f76180a8e6d04a48462347e46f5af64a92baff6dd92eca2a66823ade18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:406-428 | rust/lance-file/src/writer/structural.rs:582-600 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e8ff64e6e7b5089ad615139e1a39088e3504e782fae4c3c6ea377220605092"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:1022-1030 | rust/lance-index/src/vector/bq/ex_dot.rs:1630-1638 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffa603120b3390885571be7ed53787a2909de6e5d3475e8f1facc957d2b265d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:732-754 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:503-521 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"e473bbaf49170e8b676c42f1442a208ade28348e59ac25d4a1e9b472a81b4f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): java/lance-jni/src/namespace.rs:3521-3530 | java/lance-jni/src/namespace.rs:3566-3576 | java/lance-jni/src/namespace.rs:3650-3659 | java/lance-jni/src/namespace.rs:3695-3705 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3521}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1c822a1205dcf1da68d7a82e1e7d8dd50e863c904761e3695715c4aa7a74be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): python/src/executor.rs:61-75 | python/src/executor.rs:162-178 \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":"python/src/executor.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce9e5c9c8d97683b0ea9596d677eafe4b1d4b7b53ecacd324bfafcbb049bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:274-290 | rust/lance-encoding/src/encodings/physical/alp.rs:292-308 \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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f938d8939c87e3c821f936ebe55988f0f1a8295b1498c81fc0b7a8b52b73740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): rust/lance/src/index/vector/ivf/partition_serde.rs:298-317 | rust/lance/src/index/vector/ivf/partition_serde.rs:342-361 | rust/lance/src/index/vector/ivf/partition_serde.rs:390-408 \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":"rust/lance/src/index/vector/ivf/partition_serde.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d26c19ac5e72bf61de1cd3d8144d57f82b9198549f4ae646d24b2a036dd32e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance/src/index/vector/ivf/v2/partition_search.rs:138-156 | rust/lance/src/io/exec/knn/warp.rs:538-552 \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":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"254dde1a2968fa8de28dafe8f63c92bc2418b13f20309375d110baeefa45fa72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-arrow/src/memory.rs:31-51 | rust/lance-core/src/deepsize.rs:246-263 \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":"rust/lance-arrow/src/memory.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcbc367b3534891728d1151bb0850464a98457e7fc7e352bfb960b284da5073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-index/src/vector/pq.rs:634-651 | rust/lance-index/src/vector/sq.rs:169-193 \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":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b0f51091dfb9d9360bf237ad2ba34d8b170b12ddacd3c61de5696cd81432c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/lance/src/index/vector/ivf.rs:2409-2440 | rust/lance/src/index/vector/ivf.rs:2452-2481 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2409}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc20788569024fc4fa2cbd7a29b6fb0fe3fd7c7a7bd6dcf34d616adeacbb3b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 29\u002B corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:430-458 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:466-494 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:523-551 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:559-587 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:491-519 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:527-555 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:584-612 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:620-648 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"880afea270f01ef984d00cf39dfab626467e49527202aeda184bfaf3574861cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-core/src/cache/telemetry.rs:492-503 | rust/lance-core/src/cache/telemetry.rs:505-518 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f368345ed2a6e827706805c90a103a811eb523539bd240f500f7bb0211c36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-core/src/cache/telemetry.rs:762-777 | rust/lance-core/src/cache/telemetry.rs:785-797 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e11ba6ff6454adf472af9c61f8caebd633fedaa8c9b207fddab145251c516eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-index/src/scalar/btree.rs:1032-1044 | rust/lance-index/src/scalar/btree.rs:1054-1066 \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe31097edc8e8b62ff1e2a46bd3bbbc7e00f8385a762811a600157bfb5d105dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/inverted.rs:673-684 | rust/lance-index/src/scalar/inverted.rs:697-709 \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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5441c96e626d34ad05ed4599a9bdc199d038460a21fbce779811ec229f7dba58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): rust/lance-index/src/vector/pq.rs:679-698 | rust/lance-index/src/vector/pq/storage.rs:579-606 | rust/lance-index/src/vector/pq/storage.rs:613-636 \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":"rust/lance-index/src/vector/pq.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"333f31cb741f9ba224bd1c79d7b9c1c7b5ff23889f3281223c2e2bdee2a47d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/dataset/mem_wal/index/btree.rs:430-445 | rust/lance/src/dataset/mem_wal/index/btree.rs:644-662 \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":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c203dbc0d1cc351827dec39d9ef6e4f8ac8495610845589072aafb0d07e73a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/dataset/write/merge_insert/exec/in_place.rs:83-96 | rust/lance/src/dataset/write/merge_insert/logical_plan.rs:82-94 \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":"rust/lance/src/dataset/write/merge_insert/exec/in_place.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0e8a0349e5cf3a8892d7e7ce370331758d40f329c4e9476f6510ad50c7a8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): python/src/dataset/blob.rs:81-94 | python/src/dataset/blob.rs:109-123 \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":"python/src/dataset/blob.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"285eeddf254f09b6a298304403dacff3d7495ca8be9cedb0c33b0d3a596fecdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-encoding/src/encodings/physical/alp/restore.rs:150-164 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:173-183 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa8fb6393c98dd538df4afc6a58906c75e766662a71ebcf593fd290ae144b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-namespace-impls/src/rest_adapter.rs:1155-1166 | rust/lance-namespace-impls/src/rest_adapter.rs:1279-1290 \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":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dae161c5b572db3180e61050a1518b6a0ea877092295abceed2763e65fde93d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-encoding/src/repdef.rs:2605-2617 | rust/lance-encoding/src/repdef.rs:2621-2636 \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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2605}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed6c567c01040d45bd5c1d4232ce63ebad977efc74a8632f89990f1eec85695"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index/src/scalar/inverted/cross_column.rs:215-227 | rust/lance-index/src/scalar/inverted/wand/doc_source.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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ab1110a491af201ec29759d09e8bfc7575fe49d4d176141e37a36662cf48f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/lance-jsonb/src/number.rs:710-732 | rust/lance-jsonb/src/number.rs:734-756 \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":"rust/lance-jsonb/src/number.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"15caf2c6a17a186a9025f726d887c06aea2c9a1e1798614a91b7959d48ff13e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-table/src/rowids/encoded_array.rs:37-47 | rust/lance-table/src/rowids/encoded_array.rs:243-253 \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":"rust/lance-table/src/rowids/encoded_array.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f6bf886e83efffd489891d4aa7584bcd6831b7c48e521a66d7e648678e3701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): java/src/main/java/org/lance/index/vector/VectorTrainer.java:62-71 | java/src/main/java/org/lance/index/vector/VectorTrainer.java: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":"java/src/main/java/org/lance/index/vector/VectorTrainer.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8353529156f6bf7f802bd6a56661bf551a617658269af1e4bd3361e354350765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): python/python/lance/_dataset/merge_insert.py:154-187 | python/python/lance/_dataset/merge_insert.py:523-622 \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":"python/python/lance/_dataset/merge_insert.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73c7a0da845310753b811b9e3d76eb1068c81575106466b8261232e3d492658"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): java/lance-jni/src/blocking_dataset/index.rs:48-71 | java/lance-jni/src/blocking_dataset/index.rs:689-708 \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":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bd910b1811febb5bd2178e23883caa23ad00d59e992168552b521290fd2500"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): python/src/scanner.rs:217-228 | python/src/transaction.rs:1364-1375 | python/src/transaction.rs:1408-1418 \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":"python/src/scanner.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"147d3fc1a850a744e0a4910fc999c461fb560700978eb042d53dd6afd309dafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-encoding/src/encoder/structural.rs:175-190 | rust/lance-encoding/src/encoder/structural.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":"rust/lance-encoding/src/encoder/structural.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b8bfbddbf96bcc458c2283a64f0d5e87b15e17bf322e6f9c5ad2ce0f5e6d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-encoding/src/encodings/logical/blob.rs:47-71 | rust/lance-encoding/src/encodings/logical/blob.rs:238-252 \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":"rust/lance-encoding/src/encodings/logical/blob.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5308e01d9fc44f1cf89cfe8a3365cd858820d6d51e3327d6d2144217bc13c9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:375-396 | rust/lance-file/src/writer/structural.rs:545-565 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2284805510e988d6be4fd5700a8a2d512bed1faa3fb6028ddd4f0f479d285ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): rust/lance-file/src/versions/v2_1/writer.rs:78-86 | rust/lance-file/src/versions/v2_2/writer.rs:78-86 | rust/lance-file/src/versions/v2_3/writer.rs:78-86 \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":"rust/lance-file/src/versions/v2_1/writer.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"051b0a10c60be706406a314bc6d9722ba97a46e6c630e8f1301c822e0081dcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-io/src/object_store.rs:2263-2277 | rust/lance-io/src/object_store.rs:2282-2297 \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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"415e680096b53eb1bc0bccbcda015e3b879aff4a7c44021a7c4a18c40ee290b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): rust/lance-io/src/object_store/providers/azure.rs:46-92 | rust/lance-io/src/object_store/providers/oss.rs:69-96 | rust/lance-io/src/object_store/providers/tos.rs:75-102 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4decfdf2f83810361dcc9f36f827b5a90ec14163d34aa5eead00b6e54280a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 18\u002B corresponding lines): rust/lance-linalg/src/simd/u8.rs:110-127 | rust/lance-linalg/src/simd/u8.rs:162-179 | rust/lance-linalg/src/simd/u8.rs:246-263 | rust/lance-linalg/src/simd/u8.rs:271-288 | rust/lance-linalg/src/simd/u8.rs:296-313 | rust/lance-linalg/src/simd/u8.rs:379-396 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/u8.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f22a877243d1335b8e1ae34fea2566c900be1980820e8c9e0cbb00ae59cbf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): rust/lance/src/dataset/mem_wal/write/writer.rs:750-775 | rust/lance/src/dataset/mem_wal/write/writer.rs:1906-1934 \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":"rust/lance/src/dataset/mem_wal/write/writer.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a3726c85db9a5d54782909e898037de883df8beefc77fb7ce6ac14bbd2a563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance/src/index/vector/ivf/v2.rs:1029-1043 | rust/lance/src/index/vector/ivf/v2.rs:1586-1600 \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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bf24db7acde481949f081991094b4ac65560aa0f42ea2a717e97bc419e4afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-arrow/src/json.rs:49-62 | rust/lance-arrow/src/json.rs:65-78 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2f2a41a3c47bcfef12a05872bcafa44eb52ac6410df14e5cf146dc93f31567"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-arrow/src/json.rs:167-185 | rust/lance-arrow/src/json.rs:277-293 \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":"rust/lance-arrow/src/json.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d5bdd627a9bfdf37a6448c0054cb601ac619e78719c93759fa609326aa6278"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-io/src/object_store/metrics.rs:565-581 | rust/lance/src/dataset/mem_wal/scanner/exec/generation_tag.rs:159-169 \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":"rust/lance-io/src/object_store/metrics.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"39413b086f643518f34957f18b494098a4e7b50d54ba980e16807d2487f251aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): rust/lance-namespace-impls/src/rest_adapter.rs:494-507 | rust/lance-namespace-impls/src/rest_adapter.rs:572-586 | rust/lance-namespace-impls/src/rest_adapter.rs:974-989 | rust/lance-namespace-impls/src/rest_adapter.rs:1382-1395 | rust/lance-namespace-impls/src/rest_adapter.rs:1496-1509 \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":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca24d6fa09454a549c0912e4477b49d1dfbbea41f51f22124c8525976b35bed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance-namespace-impls/src/rest_adapter.rs:917-927 | rust/lance-namespace-impls/src/rest_adapter.rs:1539-1549 | rust/lance-namespace-impls/src/rest_adapter.rs:1557-1567 \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":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdc70dc5aeff3f9008ad89302d23652268431def51c97fb4e8cb3f1d6a8bb8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): java/lance-jni/src/blocking_dataset/index.rs:440-463 | java/lance-jni/src/blocking_dataset/index.rs:494-519 \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":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c9665631acc499a9cd4df229afbcc55256fee61b1c47e833a2f4213035c4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): java/lance-jni/src/namespace.rs:3484-3493 | java/lance-jni/src/namespace.rs:3505-3514 | java/lance-jni/src/namespace.rs:3613-3622 | java/lance-jni/src/namespace.rs:3634-3643 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3484}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed9e606fca5fa4c0e8779a5d4b9c192be3596a4e505a901bb5818160917c1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): python/src/dataset.rs:1884-1896 | python/src/dataset.rs:2351-2360 | python/src/dataset.rs:3220-3232 \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":"python/src/dataset.rs"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23888961b766f6c74b1b830e1f20f8ed98ab2b7dbc09322ab896d14303f13e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): python/src/dataset/merge_insert.rs:377-389 | python/src/dataset/merge_insert.rs:391-404 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc807d8b6679bf929270342100094d2bf81fb54c659a24e612cefa87bbb7d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): python/src/namespace.rs:314-321 | python/src/namespace.rs:450-457 | python/src/namespace.rs:464-471 | python/src/namespace.rs:1061-1068 | python/src/namespace.rs:1197-1204 | python/src/namespace.rs:1211-1218 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"17903282545bae1bc19da46b527d8df064aae64b7a2c3cb3dda22765cc9b92d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): python/src/transaction.rs:222-235 | python/src/transaction.rs:414-427 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/transaction.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee5c131f0f95cdabb2627c3cc5390d370f3e9d10bc0ec2eaebd9b7565ca864a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-io/src/object_reader.rs:294-305 | rust/lance-io/src/object_reader.rs:307-327 \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":"rust/lance-io/src/object_reader.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f7e5183a57aca31dc8f2c0f6b90946f6223abec49eb2aaca126915ef71bfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-linalg/src/distance/dot.rs:148-157 | rust/lance-linalg/src/distance/l2.rs:1034-1043 \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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec267778edffd8382a5afabcdeed1d0ee3ece8af438e99634cd661add81d71b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-namespace-impls/src/credentials/azure.rs:684-703 | rust/lance-namespace-impls/src/credentials/gcp.rs:533-558 \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":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"694316d7574310cc605fb9f708c55620b954c9fe8d97deded9fa18448cef4a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): rust/lance-select/src/mask.rs:683-696 | rust/lance-select/src/mask.rs:1174-1194 | rust/lance-select/src/mask.rs:1230-1248 \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":"rust/lance-select/src/mask.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"602d8fffec6b28f3d9a1ea3ad6e67f8e51d8f52db365cff3b09659a62be46436"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/dataset/blob/locate.rs:459-469 | rust/lance/src/dataset/blob/locate.rs:482-492 \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":"rust/lance/src/dataset/blob/locate.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1693dcf8e893e0d1fb3361a94788b3aaca67cd58867eacab6f068847dc7c1047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): java/src/main/java/org/lance/Dataset.java:2119-2129 | java/src/main/java/org/lance/Dataset.java:2138-2150 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"430f365eac380a75c82daf188e8c43d52d5a0ee24236a96424a55972cbf442b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): java/src/main/java/org/lance/Tag.java:102-117 | java/src/main/java/org/lance/Transaction.java:118-131 | java/src/main/java/org/lance/operation/RewrittenIndex.java:91-105 \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":"java/src/main/java/org/lance/Tag.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2755bad903397a39fe38754304dd426489545e00e9294d48001f14f1787e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): rust/lance-encoding/src/encodings/physical/alp.rs:428-449 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:789-813 \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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"9970893efafb229c8c613d9fd440428256fb6cf8a6bb5aca30a3f2667a71b57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-index/src/scalar/ngram.rs:580-602 | rust/lance-index/src/scalar/ngram.rs:831-848 \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":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"66332f7ed9bedc1b61ce131f070d708f67029ef49a86d4308e052bb87af6ad3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance/src/dataset.rs:2688-2705 | rust/lance/src/dataset/write.rs:1669-1685 \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":"rust/lance/src/dataset.rs"},"region":{"startLine":2688}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f72d764ddc39a25a9d142afdfa7e8173fdf3687a07802917a3088ea9eb65deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): java/lance-jni/src/delta.rs:161-170 | java/lance-jni/src/delta.rs:185-194 | java/lance-jni/src/delta.rs:212-221 \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":"java/lance-jni/src/delta.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6d729cf30aae1d5753e113cc884f69b688c97e333a1224f616ea47a10448ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): python/src/dataset.rs:2127-2141 | python/src/dataset.rs:2152-2166 \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":"python/src/dataset.rs"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd78072bc6f3da5883abfa584d5a8b1031137b4e4294313ca5c97c797583454"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-encoding/src/array_encoding/logical/struct.rs:301-315 | rust/lance-encoding/src/encodings/logical/struct.rs:215-231 \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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31831379f0e74f1855133f0e5efec3528f310f571121f68439712900d88b588"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-index/src/scalar/inverted/encoding.rs:1033-1048 | rust/lance-index/src/scalar/inverted/encoding.rs:1058-1076 \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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd546f341ebc85576ab6500699ac0bd74e1fce5e491b039c222dc3784d3bb4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance/src/index/provenance.rs:277-293 | rust/lance/src/index/provenance.rs:482-502 \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":"rust/lance/src/index/provenance.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f464ac4829de180cacff5256e2505c2f8611cbf487e3b9cb173b74e9eaecfc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/io/exec/utils.rs:697-705 | rust/lance/src/io/exec/utils.rs:725-733 \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":"rust/lance/src/io/exec/utils.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab0dbc8a0d7bed7f4a6bd8bf1cec38414e5efa385ee563da5b4b7c1e669386f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/lance-jni/src/blocking_blob.rs:180-188 | java/lance-jni/src/blocking_blob.rs:207-215 \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":"java/lance-jni/src/blocking_blob.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0fbfb9a0f3a83dfbf73c08d88d7cd33c7710129c028029921e9102d2eca366"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): java/lance-jni/src/transaction.rs:1698-1712 | rust/lance-core/src/datatypes/schema.rs:1124-1139 \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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eadcaced34b75a07fd046c8945a06ae79d4faa22e8ed8b4686ae921a10154a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-core/src/cache/telemetry.rs:805-815 | rust/lance-core/src/cache/telemetry.rs:823-831 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e86c4b724bd7d5147bdc99c2e078e1fe4b85d60119c76a2cf73a3d928c64f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-namespace-impls/src/rest_adapter.rs:1200-1213 | rust/lance-namespace-impls/src/rest_adapter.rs:1334-1353 \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":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"186767c6bd8472cd33b8653c590c7eae0c2dcebf4b3ebed3f1813d779c2abade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:357-371 | rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:532-544 \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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1ef8c8cda00c9222cd978d23fe279bb812eb1e5c1dd706995c0e7a18a2186a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): java/src/main/java/org/lance/index/scalar/BTreeIndexParams.java:79-94 | java/src/main/java/org/lance/index/scalar/MinHashLshIndexParams.java:160-177 \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":"java/src/main/java/org/lance/index/scalar/BTreeIndexParams.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c7266266dfb2402097e0bcbc59481f32f9d9c428adc70902892c9cac98c0c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): python/src/namespace.rs:1456-1467 | python/src/namespace.rs:1473-1483 \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":"python/src/namespace.rs"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1babd106315722f2822cd29d34536ca827de130ea550bbf0d975247b87704a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/encoding.rs:297-306 | rust/lance-index/src/scalar/inverted/encoding.rs:318-326 \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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"976f07b0913e9f944ee93f28960288dd3ee65fb10af1b4099f83454c38524b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-index/src/vector/graph.rs:746-766 | rust/lance-index/src/vector/graph.rs:775-795 \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":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc9a52101517e84e9195aac91138646033408cc22c2507daa42841a66fc44d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:4021-4031 | rust/lance/src/dataset/mem_wal/index/fts.rs:4082-4097 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1e8f18c49b2e084f006f8a18505ff868a6b8ad8ef72aa12c1bd86a3a4f7850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance/src/session.rs:190-211 | rust/lance/src/session.rs:221-241 \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":"rust/lance/src/session.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e91bfcf8a5c9661ad4b62d1af698f994acb50290f9c5d19a4b6ca74ee1e6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): java/lance-jni/src/schema.rs:255-277 | java/lance-jni/src/schema.rs:283-308 | java/lance-jni/src/schema.rs:313-335 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/schema.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"207fd0eeece2186126a6381184a790a961c3044220ebb4dfa29ea5cfcb3696b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): python/src/dataset/write.rs:398-413 | python/src/dataset/write.rs:415-430 \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":"python/src/dataset/write.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8acbd51fe57d1a7c1f0ddd77022a76df68d62c3e30d3cecf0c9ef9c7840aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:181-198 | rust/lance-linalg/src/simd/f32.rs:652-677 | rust/lance-linalg/src/simd/f64.rs:74-91 | rust/lance-linalg/src/simd/f64.rs:503-522 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7b6e4314ef82b7f512acd418278916a37318bf692867bd9f6024927279f002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance/src/index/prewarm.rs:25-44 | rust/lance/src/index/prewarm.rs:59-80 \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":"rust/lance/src/index/prewarm.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2ca0b5dd8e5efdadfc6bddbe0d0fdd6080245a9154114f6cb24e58ce866cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): python/src/dataset.rs:295-308 | python/src/fragment.rs:842-857 \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":"python/src/dataset.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"be685a48378a55e4f6ceb985789c5fdc7350343dad9b72d839002da0cc8a2dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): python/src/dataset.rs:3239-3254 | python/src/dataset.rs:3263-3278 | python/src/dataset.rs:3282-3295 \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":"python/src/dataset.rs"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fc464eacbf8ae12fb7ac46bae3156f22b1cd2885e19acc4397ef42ee8fcd6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:140-140 | rust/lance-linalg/src/simd/dist_table.rs:429-429 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"477ccad5d26be3a639adfd515c8c3040ab93ceafa9996bfd12a05b467eb2a144"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-namespace-datafusion/src/catalog.rs:39-51 | rust/lance-namespace-datafusion/src/catalog.rs:98-110 \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":"rust/lance-namespace-datafusion/src/catalog.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ff6981389cb909d46c5ce6e0522c304b92b3d448668d5784b3bd6ec5fe220b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-namespace-impls/src/rest.rs:1070-1078 | rust/lance-namespace-impls/src/rest.rs:1140-1148 \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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5541f8775fc2e6b24733afeb299a9123d717fbef217a117eed3947263d17583"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-namespace-impls/src/rest_adapter.rs:551-561 | rust/lance-namespace-impls/src/rest_adapter.rs:639-649 \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":"rust/lance-namespace-impls/src/rest_adapter.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"af730977650cf952c7d59fd1c84177951325dc244144e3de28014b939067821d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): java/lance-jni/src/optimize_indices.rs:127-138 | java/lance-jni/src/optimize_indices.rs:159-170 \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":"java/lance-jni/src/optimize_indices.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3f962397ce7c3e7525c53a56a22a9aeaf7aed784c023b3b63f82f6c9fc0210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 19\u002B corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:403-422 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:496-515 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:603-621 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:623-641 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:464-483 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:557-576 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:664-682 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:684-702 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba38e7bdbfd06e1c39537d5fe95b50a4c10e185d1b0523b899834ad6d462e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-encoding/src/array_encoding/logical/struct.rs:161-180 | rust/lance-encoding/src/encodings/logical/struct.rs:87-105 \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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f5d6691cce2e35c9eb6e9917e7dca8553239c5291b069a45b8e42a1f3afa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/lance-index/src/vector/flat/storage.rs:135-156 | rust/lance-index/src/vector/flat/storage.rs:313-332 \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d277249ad5ab2abfd141ac64cd68b3f7af3dee3717c767ce2e194f0df394fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:1026-1026 | rust/lance-linalg/src/simd/dist_table.rs:1045-1045 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcab018f13081aac3d8732e762a0d7a967c0598b2f6049e483bde4cc02bd3cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 18\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:220-237 | rust/lance-linalg/src/simd/f32.rs:240-260 | rust/lance-linalg/src/simd/f64.rs:113-130 | rust/lance-linalg/src/simd/f64.rs:133-153 | rust/lance-linalg/src/simd/i32.rs:120-137 | rust/lance-linalg/src/simd/i32.rs:140-160 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ade49ab585f5d4050806e8035622f13be4fdf92e4f987ed72033f817e211df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): java/lance-jni/src/merge_insert.rs:182-196 | java/lance-jni/src/merge_insert.rs:310-325 | java/lance-jni/src/merge_insert.rs:330-348 \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":"java/lance-jni/src/merge_insert.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc2a77969b69d30ea4244570f5e96bbad8ec7289f6b4d8981ecac072d018b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): java/lance-jni/src/transaction.rs:1624-1640 | rust/lance-table/src/transaction/validate.rs:365-378 \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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"030734ee9776beed3e0c71f6e216f650c9c62174f745b1a65a165debc53fc353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-index/src/scalar/btree.rs:706-713 | rust/lance-index/src/scalar/btree.rs:748-755 \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b33be49a0ef22c8533daac4d094022c4c076ab8211ce45dc9c2aa429475e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/encoding.rs:1182-1191 | rust/lance-index/src/scalar/inverted/encoding.rs:1197-1205 \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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47307927440ae0583ba46f5eb1dc3a1d0092dc161536cf2c86d77422cda489a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-io/src/spill.rs:191-203 | rust/lance-io/src/spill.rs:221-235 \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":"rust/lance-io/src/spill.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63402c87eb965be8379f3b0acf85e354ab94d50d2b5c7c42a29cd3dd8e12e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): java/lance-jni/src/vector_trainer.rs:45-62 | java/lance-jni/src/vector_trainer.rs:67-82 \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":"java/lance-jni/src/vector_trainer.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"587395806a17f6e2bd580eef690f31825c17b5119f0186651921677d2379cb06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): python/src/mem_wal.rs:665-675 | python/src/mem_wal.rs:709-721 | python/src/mem_wal.rs:724-732 \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":"python/src/mem_wal.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad253ce342ee3c1a1a2c8e898e6714b0c2fb5f039b5492bc30ab752bc589ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-datafusion/src/substrait.rs:57-69 | rust/lance/src/dataset/updater/blanks.rs:740-752 \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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4867110aaaee79c60e0c757269cf1c7f6f95c64cd8a8bd98f07b8624d55381fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-encoding/src/encoder/structural.rs:142-151 | rust/lance-encoding/src/encoder/structural.rs:159-168 \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":"rust/lance-encoding/src/encoder/structural.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e97b0fb26a614aff7ab22da4d444260f8dcf5116003082aa1dce7a3f63e8225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:2139-2150 | rust/lance-index/src/scalar/zonemap.rs:3735-3748 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10bfd70020c27784dccab8831aa24e2c246fdd633bda9cc070976cd062aba56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:334-352 | rust/lance-index/src/vector/bq/ex_dot.rs:549-566 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfcd2770c89c898d20e81eed9109db7881f9ae2f178cb9854d46cb832b141c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:1238-1238 | rust/lance-linalg/src/simd/dist_table.rs:1263-1263 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffeafd06b6878a190d7074c940d6748ecc359b1ef69dc1d17383ea70969fb480"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): java/lance-jni/src/otel.rs:87-101 | python/src/otel.rs:132-148 \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":"java/lance-jni/src/otel.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee3811e51a7a5f7f23f03900a6e055e021bc638dec53a195a5500ff00f035cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance-core/src/datatypes/schema.rs:1931-1948 | rust/lance-core/src/datatypes/schema.rs:1977-1992 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"69155eeb84f015ebd013423acc76ea19e0e213d0c9e2b70d2f402249ac17538c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs:273-289 | rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs:315-331 \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":"rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef66c44a979ff304465a506e0959d54a60bc01e9597af5e6cfe5a234bed33caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): rust/lance-jsonb/src/core/de.rs:145-158 | rust/lance-jsonb/src/core/de.rs:160-174 | rust/lance-jsonb/src/core/de.rs:176-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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238cc972ebc6a6e50f307f83bc72379299c0a62162fa8ff2fb6d960719bf479"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-table/src/format/overlay/staleness.rs:134-148 | rust/lance-table/src/format/overlay/staleness.rs:162-176 \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":"rust/lance-table/src/format/overlay/staleness.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13eac321ed2c85f6064fb2c09bf9cec7db132269bb20e60120a344e858f5794"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-table/src/io/commit/external_manifest.rs:172-185 | rust/lance-table/src/io/commit/external_manifest.rs:200-217 \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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67c5238719cebd18a068a4e3ed75aef55d34ec7599d80669838474e457f1300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance/src/dataset/mem_wal/index/btree.rs:454-467 | rust/lance/src/dataset/mem_wal/index/btree.rs:671-684 \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":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f5549d528549aee0ec4d6b8c62922aecec2a2775c594e515401da7657c42a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/projection.rs:67-75 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:82-90 \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":"rust/lance/src/dataset/mem_wal/scanner/projection.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"affa4597fe116622c3beaa4643926d533525a43bd3d44a3a2fced488b8db7d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance/src/index/vector/ivf.rs:277-290 | rust/lance/src/index/vector/ivf/v2.rs:1647-1660 \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09fd5eea2ca1d480e89ae6b3a259112ead2ac45dd8762e3d1badce224d5c80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): java/lance-jni/src/blocking_blob.rs:79-95 | java/lance-jni/src/traits.rs:126-139 \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":"java/lance-jni/src/blocking_blob.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6cf4c2082c72ae31e848645f833da5ffcedaf022980d0c6e38b3344ff5e7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): python/src/dataset.rs:1536-1550 | python/src/dataset.rs:1564-1578 | python/src/dataset.rs:1592-1606 \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":"python/src/dataset.rs"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a378d5d934d9960c576300e1026cc1c3bcd64a228629c46ddb6451a13caf3fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): python/src/dataset.rs:4087-4099 | python/src/dataset.rs:4137-4156 \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":"python/src/dataset.rs"},"region":{"startLine":4087}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f15c9777c2830c297622aadce818dd60a31be52b4b5d7ceb5df07e11c6abeac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): python/src/dataset/merge_insert.rs:86-96 | python/src/dataset/merge_insert.rs:117-127 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe44b283d52c91f2631b169c3c5275390fab6e85e569344cb269901547ebb3f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-index/src/scalar/inverted/index/search_candidates.rs:229-239 | rust/lance-index/src/scalar/inverted/index/search_candidates.rs:246-256 \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":"rust/lance-index/src/scalar/inverted/index/search_candidates.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c64804999012290c106492b3fe14f906f090ce5bea85392a0a82936a0e645bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-io/src/scheduler/lite.rs:157-171 | rust/lance-io/src/scheduler/lite.rs:173-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":"rust/lance-io/src/scheduler/lite.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acbffcb98351a259541a29b647019d94174bdf46eb3693e52a95e38a88e67a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): rust/lance-linalg/src/simd/u8.rs:198-213 | rust/lance-linalg/src/simd/u8.rs:319-334 | rust/lance-linalg/src/simd/u8.rs:401-416 \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":"rust/lance-linalg/src/simd/u8.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"4845657baca9f432e3bbf29fe729ce92b598db3df278b3604d094ac3c1b6766a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1028-1036 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:878-887 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0269bda9f9fe611ded87f28da6f05b7fe7275e7c28888161fdba0d6b0c27720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): java/src/main/java/org/lance/Dataset.java:2809-2824 | java/src/main/java/org/lance/Dataset.java:2923-2936 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":2809}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8579ba47d0b5b23411409e161431d13c795d40b2b092f80d2d742302a1d52e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): python/python/lance/indices/ivf.py:55-74 | python/python/lance/indices/pq.py:61-81 \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":"python/python/lance/indices/ivf.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1204e8e7083c066fca9efe1514b616364af868e17964371b4bbe00226b0dd47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): python/src/dataset/merge_insert.rs:347-358 | python/src/dataset/merge_insert.rs:360-371 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"888728eed1027cb197b960e3110cd128dc5cbf788b79f15cab54b04436ec57b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-core/src/datatypes/schema.rs:1004-1013 | rust/lance-core/src/datatypes/schema.rs:1055-1064 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9de11a4816e9a6cd4b06debddeb647243d15b0d8f8499b1074c3f87eda59df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-core/src/utils/deletion.rs:84-97 | rust/lance-core/src/utils/deletion.rs:360-372 \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":"rust/lance-core/src/utils/deletion.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cae2df75829c16b26eddef07909cd74629d2d57f3ed874113377ccf7d5d27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/inverted/wand.rs:519-535 | rust/lance-index/src/scalar/inverted/wand.rs:539-550 \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":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"7545e19dbc1806ae8f0b05467d98746a1f7dab81eb1a27d881d90d7d73219b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-io/src/utils/tracking_store.rs:363-375 | rust/lance-io/src/utils/tracking_store.rs:377-389 \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":"rust/lance-io/src/utils/tracking_store.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48d43ff3841adc889760645d48d5d37402145a52492d5b0673643c2e05c42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-linalg/src/distance/dot_u8.rs:199-208 | rust/lance-linalg/src/distance/l2_u8.rs:206-215 \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":"rust/lance-linalg/src/distance/dot_u8.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbe2722c0f0a4ef126ee4afbf11084f7c8086f8d3a3b87eea87a72810196410"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/io/exec/filtered_read.rs:2087-2109 | rust/lance/src/io/exec/filtered_read.rs:2119-2136 \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d54b246109f1cad939059d509a8a384f15def5104c4012b54ae9c71986f3e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/src/main/java/org/lance/ipc/FullTextQuery.java:417-425 | java/src/main/java/org/lance/ipc/FullTextQuery.java:513-521 \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":"java/src/main/java/org/lance/ipc/FullTextQuery.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"558baf6cda42665478ef42b96816851e26aba7df6c0c9972b8d4b754dcb1b0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:923-931 | java/src/main/java/org/lance/namespace/RestNamespace.java:830-838 \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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1aaa4ae263742d909254ebebd94744f7305001526b009f56438b5807e96881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): python/python/ci_benchmarks/datagen/merge_insert.py:363-386 | python/python/ci_benchmarks/datagen/merge_insert.py:390-415 \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":"python/python/ci_benchmarks/datagen/merge_insert.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfde378027c3d6b542d7f323945ee0a855fa63895e86303750df4dadfeded20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): python/src/dataset/write.rs:460-473 | python/src/dataset/write.rs:501-514 \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":"python/src/dataset/write.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"33818e0028d1671fdd974daa168bad7c59a48540ad92c1a634044fb93c699395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:477-483 | python/src/namespace.rs:1224-1230 \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":"python/src/namespace.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef6635d96ff6e0faa1a890417b56e61ba5bc29536ddbe44a305e69c18b3bbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:489-495 | python/src/namespace.rs:1236-1242 \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":"python/src/namespace.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57ec2a2d07d4e5abd5a451df92fde5208106965510b568fcf99eabc7b6ecde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:527-533 | python/src/namespace.rs:1274-1280 \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":"python/src/namespace.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"970c94613692ccc814e8d6734b7e44f9a5d6b9fe48be64536f3c9b64d9c46662"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:539-545 | python/src/namespace.rs:1286-1292 \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":"python/src/namespace.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"88780f16510a9bf6b4818fbaab85433225b1950b811e67584c03963d38a4ab2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:553-559 | python/src/namespace.rs:1300-1306 \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":"python/src/namespace.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e351acd0901e05b1d2a8113591456689124209bb7e5605928758d5d9f24030ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:565-571 | python/src/namespace.rs:1312-1318 \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":"python/src/namespace.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8777eb1dd2c665e0e7c6629dac65dc14caa86975c07dfdc03317faf1e655e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:591-597 | python/src/namespace.rs:1338-1344 \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":"python/src/namespace.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3791498210a42356502e25038a41610a157dc1a1eed3b5b821564e7dc5fda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:605-611 | python/src/namespace.rs:1352-1358 \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":"python/src/namespace.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9e396adb6250b4a67dc60e440318ebdcdadb68bc29df1567ce285b4b68b5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:617-623 | python/src/namespace.rs:1364-1370 \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":"python/src/namespace.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"c126435b73f408f58eea572009ff6309031577c6d66f390a331206dd3b93a4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:629-635 | python/src/namespace.rs:1376-1382 \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":"python/src/namespace.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"a203a610f70e105a2edc380fac04de46fd6363ba3520a7b8c3f98f82267a8ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:641-647 | python/src/namespace.rs:1388-1394 \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":"python/src/namespace.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b70e17e10a8895648a130a57cebb8e987a5cd54e76698b7c401839bd5a0299c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:673-679 | python/src/namespace.rs:1420-1426 \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":"python/src/namespace.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"92069d12c9ab16f7b2fcfbbc1ccf67db4001eab6e93d7aff354bf509a670d704"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:685-691 | python/src/namespace.rs:1432-1438 \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":"python/src/namespace.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16a87e7b8ca3957a7d0d5e6c0c738e130d251bf61b5ae7fea9936bf2ddd8910"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:697-703 | python/src/namespace.rs:1444-1450 \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":"python/src/namespace.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55201db0c28ff1c4ee076fb744c59792d0709f80223e7ea5195bb2ace4090ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:733-739 | python/src/namespace.rs:1489-1495 \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":"python/src/namespace.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e92191d2d4c1bfff854a6b9babbcede26db1b1ad06f0524cecb8ca0d7788e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:747-753 | python/src/namespace.rs:1503-1509 \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":"python/src/namespace.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"584cb9ff194f78b1034c097db26fdacc0e69ae1aa07e77760a0f1d0b125902f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:759-765 | python/src/namespace.rs:1515-1521 \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":"python/src/namespace.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d9aad873c975a40baa4be39a33518b17ce434075aa17a0de49680a2ebbe678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:771-777 | python/src/namespace.rs:1527-1533 \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":"python/src/namespace.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"44da0faef19bba90060475044275815a04d46a2609b72c3f166bf01b60f82178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:783-789 | python/src/namespace.rs:1539-1545 \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":"python/src/namespace.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f835edd3dc78e69450ad946874c612d84f50faec95e2bdcc097ea6712e68bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:795-801 | python/src/namespace.rs:1551-1557 \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":"python/src/namespace.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfaf05b5763f70558e0d9d946d80173c82c41b7be3ebcf17db603ca2208210f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:224-233 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:237-246 \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":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d596d75fa7a933d778efebb6419b05520f665d4169188a5e6198af4f8e85c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:589-601 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:650-662 \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":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"17329a2cb754e3eb4b5673d97c9f7eac5f2511e556b5f6f1ded74017753d479d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-datafusion/src/spill.rs:84-96 | rust/lance-datafusion/src/spill.rs:109-121 \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":"rust/lance-datafusion/src/spill.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbbd20c79f0255a8783a0fe67eef4f2999680959e3ca186d613d4c4becdd676"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-index/src/scalar/bloomfilter.rs:865-875 | rust/lance-index/src/scalar/zonemap.rs:1696-1707 \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":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"4deb56eba3c7b9784c13077387d9a8e51911d9683a0899ac20a00c7ef37946bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:159-159 | rust/lance-linalg/src/simd/dist_table.rs:184-184 | rust/lance-linalg/src/simd/dist_table.rs:209-209 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f92ffc9ca538ddb982ec2f73e4821b25edaec1a3ef990fac19b8e4fdcfa3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-select/src/mask/nullable.rs:191-201 | rust/lance-select/src/mask/nullable.rs:205-216 \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":"rust/lance-select/src/mask/nullable.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0011692d235ebd594702220516286eb67bdac296eee03138e7faf6ebff260ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/dataset/mem_wal/sharding.rs:280-290 | rust/lance/src/dataset/mem_wal/sharding.rs:292-302 \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":"rust/lance/src/dataset/mem_wal/sharding.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e73c3b005d6d6ae1491713bce6c402bf121769ff41d35f198737ac1de56d395"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): java/lance-jni/src/blocking_scanner.rs:940-954 | java/lance-jni/src/namespace.rs:125-139 | java/lance-jni/src/otel.rs:315-330 | java/lance-jni/src/utils.rs:632-645 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5029eb177bc93238ea4b4954d31a63475f5ad3498e1402ffe8d7058aa1656b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): python/src/dataset/merge_insert.rs:453-462 | python/src/dataset/merge_insert.rs:469-478 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d19b9bc0a68b36cec78a081ab95cafb6eb5fb369a80bbc3a8d848a54738bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): python/src/namespace.rs:515-521 | python/src/namespace.rs:579-585 | python/src/namespace.rs:1262-1268 | python/src/namespace.rs:1326-1332 \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":"python/src/namespace.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d5abfc386f909acf2f3bbcb0cff28d132040a7bdba27dae333ccab6c1ef8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:1040-1053 | rust/lance-encoding/src/encodings/logical/primitive/constant.rs:461-470 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a7884f20ee6d110943653188aaafeff688c6eacf12c8ca875b3b7473ff322a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/zonemap.rs:2209-2220 | rust/lance-index/src/scalar/zonemap.rs:2233-2248 \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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ffef322abca037f5a78771365e1f6ff5d857cddc6f352cef6c878ccd68d6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:685-692 | rust/lance-index/src/vector/bq/ex_dot.rs:751-758 | rust/lance-index/src/vector/bq/ex_dot.rs:1453-1460 | rust/lance-index/src/vector/bq/ex_dot.rs:1516-1523 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e17aa8ab58ccb7adae97ea8851ee5edcb2521eb32ae2465bf28bd0f25012d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-io/src/object_store/providers/oss.rs:98-106 | rust/lance-io/src/object_store/providers/tos.rs:104-112 \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":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d03e9b56ead8012e8cbd5d0de89333c5453f95437b7abc11b4ed50b38b609a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/dataset/blob/file.rs:622-640 | rust/lance/src/dataset/blob/file.rs:643-660 \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":"rust/lance/src/dataset/blob/file.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1b45ac92cecab31b08520537b97a6ef0948ae47b2a34c7aa3ec41743589501"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): java/src/main/java/org/lance/memwal/ShardWriter.java:92-101 | java/src/main/java/org/lance/memwal/ShardWriter.java:120-129 \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":"java/src/main/java/org/lance/memwal/ShardWriter.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80602b948bc990aa7dd863baefaa8e3859fd460ee1cdaf81a45adb005e84822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): java/lance-jni/src/blocking_dataset/construction.rs:291-318 | java/lance-jni/src/blocking_dataset/construction.rs:426-454 \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":"java/lance-jni/src/blocking_dataset/construction.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"787603a90bd4060aa5ef229f719b69b867eeb002cd68ef3beab10374d8d9f669"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:211-217 | python/src/namespace.rs:958-964 \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":"python/src/namespace.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acdf54b778fc9a835d062b101771cc62f12489dc50ea0e5785792b3db37e2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:223-229 | python/src/namespace.rs:970-976 \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":"python/src/namespace.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"30be2a2f7aeb38d0444a5fba14ed0d8c53dcf7cc242be85a0c24ad27ee45bf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:245-251 | python/src/namespace.rs:992-998 \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":"python/src/namespace.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4241efa6255134e779d5e5a6659e0326822fad3a7f4c9d8ed4057f533212815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:257-263 | python/src/namespace.rs:1004-1010 \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":"python/src/namespace.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da64be2495ec0cdd1a28ed676b88e9306d1a20dd568ff6519ef2855a3881891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:269-275 | python/src/namespace.rs:1016-1022 \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":"python/src/namespace.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b0d2d0bcb9577f4e4518d4b7b3212b866889cd1efb441e6be6fca96f72324a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:289-295 | python/src/namespace.rs:1036-1042 \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":"python/src/namespace.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"779ef64ac328ff183fac4ea14966694b8d738df3fe11ad12ae8bab69cb485c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:301-307 | python/src/namespace.rs:1048-1054 \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":"python/src/namespace.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e971a6b29a9819f9a46388607a0e691628f2889940630ce1352d0a18024a5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:353-359 | python/src/namespace.rs:1100-1106 \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":"python/src/namespace.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"631a2910eb03a97d0bfb26d70cd5eee941d6c9fba9ddfd37315c7fd5c03d6ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:365-371 | python/src/namespace.rs:1112-1118 \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":"python/src/namespace.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e434e02fe15c66dac40628f9047d793ba929f73c8227308048f882b86a1d77e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:377-383 | python/src/namespace.rs:1124-1130 \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":"python/src/namespace.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"759bc35272ff20ee505fa367254719fca7ec598e1a9e5bad941f5b86e742b492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:389-395 | python/src/namespace.rs:1136-1142 \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":"python/src/namespace.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8a095d004cd73245d0a4c49e930f5f80a79043b67c89b610748fb6f8a1287a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:403-409 | python/src/namespace.rs:1150-1156 \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":"python/src/namespace.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1a0b8f6bfba9773126f7a560ac1d24c729e9ed061ffcd2de170511621b7f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:415-421 | python/src/namespace.rs:1162-1168 \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":"python/src/namespace.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cb3332566ffb6e34afb008c0d17e7d2a1dc2f16209e1ad50c823c5767ab4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): python/src/namespace.rs:427-433 | python/src/namespace.rs:1174-1180 \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":"python/src/namespace.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c482bb243136f6c59aed869ec3f8b59e7e4771c770598827444f09b1880ddc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/blob.rs:198-208 | rust/lance/src/blob.rs:246-256 \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":"rust/lance/src/blob.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbf89d97119dd61638ce0d21b27b2b7ea67a2a4d4eddbcb70c530b52efdc2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/io/exec/table_identifier.rs:21-33 | rust/lance/src/io/exec/table_identifier.rs:40-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":"rust/lance/src/io/exec/table_identifier.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41560395809f7c68a2810338b2617ce2c8b32bbe49f49b066c081eaf2892e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): java/src/main/java/org/lance/delta/DatasetDelta.java:67-76 | java/src/main/java/org/lance/delta/DatasetDelta.java:81-90 | java/src/main/java/org/lance/delta/DatasetDelta.java:99-108 \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":"java/src/main/java/org/lance/delta/DatasetDelta.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4a875bb7ec6d9ad61440feab4b5005c6bb9825c73c618ef87acfa1fa7564f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): python/src/dataset/optimize.rs:241-249 | python/src/dataset/optimize.rs:353-361 | python/src/dataset/optimize.rs:477-485 | python/src/fragment.rs:998-1006 | python/src/fragment.rs:1057-1065 | python/src/fragment.rs:1106-1114 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/optimize.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd58c4bedf374c0c63dffe80d41362b4a78efa7f0b18554bb5fa7ca9882f6c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): python/src/mem_wal.rs:597-609 | python/src/mem_wal.rs:631-642 \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":"python/src/mem_wal.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6da6a6d7ee393377c863fdb9eafc199e7c1951cc601156ec114884b2aa588e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-core/src/cache/mod.rs:349-359 | rust/lance-core/src/cache/mod.rs:368-378 \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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c69bc6a27642ab0dedf783146224273587f34d5e4b84723ecd332ce2bd7193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-core/src/container/list.rs:188-199 | rust/lance-core/src/container/list.rs:226-237 \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":"rust/lance-core/src/container/list.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fe92727e105cc650639c43b652f0f45c036c408870c09a3b649c9eb1555379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2779-2792 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2814-2827 \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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2779}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6160ff145e11452ac300316ab114f5719314e35fc0aaa3da30c648f12aab3f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-encoding/src/utils/accumulation.rs:251-274 | rust/lance-encoding/src/utils/accumulation.rs:280-296 \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":"rust/lance-encoding/src/utils/accumulation.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4089e8c61f6e4b17600c51c14b24ac2c5c11432b7c037d0f591d9891650ea7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-geo/src/rtree.rs:826-834 | rust/lance-index/src/scalar/btree.rs:2938-2945 \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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bb15d88f96a0246ab05a7801a25e155ea566910484444e4d498b87fff0f700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:150-162 | rust/lance-index/src/scalar/inverted/compound.rs:164-177 \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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c59413aa054e7fb9162012914f87a5d82cea209fde3e65ca230061b6692d1ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-index/src/scalar/inverted/wand/posting.rs:632-646 | rust/lance-index/src/scalar/inverted/wand/posting.rs:653-667 \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":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92434302b369cb5e7ab68d96bea79b2f6d1c001d12e3726f8fa574481bc112a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance-index/src/vector/bq/builder.rs:714-724 | rust/lance-index/src/vector/bq/builder.rs:892-902 | rust/lance-index/src/vector/bq/builder.rs:1095-1106 \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":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7537d5870d323294fbeddacdf6debe70b0cc7d5681b9026a3bb05dfa4da5d261"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): java/src/main/java/org/lance/operation/Merge.java:65-72 | java/src/main/java/org/lance/operation/Overwrite.java:96-104 \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":"java/src/main/java/org/lance/operation/Merge.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"312ed7fb332bd2d78509df29f0a13a462f879b26a25b6b7b630a27f4a3fa126c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): java/lance-jni/src/mem_wal.rs:1195-1206 | python/src/mem_wal.rs:960-971 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e2d83b7360b27034f59eef50b11d349732747340d6281c23d437a04265c622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): java/lance-jni/src/mem_wal.rs:1209-1222 | python/src/mem_wal.rs:974-987 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:115-126 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf42a7b6f1379f71cf838bd0163bca0f2dbce32c9500d749822cbd12446d976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/lance-jni/src/schema.rs:15-32 | java/lance-jni/src/schema.rs:78-90 \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":"java/lance-jni/src/schema.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d800a8ea0128d7a7a55ce29072795baa4a840a9a0f888f0198e7086bf72476"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): python/src/dataset.rs:2058-2064 | python/src/dataset.rs:2067-2073 | python/src/dataset.rs:3212-3218 | python/src/dataset.rs:3496-3503 \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":"python/src/dataset.rs"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce05a4686f4b52369b05696271bd56df9d4bc25aa302f583dfc5af5669dd7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): python/src/debug.rs:16-22 | python/src/debug.rs:26-32 | python/src/debug.rs:87-97 \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":"python/src/debug.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"36be1d206af6d0ba19021a044188e5ec610b209932628951064e9b27aca24ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index-core/src/scalar.rs:868-877 | rust/lance-index/src/vector.rs:730-743 \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":"rust/lance-index-core/src/scalar.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"5560ded515b2948b9013e0f3c89f967752ff38d0d2d9b380ebeab54d51e046ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/btree.rs:2626-2635 | rust/lance-index/src/scalar/zonemap.rs:842-850 \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"21484f6034d4b16dee3f41d5389eecfc200519bb364336ab76a3267c7c66adcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:1101-1114 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:1174-1187 \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":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaea17f1a6e56cf508374b179eefb2524ff13984d0c40791938c759fc622e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/query.rs:1215-1223 | rust/lance-index/src/scalar/inverted/query.rs:1229-1245 \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":"rust/lance-index/src/scalar/inverted/query.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dbb90c5c0e70fde2ee644529b15bb460734f61ffee71d2b72b55c5fe0702cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index/src/vector/graph/builder.rs:36-45 | rust/lance-index/src/vector/hnsw/online.rs:69-80 \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":"rust/lance-index/src/vector/graph/builder.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"014920023000e5388ef9e75c6e6b0c32e515a893111a2d0d7a6928343c512241"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-table/src/format/fragment.rs:322-333 | rust/lance-table/src/format/fragment.rs:436-447 \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":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2b35b2d5f9fce6a5311a8f3a5adcdae9c057ef9cf8e9fc5213f816d5e931f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): python/src/dataset/delta.rs:34-42 | python/src/dataset/delta.rs:45-53 | python/src/dataset/delta.rs:57-65 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"python/src/dataset/delta.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"72708d8de8ae8bc747cd189f01664648bc25b37670615f3f5d0db3607bb9039a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): python/src/file.rs:760-770 | python/src/file.rs:791-803 \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":"python/src/file.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7ec24265a276f763bccee2707d5f19607e14bb7dc98e029938a6522490296a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-io/src/object_store/storage_options.rs:354-368 | rust/lance-io/src/object_store/storage_options.rs:400-414 \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":"rust/lance-io/src/object_store/storage_options.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ade525feb13fc06f695f81bc9f053b7df850a49ce2b14e23f79432961056aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-jsonb/src/core/de.rs:549-559 | rust/lance-jsonb/src/core/de.rs:844-858 \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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbada4db00b203fbc26d771cad58af332bc17d53a56f74e5ad57cf6cf25e27eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-linalg/src/kernels.rs:281-291 | rust/lance-linalg/src/kernels.rs:343-353 \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":"rust/lance-linalg/src/kernels.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1401612b290e5e4b50ac7f150c041a0bf04bfe635df01e04e81ec2f5ca688007"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:200-217 | rust/lance-linalg/src/simd/f32.rs:680-697 | rust/lance-linalg/src/simd/f64.rs:93-110 | rust/lance-linalg/src/simd/f64.rs:525-542 | rust/lance-linalg/src/simd/i32.rs:100-117 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfe52d5a8ba5e4ce1d46899a89739fb8431cb3c441d8a360b57a04fd3ddb9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/lance-table/src/format/fragment.rs:676-694 | rust/lance-table/src/format/fragment.rs:699-717 \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":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"221a2dde83ea39af80494b92a6fad8166f262d9cd9e47cd5f0d8d9c55fb92f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance/src/io/exec/fts/compound.rs:976-987 | rust/lance/src/io/exec/fts/compound.rs:1629-1640 \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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1af2c74bad0f9a2a9b8bd90eb7e3194321ad10e9bb3a355efab77538fcc0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/src/main/java/org/lance/index/optimize/OptimizeIndexMerge.java:56-64 | java/src/main/java/org/lance/index/optimize/OptimizeIndices.java:95-104 \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":"java/src/main/java/org/lance/index/optimize/OptimizeIndexMerge.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e464845666968c5e6b87e2cf072389ac5d8d80c57aebf068876cb47977f5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/compression/bitpacking/src/simd_x86.rs:588-599 | rust/compression/bitpacking/src/simd_x86.rs:603-612 \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":"rust/compression/bitpacking/src/simd_x86.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8846745292810228ff465dd99217d460d952fda270cf03536c93704178bb79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:3111-3122 | rust/lance-index/src/scalar/inverted/compound.rs:3238-3249 \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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":3111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5710559e160342b50c81ffe2c98a9be83940e8f90ce2d6eea2faa98aaacc206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/lance-index/src/scalar/inverted/index/search.rs:547-568 | rust/lance-index/src/scalar/inverted/index/search.rs:684-704 \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":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a361af8a0ffebf0770c1b7020a6b524acccea87b9ad371b9d8f88cf749f3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance-linalg/src/kernels.rs:28-38 | rust/lance-linalg/src/kernels.rs:49-61 | rust/lance-linalg/src/kernels.rs:142-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 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":"rust/lance-linalg/src/kernels.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37bbde120283534a2e072aabfcc73b9b76d5ec4fc863221dd9bd851207135d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/io/exec/fts/compound.rs:172-191 | rust/lance/src/io/exec/fts/compound.rs:484-501 \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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d234529af3935840b28a32aef2b3e55a108236b7ee34ac7978f467aa6fbd3b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance/src/io/exec/fts/query_tokens.rs:44-53 | rust/lance/src/io/exec/fts/query_tokens.rs:97-112 \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":"rust/lance/src/io/exec/fts/query_tokens.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a8c76a4b6454fd0d068521a47c862247b9bf6895c1ef21988e45df3dbcd8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): java/lance-jni/src/namespace.rs:1910-1926 | java/lance-jni/src/namespace.rs:2861-2877 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed28e857c2eadae87c54a4b0874b25f5038fd2f869bb6f627761a8bdfa08e955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): rust/lance-datagen/src/generator.rs:2540-2557 | rust/lance-datagen/src/generator.rs:2582-2599 | rust/lance-datagen/src/generator.rs:2616-2633 | rust/lance-datagen/src/generator.rs:2701-2713 \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"9616ef5f55185d80f480e1ea1ffde788e457f6ddc0f907af94ae74d8a18ca430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/bin/fm_contains_bench.rs:165-173 | rust/lance/src/bin/fm_index_tool.rs:54-62 \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":"rust/lance/src/bin/fm_contains_bench.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24ce79cbd3801adb498de19b49a3d95348adca28f6f5d7522cc9a203882af3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/fragment.rs:2541-2552 | rust/lance/src/dataset/fragment/session.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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2541}}}],"partialFingerprints":{"codehealthFindingId/v1":"14663a25165fe054460542a379cdfa738d68dd3863635c32a56a3b770fa7bb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:206-221 | rust/lance/src/dataset/write/merge_insert/exec/in_place.rs:382-399 \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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e784f7e9b7b5b75afcf7b198ee90a8231d11930ac0141b23c1e34ec5f7540d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance/src/index/vector/ivf/v2.rs:3169-3186 | rust/lance/src/index/vector/ivf/v2.rs:3194-3205 \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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":3169}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d7f5b66bbc68a127c9415c2d2401b84524c6b2e804b33491ea010d586173bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance/src/io/exec/utils.rs:473-486 | rust/lance/src/io/exec/utils.rs:499-512 \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":"rust/lance/src/io/exec/utils.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d105b7ffad7f895ac9694bc06815ab9319456b38bed27179302dde16d847f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): python/src/dataset.rs:1478-1486 | python/src/dataset.rs:1492-1505 | python/src/dataset.rs:1511-1522 \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":"python/src/dataset.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f90146d7d22649d9338f7fa28e44ae463fc9b1667158c73aab41fc58f8c976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): rust/lance-core/src/cache/mod.rs:791-797 | rust/lance-core/src/cache/mod.rs:825-835 | rust/lance-core/src/cache/mod.rs:846-855 \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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e619b6e1606708eeba54cfa8104daea91decfd476f8e1e4756d60334a2dbec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-datafusion/src/projection.rs:464-476 | rust/lance-datafusion/src/projection.rs:479-491 \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":"rust/lance-datafusion/src/projection.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f63613ca0334eba54ab0330b0b358b774ebb785f03a2eb4a2635dd0ef4862cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-datagen/src/generator.rs:2641-2653 | rust/lance-datagen/src/generator.rs:2676-2688 \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2776cac93e10c4990406085f9afd155a2a48ae3bf1061e8d0f898e39a3a04b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance-index/src/scalar/inverted/documents.rs:2307-2323 | rust/lance-index/src/scalar/inverted/documents.rs:2329-2345 \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":"rust/lance-index/src/scalar/inverted/documents.rs"},"region":{"startLine":2307}}}],"partialFingerprints":{"codehealthFindingId/v1":"966e7eca65a25110a431aead245821361648e1182690e2e11343bc3d41c6532b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:2170-2183 | rust/lance-index/src/vector/bq/storage/scan.rs:289-305 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6cfd42f925a980602c93f2947db2bfcd473932601ace37410b42a9fb66e7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-io/src/object_reader.rs:233-244 | rust/lance-io/src/object_reader.rs:611-622 \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":"rust/lance-io/src/object_reader.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"968e5d1624314d00930ea1c55e5cc43c27fa3502761df1f26f816b314194f166"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-jsonb/src/parser.rs:189-201 | rust/lance-jsonb/src/parser.rs:204-216 \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":"rust/lance-jsonb/src/parser.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe93b3a8af9ad33f018ab727a441298752e87d3daa1f21ab8854c24316632ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:1990-1990 | rust/lance-linalg/src/simd/dist_table.rs:2006-2006 | rust/lance-linalg/src/simd/dist_table.rs:2022-2022 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfc1d834c1e1023e3b3231a1f65f2d827fdca1b86b264b00e97df1ecf101014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): java/src/main/java/org/lance/Version.java:60-71 | java/src/main/java/org/lance/operation/CreateIndex.java:46-56 | java/src/main/java/org/lance/operation/Delete.java:66-77 \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":"java/src/main/java/org/lance/Version.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf11ee89b4c9f9e6e2b2fd720902a617a5978705aa472910def64b303624ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-core/src/memory/telemetry.rs:159-170 | rust/lance-core/src/memory/telemetry.rs:173-183 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/memory/telemetry.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"842545f539b384d786402cace31fba1f67b0dd3af60f022d63e34f869d2a0f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/cross_column.rs:195-203 | rust/lance-index/src/scalar/inverted/wand/doc_source.rs:163-171 \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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6754f2731ca492699128f68e79b977db3ff02faaf69fdaa0f21b941d9935b7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance/src/blob.rs:1020-1027 | rust/lance/src/blob.rs:1033-1040 \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":"rust/lance/src/blob.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"622777101128913e11d6949e3747b8487f341b890dc41a771a3ff7e6905a5f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance/src/index/lifecycle.rs:462-472 | rust/lance/src/index/lifecycle.rs:502-520 | rust/lance/src/index/lifecycle.rs:538-555 \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":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0410b284e96d9b4ecfa2db58355e8b92fc484d4a6ae08a0c8e71013327eb421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): java/lance-jni/src/blocking_dataset/maintenance.rs:412-424 | java/lance-jni/src/index.rs:23-35 | java/lance-jni/src/transaction.rs:195-207 \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":"java/lance-jni/src/blocking_dataset/maintenance.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c17c509067123091cda08dac1a18afe1b9059d72c14c2602bc3f86aa7d539a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): java/lance-jni/src/blocking_dataset/read.rs:492-502 | java/lance-jni/src/blocking_dataset/read.rs:684-694 \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":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53af9d33f7ae98f8179f63a724118f8d9d3d57dabbf74e57b8a631c985e25d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): python/src/fragment.rs:1141-1150 | python/src/scanner.rs:141-148 | python/src/scanner.rs:151-160 | python/src/scanner.rs:163-176 | python/src/scanner.rs:186-195 \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":"python/src/fragment.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0c07796e911119f3fbbbf9c1c324fc90da86c362815369854b7cacde977449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-datafusion-exec/src/exec.rs:483-496 | rust/lance-datafusion-exec/src/exec.rs:498-513 \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":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"8358a1bdd040fdee9ea331b8d5f1fcb57546a4c39d5b0fe8b00a52537699732c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:110-116 | rust/lance-encoding/src/encodings/physical/rle.rs:2252-2258 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"529e7dac0ad23f4e6daaf7cd1e8c56c6d2bef74dcf4606697daabea6be7990ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:1006-1021 | rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs:491-502 \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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a2f0156a9cbefb07439ff28a26dd708a0b8f872dac46ac414b07676370da05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/lance-index/src/vector/bq/ex_dot.rs:646-652 | rust/lance-index/src/vector/bq/ex_dot.rs:1420-1425 \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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e27c27e64a4761e07d51fc12d118df15193b79b2e7f976697473de76d0145bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:66-74 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:60-68 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b4ddb3df23143936bbfa086cf5dd01a51cd76cce71db14a84ae22f5117a119"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): java/src/main/java/org/lance/Dataset.java:1742-1750 | java/src/main/java/org/lance/ipc/AsyncScanner.java:201-209 | java/src/main/java/org/lance/ipc/LanceScanner.java:238-246 | java/src/main/java/org/lance/memwal/ExecutionPlan.java:45-53 | java/src/main/java/org/lance/memwal/ExecutionPlan.java:58-66 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89a38c9642e40ef1fbedad905e73157225d29f01d9d6736dacecf9e3fd5e1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): python/python/lance/indices/ivf.py:30-51 | python/python/lance/indices/pq.py:33-57 \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":"python/python/lance/indices/ivf.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c17455bc4f997ae31ba00da84e5ab0c4c1ec46ac10153a2ad2f2fe878c04e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): java/lance-jni/src/async_scanner.rs:392-400 | java/lance-jni/src/blocking_dataset/read.rs:324-334 | java/lance-jni/src/blocking_scanner.rs:912-921 | java/lance-jni/src/file_reader.rs:205-212 | java/lance-jni/src/mem_wal.rs:588-598 | java/lance-jni/src/mem_wal.rs:616-626 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/async_scanner.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a740bcaf93da7f41856c2dca3426d9fec0e1a10e28c4246e60701969fc4953"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): java/lance-jni/src/otel.rs:75-85 | python/src/otel.rs:119-130 \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":"java/lance-jni/src/otel.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a921fcba5bddefe8f37229f9befd85fe32fb4ec69c4214fd47e5a26dac1b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-index/src/scalar/label_list.rs:137-147 | rust/lance-index/src/scalar/label_list.rs:156-167 \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":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"068f035ffd68529c4aac56a31126a7cea03efacdd822338d616ef7fa73eda3d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-io/src/object_reader.rs:624-634 | rust/lance-io/src/object_reader.rs:636-646 \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":"rust/lance-io/src/object_reader.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1c84d3596529c9b06b946a7fec0ba11cbcc44bb7ec6a2bb156f0c6568f3797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance/src/dataset/blob/read.rs:1092-1105 | rust/lance/src/dataset/blob/read.rs:1118-1131 \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":"rust/lance/src/dataset/blob/read.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a3da70a2dbcf5ba6dd3bce345560b46de904a97a19a06f39cabb47e31f3153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): java/lance-jni/src/blocking_dataset/refs.rs:317-324 | java/lance-jni/src/blocking_dataset/refs.rs:360-366 | java/lance-jni/src/blocking_dataset/refs.rs:386-392 \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":"java/lance-jni/src/blocking_dataset/refs.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfc15492c9650a641831c3408dd7f8a949a6d5a05ef64057b426420f6a8f35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): python/src/dataset/optimize.rs:301-312 | python/src/dataset/optimize_indices.rs:133-141 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf51c9064c3909ffe09c283e80878785dbd1f4bcc3d14024477ed8ac94044c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-core/src/cache/telemetry.rs:683-689 | rust/lance-core/src/cache/telemetry.rs:694-698 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84f45b5516c311485fac55846107770bcd176d48549b110682d215089ae6e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): rust/lance-file/src/reader.rs:2046-2061 | rust/lance-file/src/reader.rs:2068-2082 | rust/lance-file/src/reader.rs:2090-2104 \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd520921baedf45f2055844e9812ddb7e97c85a9997b72059c05292a5966b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:398-406 | rust/lance-index/src/scalar/fmindex.rs:904-911 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffd563ec586c0d104c4652cd960f7213af7673b3e0c45a244b957cc92247c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:2313-2326 | rust/lance-index/src/scalar/ngram.rs:2035-2048 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"824e55bacd06fb7854254cf6346d8243b139116e534dc20ac40a9340758c633e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): rust/lance-linalg/src/distance/cosine.rs:485-485 | rust/lance-linalg/src/distance/cosine.rs:503-503 | rust/lance-linalg/src/distance/cosine.rs:521-521 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"1650e990e6b148eecf20dfaf4cc375c88952a4b46262e28856cb51177bc31c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scalar_index.rs:116-140 | rust/lance/src/io/exec/scalar_index.rs:1118-1134 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scalar_index.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cb36fd0309c60d8560e833256e1590dbd86a099f5a6bdbf080a756c857329e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): rust/lance/src/io/exec/fts/boolean.rs:81-98 | rust/lance/src/io/exec/fts/boolean.rs:355-373 | rust/lance/src/io/exec/knn/warp.rs:772-791 | rust/lance/src/io/exec/minhash.rs:109-127 | rust/lance/src/io/exec/minhash.rs:452-467 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/boolean.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e0c88f1e42d75a9ff4df4d7edfa6df289ad173120b05927fb16c9178ea1d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): java/src/main/java/org/lance/ipc/LanceScanner.java:157-167 | java/src/main/java/org/lance/memwal/ExecutionPlan.java:81-89 | java/src/main/java/org/lance/memwal/LsmScanner.java:155-163 \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":"java/src/main/java/org/lance/ipc/LanceScanner.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdea390b8516d977fce24fe5fa6d3a91cf32621bde7503dd96430e9b2afd8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): java/lance-jni/src/session.rs:346-355 | java/lance-jni/src/session.rs:369-378 | java/lance-jni/src/session.rs:412-421 \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":"java/lance-jni/src/session.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f181219619514febaee926e5e6ad681c2c4e7d40f67bc779995b8e6effa5761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-core/src/datatypes/field.rs:524-534 | rust/lance-core/src/datatypes/field.rs:536-546 \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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"e275de7cb78631ea030ed82c5ed8cedba0a66cbd4cc9674bbde6853595e525dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-encoding/src/compression.rs:952-965 | rust/lance-encoding/src/compression.rs:972-986 \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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fa2b565a2063dadd04af744b6cbba6f5e3bea63a9fc761831732d95d44dc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-encoding/src/decoder.rs:3181-3188 | rust/lance-encoding/src/decoder.rs:3191-3199 \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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":3181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e3587bb85f8ce105e1d964f3c77c5824ce8a7d9f4391cf8c59c14a9747b52c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-file/src/versions/mod.rs:240-257 | rust/lance-file/src/versions/mod.rs:266-277 \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":"rust/lance-file/src/versions/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb11b8f4f2aaaec701d16382f240ab7a8a10b05041dc6429900e6663b5804ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/compound.rs:1873-1887 | rust/lance-index/src/scalar/inverted/wand.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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"837558dcbb7835d69441ee3b8712047253f3f8178898af0201c3a1a0c05810c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-index/src/scalar/inverted/index/partition.rs:245-255 | rust/lance-index/src/scalar/inverted/index/partition.rs:258-268 \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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9630a19fece9aff92831c429d298162485102f425a9ff75ce1670713aa8782c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): rust/lance-linalg/src/distance/cosine.rs:65-71 | rust/lance-linalg/src/distance/dot.rs:205-210 | rust/lance-linalg/src/distance/l2.rs:50-55 \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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5b88554c7afb740502e377fbe6c26a330433803440a1a75ae3a8c71efb4809"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-linalg/src/simd/dist_table.rs:1380-1386 | rust/lance-linalg/src/simd/dist_table.rs:1713-1719 \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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda0b1166c7d728a2cdabda0f33d4feb41d1fc00603b1e1af1486a052bc0faec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/dataset/blob/read.rs:535-547 | rust/lance/src/dataset/blob/read.rs:551-563 \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":"rust/lance/src/dataset/blob/read.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8873d2c88ad3878bad5485f8f475aead8054a432ea2f2a5b36284c5190ed08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): java/src/main/java/org/lance/Dataset.java:2551-2558 | java/src/main/java/org/lance/Dataset.java:2605-2612 | java/src/main/java/org/lance/Dataset.java:2614-2621 | java/src/main/java/org/lance/Dataset.java:2677-2684 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a781576358d114fd5823ddba41a5118f58c9e1db4acc93ddec2d637b2d0fb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/src/main/java/org/lance/LockManager.java:39-56 | java/src/main/java/org/lance/LockManager.java:69-81 \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":"java/src/main/java/org/lance/LockManager.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec472064931b57e748c0eb8be4b63e76181075d7cfc83b5c078b28fb4574e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): java/src/main/java/org/lance/memwal/LsmVectorSearchPlanner.java:88-102 | java/src/main/java/org/lance/memwal/LsmPointLookupPlanner.java:59-66 \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":"java/src/main/java/org/lance/memwal/LsmVectorSearchPlanner.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be1b5d525c21af61f69bf6fba3309867e13f0a36bd530dcb208de11c0c41212"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/lance-jni/src/mem_wal.rs:415-424 | java/lance-jni/src/mem_wal.rs:532-540 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eac944e49dbfd4ca5ed7ee67b08e40a05bf11f97efaa00828583b6bb0a6827d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): java/lance-jni/src/mem_wal.rs:1182-1192 | python/src/mem_wal.rs:948-957 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b17957578f66c7b94d6ed831be7e0215e8c3206f5d54a927e01332473d6b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): java/lance-jni/src/namespace.rs:1613-1622 | java/lance-jni/src/namespace.rs:2564-2573 \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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e952b52ecad5baf4b4d8a91b05faf562ccc187c4c5dc99a8b190085a5a64cd1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): python/src/file.rs:85-96 | python/src/file.rs:109-120 \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":"python/src/file.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdd7eb9e80e06998d02e4bc92aff5f39f1e056e90be3d81f43b6af9ce00a64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:705-711 | rust/lance-file/src/writer/structural.rs:275-281 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f6fb9b68f5e0c087a3f1b018ab49c15b4782821804d325ef365304d4ab740d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-index/src/scalar/bitmap.rs:1561-1568 | rust/lance-index/src/scalar/bitmap.rs:1956-1965 \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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"52faaadff62ef47d4946cf397933e1a2c59b66e3b16b453231e7ed3604afa9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-jsonb/src/core/de.rs:752-762 | rust/lance-jsonb/src/core/de.rs:767-777 \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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd43d10f9e07da06201f65d37eb0f5a4d3e49846bd6f7053e5c37874bde1530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance/src/dataset.rs:2488-2494 | rust/lance/src/dataset.rs:3788-3795 \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":"rust/lance/src/dataset.rs"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc69d70a2bd7dbee7e9fbf5f765efac09c50239ef2b9f562fb57dd13308ad1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/lance/src/dataset/mem_wal/index/pk_key.rs:116-137 | rust/lance/src/dataset/mem_wal/scanner/exec/pk.rs:42-59 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/pk_key.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"878c15965f7646376c4d6d67d8bd60708c78096ccd33179910a72ccf5730879f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance/src/index/segment.rs:143-153 | rust/lance/src/index/segment.rs:193-203 \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":"rust/lance/src/index/segment.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"25754c1a57d46e8bc251624bd2950cfe78f53e39ce59866bc79bdc4daf747129"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): java/src/main/java/org/lance/index/vector/VectorIndexParams.java:86-96 | java/src/main/java/org/lance/index/vector/VectorIndexParams.java:120-125 \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":"java/src/main/java/org/lance/index/vector/VectorIndexParams.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77e8471ba09f9b0a03d67c09906380d002b4250e61c3df8573f7d425d4d69d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): java/lance-jni/src/fragment.rs:840-854 | java/lance-jni/src/transaction.rs:274-289 \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":"java/lance-jni/src/fragment.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d1f2fd7386c16ac06b6b257cb9b062e423cec5dd60733d2d49eb60970fcf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-core/src/datatypes/field.rs:1178-1189 | rust/lance-core/src/datatypes/schema.rs:827-838 \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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f209d9beb02bab3fa7400ce88530647069d5d7e3aa856d3a48c2ce460593816b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): rust/lance-file/src/versions/v2_1/reader.rs:250-261 | rust/lance-file/src/versions/v2_2/reader.rs:252-263 | rust/lance-file/src/versions/v2_3/reader.rs:415-426 \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":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a3132fb0c00efd9d445fd3b215290ccc519daaf53d1d0391fe41f3b1ade318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-index/src/vector/bq/pairwise.rs:389-399 | rust/lance-index/src/vector/bq/pairwise.rs:401-411 \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":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a699ed34555613ee75b2ea1021e5ca15073baed44c85b0ffb56f0f6b0d1bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/lance-linalg/src/simd/u8.rs:130-143 | rust/lance-linalg/src/simd/u8.rs:146-159 \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":"rust/lance-linalg/src/simd/u8.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e31eb39ca2cd599aa7da22f156b17681844a665c515d5f7ec3aaec8419b2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-table/src/rowids/version.rs:489-502 | rust/lance-table/src/rowids/version.rs:507-518 \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":"rust/lance-table/src/rowids/version.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f696dc73a6918b6299dbf3c3ad5a5f6707583b629a6b856762ff645d6671f24f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-core/src/datatypes/field.rs:1151-1162 | rust/lance-core/src/datatypes/schema.rs:784-795 \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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae2c9cd59d47c54a5fe097556545ec50d7448af413c36c10d075b0e66e01b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-core/src/datatypes/field.rs:1164-1175 | rust/lance-core/src/datatypes/schema.rs:797-808 \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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e37d8831729caeefde09296adb537ea77226c6b0ef8627f1f9150fad186a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): rust/lance-index/src/vector/bq/dist_table_quant.rs:352-357 | rust/lance-index/src/vector/bq/dist_table_quant.rs:361-366 | rust/lance-index/src/vector/bq/ex_dot.rs:778-784 \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":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"429be99ff439311816f26a5585eeb1705b6dfe30c9a5caff442283105e26d21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:580-591 | rust/lance-index/src/vector/sq/storage.rs:57-68 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0048d87a0b5b5c40436665b88b193b1d6055c6f4226d88e3bfef7a3edbff8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot_u8.rs:50-50 | rust/lance-linalg/src/distance/l2_u8.rs:43-43 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot_u8.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad63278786c3242e94a84d0d2321a7fa7b59542cf1e1ab76d513094a02fda2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/src/main/java/org/lance/memwal/ShardWriter.java:65-73 | java/src/main/java/org/lance/memwal/LsmScanner.java:61-69 \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":"java/src/main/java/org/lance/memwal/ShardWriter.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"44143b7434fd7ca06f9dce9195bd33fd0360e03d9078bd51de5b0b02cb2c6ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): java/lance-jni/src/blocking_dataset/read.rs:102-116 | java/lance-jni/src/blocking_dataset/read.rs:717-733 \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":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc360ccc972c5c6cfd03b2537040d7bc836f3677ec4a0def4652c2582c6eaeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/index/fts.rs:1776-1786 | rust/lance/src/dataset/mem_wal/index/fts.rs:1791-1799 \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":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29d5882a32e584286d71ec3d1004fdfba74f5cc6c49c6aaeb4f3bc85abf48e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance/src/dataset/mem_wal/scanner/exec/bloom_guard.rs:160-172 | rust/lance/src/dataset/mem_wal/scanner/exec/pk_block_filter.rs:135-147 | rust/lance/src/dataset/mem_wal/scanner/exec/schema_relabel.rs:99-109 \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":"rust/lance/src/dataset/mem_wal/scanner/exec/bloom_guard.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d30f6c265d84dd477926418f5fed411899938854825b6c4bfd1221a753b0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/lance-jni/src/optimize_indices.rs:100-111 | java/lance-jni/src/blocking_dataset/index.rs:668-674 \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":"java/lance-jni/src/optimize_indices.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4e9633bffe0c184e554520526bc37930432c83f832a726ca4911d315950dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-core/src/datatypes/schema.rs:875-882 | rust/lance-core/src/datatypes/schema.rs:889-897 \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c32bec21babc8245cef04e2719aeb5284283b0596af67e0da75cf59ad1adf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): rust/lance-encoding/src/format.rs:574-591 | rust/lance-encoding/src/format.rs:636-648 | rust/lance-encoding/src/format.rs:733-749 \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":"rust/lance-encoding/src/format.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7bc5a6f7d4eef638d6ac27f4bd57ba93e8a6c93ad2bc1eb919b5ed0b6bd876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:591-597 | rust/lance-file/src/writer/structural.rs:300-306 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"31677649191790b99f452e4c27815bf2ac7ffbfde9fa6ed89062f96f2449b4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-table/src/io/commit/external_manifest.rs:746-756 | rust/lance-table/src/io/commit.rs:1006-1015 \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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"f139299ee09f116d6eea5a08c140cbce5c2ce4dd58ec935015b3f7e75ad05362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:1339-1350 | rust/lance-index/src/vector/graph.rs:185-193 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b10e14eab452187be42469dd89316d87adf14d2bd48900faa6857d3938cc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/batch_store.rs:71-84 | rust/lance/src/dataset/mem_wal/memtable/batch_store.rs:99-110 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/batch_store.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b59a6547a9573fc63c5b8dc0f3374ebc3e9d7b6f208322a9c92329b7d2a7412"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/write/update.rs:117-125 | rust/lance/src/dataset/write/update.rs:143-153 \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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc20689cbfa686127139ab10e91b75025d5c5b59bdf92eb4642b43dd653b3b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): java/lance-jni/src/async_scanner.rs:207-243 | java/lance-jni/src/blocking_scanner.rs:688-725 | java/lance-jni/src/fragment.rs:119-147 \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":"java/lance-jni/src/async_scanner.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef3b9ff70a1ea15e8089f04838ccf24115e9939c41ebaf3da1d74db9076bb5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): python/src/dataset.rs:3653-3659 | python/src/dataset.rs:3665-3672 | python/src/mem_wal.rs:939-945 \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":"python/src/dataset.rs"},"region":{"startLine":3653}}}],"partialFingerprints":{"codehealthFindingId/v1":"552b41de4520e148bce0970a15c76683a060ecdcbebfed07198703e8e33b0ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-datafusion/src/substrait.rs:171-181 | rust/lance-datafusion/src/substrait.rs:183-196 \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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f2810b739ca8b85f1711a4da90a26bca10225edc3ce1c137b46226454eb656"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-index/src/scalar/expression.rs:2166-2172 | rust/lance-index/src/scalar/expression.rs:2176-2184 \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":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6ffa73f4e2e15c3091c797355cc6ec0678ca7307f1c6c3c04025e7651c6715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/lance/src/index/scalar/bitmap.rs:16-26 | rust/lance/src/index/scalar/btree.rs:45-55 | rust/lance/src/index/scalar/label_list.rs:18-28 \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":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc494f8e401ef477caea36b9c1b78fbdbccbcc979d7642162a577c28da33a28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): java/src/main/java/org/lance/index/scalar/BitmapIndexParams.java:51-63 | java/src/main/java/org/lance/index/scalar/ZoneMapIndexParams.java:56-64 \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":"java/src/main/java/org/lance/index/scalar/BitmapIndexParams.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cceb79c91902fba94e8d9d64b166eeeaef12d4dca2db56bc27042c5bd81739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): memtest/src/allocator.rs:251-260 | memtest/src/allocator.rs:411-424 \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":"memtest/src/allocator.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41d8cdca7eeb29658719717af1d8f39be4f879f54bd573c0e6ab11c88a31296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-encoding/src/buffer.rs:53-60 | rust/lance-encoding/src/encodings/logical/primitive/field.rs:786-796 \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":"rust/lance-encoding/src/buffer.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"188aac60e77a15642de289eb6646e4cf21984fdb7bb4b85248a49189dca555e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): rust/lance-index/src/scalar/btree.rs:681-693 | rust/lance-index/src/scalar/inverted/documents.rs:292-304 | rust/lance-index/src/scalar/inverted/wand/posting.rs:581-593 \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1f99e28193ca22a5e4a1e5069dc3afe23bbd015d92eda330634e920f5a7f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-index/src/scalar/label_list.rs:1197-1204 | rust/lance-index/src/scalar/bitmap.rs:2749-2755 \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":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6c2b747982e913f6667999b77f76f922ebc72d0947b198125d8821fc138db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-table/src/format/fragment.rs:138-150 | rust/lance-table/src/format/fragment.rs:153-165 \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":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5013c419b1aa662281c50f2eed1c8cc4738ebbec3332c37cbce981f120482c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): java/lance-jni/src/blocking_dataset/construction.rs:376-402 | java/lance-jni/src/fragment.rs:233-260 \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":"java/lance-jni/src/blocking_dataset/construction.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a1e615f1d48813539999c5323554e9d87248e07f75a0da6781b228eb6be71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): java/lance-jni/src/blocking_dataset/index.rs:1030-1045 | rust/lance-table/src/transaction/operation.rs:381-393 \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":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"701c690ce2ea7b82958bbd004b179d008b62ae5f7ddb1d68351ed637d037ee50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-datafusion/src/signed_zero.rs:368-375 | rust/lance-index/src/scalar/zonemap.rs:409-416 \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":"rust/lance-datafusion/src/signed_zero.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e98d6ed9abc9b0bd387ba712d6c360c63ca4f4680c74b97346a6c1d548f0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/lance-index/src/scalar/inverted/documents.rs:177-191 | rust/lance-index/src/scalar/inverted/index/doc_set.rs:767-781 \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":"rust/lance-index/src/scalar/inverted/documents.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"053b1f8cccd43b3d84fef7fdf650b4cc483ee0d26c64d4f8fb6b62b284f7612a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/blob/locate.rs:22-30 | rust/lance-core/src/datatypes.rs:216-224 \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":"rust/lance/src/dataset/blob/locate.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab0403700c346de595a6ed3a98150e1c8e560bdf1193ce1e802f84e1a241348"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): rust/lance/src/dataset/mem_wal/write/backpressure.rs:209-220 | rust/lance/src/dataset/mem_wal/write/backpressure.rs:231-242 | rust/lance/src/dataset/mem_wal/write/backpressure.rs:251-262 | rust/lance/src/dataset/mem_wal/write/backpressure.rs:266-278 | rust/lance/src/dataset/mem_wal/write/backpressure.rs:286-298 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/backpressure.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4b2272f294b70d734a6eff5d49193c2ee30738116754489400e4d432ca6c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:108-115 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs:92-99 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a3380d2a16a29608639b95470137aac5addde39e1ce86d032bdadcfab39181"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): python/src/dataset.rs:149-160 | python/src/dataset/blob.rs:38-48 \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":"python/src/dataset.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcd2337da0ea10d20d99c0301fababaf57910d421d9cc9f5a03c14cc24fa71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-datafusion-exec/src/exec.rs:105-111 | rust/lance-datafusion/src/exec.rs:608-614 \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":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5521060247cf0bee5a2cc2618cbe16b909ebd5f7e2128b2bfcc5ec0aa20e4e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/inverted/index/cache.rs:328-336 | rust/lance-index/src/scalar/inverted/index/posting_list.rs:671-679 \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":"rust/lance-index/src/scalar/inverted/index/cache.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2f48985fcd889496388a0923b38b859e897f2235376bc17f3d36bde8b68e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-index/src/vector/sq/storage.rs:478-485 | rust/lance-index/src/vector/sq/storage.rs:493-501 \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":"rust/lance-index/src/vector/sq/storage.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db9b5703bd4ece6312c619b25b99cd6d5c0373eaed0f1e7651dc0e3b4669be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-namespace-impls/src/connect.rs:88-98 | rust/lance-namespace-impls/src/rest.rs:88-97 \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":"rust/lance-namespace-impls/src/connect.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"301fa7b2d966ebda10856ae92635d4435ff5e52cd66a8d363d95a89f1bcd0178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/lance-core/src/utils/row_addr_remap.rs:935-949 | rust/lance-table/src/system_index/frag_reuse.rs:268-278 \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":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfae48cf89f8d69c70da702f08d4e09012677b5c3ed6c7ae4f3eae8244909a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): python/src/dataset/optimize.rs:487-495 | python/src/fragment.rs:1116-1124 | python/src/schema.rs:33-41 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"c017dccc347a5099467018f60cc826656632d00d0707d6dff5692a42a2b2de15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/bitmap.rs:2006-2014 | rust/lance-index/src/scalar/zonemap.rs:2084-2092 \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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dae6890ffe261ea248d8b01c62c4709999c5277f26ea0cebdf218e012589c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:126-134 | rust/lance/src/index/vector/ivf.rs:3942-3948 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cfa5ee32ab0da0ee5bb3535bed59deff31c15bfe6df8c5d8f5f64ef97a466e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-jsonb/src/core/builder.rs:132-138 | rust/lance-jsonb/src/core/ser.rs:222-228 \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":"rust/lance-jsonb/src/core/builder.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c03ef816cb531e0c35c291e8d04fc9a74b39028d7f0cc7604d6fef4f72ce8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:230-235 | rust/lance-file/src/writer/structural.rs:189-194 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d973cfd328828579040b0ee24e0488abacd98a0ab6744bfed32a6d85fb5bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): rust/lance/src/dataset/mem_wal/scanner/exec/first_by_pk.rs:47-61 | rust/lance/src/dataset/mem_wal/scanner/exec/ordered_concat.rs:39-47 | rust/lance/src/dataset/mem_wal/scanner/exec/pk_block_filter.rs:73-88 | rust/lance/src/dataset/mem_wal/scanner/exec/schema_relabel.rs:45-57 \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":"rust/lance/src/dataset/mem_wal/scanner/exec/first_by_pk.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8100c555180c4c36160182ecb9ff1c9b07837631199b07dfa2446a1a7af21ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): rust/lance/src/io/exec/fts/flat_match.rs:728-741 | rust/lance/src/io/exec/fts/flat_match.rs:785-799 | rust/lance/src/io/exec/fts/match_query.rs:224-236 \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":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e02651cac027f6a30027881baa39846d2144cb171dd8b1eb4c08b5549d5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance/src/io/exec/fts/match_query.rs:286-298 | rust/lance/src/io/exec/fts/phrase.rs:251-263 \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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d803cb1b0384b3ef71c9e4ea7a9948ca4e0644cfbfea1587a5c1def808fbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/lance-jni/src/fragment.rs:1073-1082 | java/lance-jni/src/update.rs:79-85 \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":"java/lance-jni/src/fragment.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcd44c198cbf2a95e2aeaa6a3c56512bdbdf3e2efbc016d3b6e3f4010405004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:857-864 | rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:625-630 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:2247-2252 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8db2619bc862873c81f3614924d479be296b9d1fdc35c3c45e468bbb3c85f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): rust/lance-index/src/vector/hnsw/builder.rs:66-72 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:1253-1256 \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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab799ac4456f3b8ba06f86f5dd0e1c2957f890c3b6adb671cff31002f832fb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): java/lance-jni/src/blocking_dataset/index.rs:406-412 | java/lance-jni/src/blocking_dataset/mutation.rs:173-179 | java/lance-jni/src/blocking_dataset/refs.rs:596-601 \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":"java/lance-jni/src/blocking_dataset/index.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce783bbadc7a0e83b16f24c961eb2ffd2f8330fabdfc4b7661e0ab33d8ef5ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): java/lance-jni/src/mem_wal.rs:1422-1427 | java/lance-jni/src/utils.rs:680-689 \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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8d37bb254d1cf69c691bdb74f6f16f2106c1bec76fd290efe8ef0979bf7c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:94-100 | rust/lance-encoding/src/encodings/physical/rle.rs:2244-2250 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6b3683aad76d411e0defb88060d8c5a138f6c85f145d080831ba072a77d4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance-index/src/vector/bq/dist_table_quant.rs:162-173 | rust/lance-index/src/vector/bq/prune.rs:128-141 \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":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe26bdbcaa829396636ff2ca3c08e3fba252babba4276038fe911a9f9022a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:740-740 | rust/lance-linalg/src/distance/l2.rs:804-804 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e08391bb42c28490a9927d0600e355f0f632af4026c20c2803cc6445ee7026"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:757-757 | rust/lance-linalg/src/distance/l2.rs:822-822 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"9647e040008e4d6312311be4a1b1d63954e71549e6d4a1194614e3ca4bb34826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): rust/lance-linalg/src/distance/dot.rs:774-774 | rust/lance-linalg/src/distance/l2.rs:839-839 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09c93023058b51ba72148a05d92e6373d9293eda5749c448795702bd40a5317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:989-995 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:861-867 \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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"183189cb12cc64b884047bcb5ebd5d84ace407b4cdcd493918d9a690274b253a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/lance/src/io/exec/count_from_mask.rs:477-482 | rust/lance/src/io/exec/scalar_index.rs:475-480 \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":"rust/lance/src/io/exec/count_from_mask.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"822bda3293485e870de5f2723fadcc0114049c0b05839f973499b370c6ef8d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/lance/src/io/exec/fts/match_query.rs:161-172 | rust/lance/src/io/exec/fts/phrase.rs:135-146 \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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a408e7dfea2a15e104ea43c75919b7063631c70120aa7b92faccef64e8c25f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): java/lance-jni/src/fragment.rs:1180-1189 | java/lance-jni/src/utils.rs:694-703 \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":"java/lance-jni/src/fragment.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dfb9b575c0730e291681104fb7bf6e4cbfb7fa811041d48d20b814156c27fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-file/src/versions/v2_0/writer.rs:276-296 | rust/lance-file/src/writer/structural.rs:247-256 \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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ec1913000c246bf6cc66b86fd7385666bf11cf3b74551e0fbd47fe2db4a83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/lance-jni/src/fragment.rs:573-581 | java/lance-jni/src/transaction.rs:483-489 \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":"java/lance-jni/src/fragment.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"92908bd5009c0c3227c4d6df63f1b2a958c030e86030d7e67318089ce1b355f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/arrow-scalar/src/serde.rs:61-71 | rust/lance/src/dataset/mem_wal/index/fts.rs:3909-3919 \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":"rust/arrow-scalar/src/serde.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf277d303782c50087295dcab0ec97bc4660b438e0486bbe743c44e8611e327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index/src/scalar/btree.rs:4439-4448 | rust/lance-index/src/scalar/ngram.rs:2076-2085 \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":4439}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c5beb3cf6766b5ff277aa728c2ebcec5fb5e2163c48c64d5a598e35fd951ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-index/src/scalar/minhash_lsh/mod.rs:505-511 | rust/lance-encoding/src/encodings/logical/primitive/dict.rs:221-225 \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":"rust/lance-index/src/scalar/minhash_lsh/mod.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c2cc11394d7275e776d6013904f306d4954d49744ead480df8f3b8ec322784"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:86-92 | rust/lance-encoding/src/encodings/physical/rle.rs:2236-2242 | rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs:189-196 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8703c4e6640e6b6b140d41688b8b37957c699eee56c7d20e6492dd4cb5573c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): rust/lance-file/src/versions/v2_1/mod.rs:126-134 | rust/lance-file/src/versions/v2_2/mod.rs:122-131 | rust/lance-file/src/versions/v2_3/mod.rs:134-139 \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":"rust/lance-file/src/versions/v2_1/mod.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a8a93bd547755924f7e87d6d809a41a38704c65e34a8c93317decbbe4e7f42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index/src/vector/bq/builder.rs:1075-1085 | rust/lance-index/src/vector/bq/storage.rs:339-348 \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":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2683494e2b9966ad0828a7a2e603872a34987e602396659ee53792563d0e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/src/main/java/org/lance/Dataset.java:2837-2843 | java/src/main/java/org/lance/memwal/LsmScanner.java:74-81 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"14542f7fcd90886ab0ce0d2d098cea7a2b48f46f0c6387a273cd34fc77b7b35d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/src/main/java/org/lance/Dataset.java:2998-3004 | java/src/main/java/org/lance/memwal/LsmScanner.java:94-101 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":2998}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc9a59eac1ca20a5dfa9bd68013f36288c80924eb518c1f313d388e0736bded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): python/src/datagen.rs:65-71 | python/src/lib.rs:132-137 \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":"python/src/datagen.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce774befd03ac4ae971877828e81ad1801519881c5f6b397c1ed1bf4c0499db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): python/src/dataset/optimize.rs:231-239 | python/src/fragment.rs:991-996 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b6eb31d042841b7755d34b05854582bc7da114f2edfd4066ea3dd8e209d48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): python/src/dataset/optimize.rs:343-351 | python/src/fragment.rs:1043-1048 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b43a98422b746cb39b139080778b00b5e28b1ccec50eaa25439aae98c1c327a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): python/src/dataset/optimize.rs:461-469 | python/src/fragment.rs:1096-1104 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"3699717bf1aa93926174b85291d427c7275d8b4885fadccc8fa2ac63761566a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-geo/src/query.rs:91-99 | rust/lance-index/src/scalar/expression.rs:619-627 \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":"rust/lance-geo/src/query.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb7b1bb2af32afa683232281d2a180f1b44700eed12e7c58c205e7c8e4f32b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-index/src/scalar/bitmap.rs:2776-2788 | rust/lance-index/src/scalar/label_list.rs:1225-1239 \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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":2776}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8b13238f075cc1d728264c02ca96de1f2c84e7a4c7bb8a0db2b04a43d77709"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:2875-2878 | rust/lance-index/src/vector/flat/storage.rs:75-79 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c3f6c92d01bb524a87373b04a23ddfacf3bc4607f9e0bf089b13295013122"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-index/src/vector/pq/storage.rs:226-239 | rust/lance-index/src/vector/storage.rs:724-728 \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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a57fefcbdc6cd826f4eddffa665991c692039fac67e9ebcc7f2d4ae45a30c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/lance-index/src/vector/flat/index.rs:682-691 | rust/lance-index/src/vector/sq.rs:233-242 \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":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"31671fd010b3cc0b579c37a7695fa28bc98fd29ee97d214802ca01cd5cda11ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-arrow/src/bfloat16.rs:24-31 | rust/lance-arrow/src/json.rs:38-46 \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":"rust/lance-arrow/src/bfloat16.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6837757a21945ebbc4bc06b8dbf0e4dee8a38128f00ea8edefbfb537b22f9656"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-index/src/vector/bq/storage.rs:3044-3048 | rust/lance-index/src/vector/sq/storage.rs:328-339 \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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":3044}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2c4e88904c59dc053c00908aedc506dec8c9fb6ea6529047c7e6d8a3e99c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/src/main/java/org/lance/operation/Merge.java:56-62 | java/src/main/java/org/lance/operation/Overwrite.java:86-93 \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":"java/src/main/java/org/lance/operation/Merge.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba188a5472d3e237a2b572447b730f59912fc476a6a488d733d12506d411c6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance/src/io/exec/knn/batch.rs:201-207 | rust/lance/src/io/exec/knn/warp.rs:833-840 \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":"rust/lance/src/io/exec/knn/batch.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"72abd346b13d734367199794946e844a288b414c93415254a05b13ddcc2e14fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): python/src/dataset.rs:3207-3210 | python/src/fragment.rs:696-699 \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":"python/src/dataset.rs"},"region":{"startLine":3207}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde672e88bf36868ef1f7d9948b8856bb85ba03525766e8712ced447dbc4d5ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/lance-core/src/cache/telemetry.rs:668-673 | rust/lance-io/src/object_store.rs:2593-2598 \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":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7b40da1b39ed036041a9d07c6cb03fe7cf3bfdb962086a14c6f98015b17871"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-encoding/src/compression.rs:1802-1809 | rust/lance-encoding/src/encodings/physical/rle.rs:2460-2471 \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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"0184d8cd9370428727b66284f7701b5d41c9dedf8e7343e7faef7e536fabf8c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance/src/index/scalar/zonemap.rs:185-189 | rust/lance/src/index/vector/ivf/v2.rs:854-858 \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":"rust/lance/src/index/scalar/zonemap.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f156c3dc636aa74111b40f52285a2630f5f3c7c0e4aa1e54d3f61497767759a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): python/src/dataset.rs:1856-1859 | python/src/fragment.rs:685-688 \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":"python/src/dataset.rs"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"323efbe4494364725e4aa84e4ae60e105f20c14fa1541b1d9976ca6ecc0b3d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/lance-file/src/reader/structural.rs:174-179 | rust/lance-file/src/versions/v2_0/reader.rs:177-182 \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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"105b4abb0e5ef6f65c3602925059cd09172705fc6357465d1334d8c475b24394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:44-50 | rust/lance-linalg/src/simd/f64.rs:42-48 | rust/lance-linalg/src/simd/i32.rs:47-53 | rust/lance-linalg/src/simd/u8.rs:77-83 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e39190a6b71694edadfd7ae557f9e143c303a5d0a38ee85796b88ff2b8d5322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): rust/lance-linalg/src/simd/f32.rs:164-171 | rust/lance-linalg/src/simd/f64.rs:57-64 | rust/lance-linalg/src/simd/i32.rs:62-69 | rust/lance-linalg/src/simd/u8.rs:92-99 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97201037da6f9d347616fbca0f220bd3c6d04ff19bc78ed2b81d9bfa24f490e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance-linalg/src/simd/f32.rs:619-625 | rust/lance-linalg/src/simd/f64.rs:470-476 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe04f88c8b5c81f868fc0eaf26ddc8069262c6415caf5ce3ea3cdd8e5bb9a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-linalg/src/simd/f32.rs:634-641 | rust/lance-linalg/src/simd/f64.rs:485-492 \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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3a4600682d817a007cdf35029094b344a99dd0109d7d5a71aea4ccee2890ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:593-600 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:176-183 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs:702-709 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:215-222 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:339-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 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"302e73d67f9280c6213e40cdfda784a52a9721c196310e2478f4673160a23d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): java/lance-jni/src/blocking_dataset/mod.rs:34-38 | java/lance-jni/src/blocking_dataset/read.rs:696-700 \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":"java/lance-jni/src/blocking_dataset/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0285901486ea307cbc9e5d43881f4b24408993935aae586212260ba1eb8cf67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): rust/lance-arrow/src/json.rs:446-449 | rust/lance/src/dataset/blob/rewrite.rs:333-338 \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":"rust/lance-arrow/src/json.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a895ce9ae5b565ad8ffa4df06ef34464c2403c150267f4284dbe49294e3d276"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/exec/coalesce_first.rs:99-107 | rust/lance/src/dataset/mem_wal/scanner/exec/pk_block_filter.rs:92-105 \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":"rust/lance/src/dataset/mem_wal/scanner/exec/coalesce_first.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0046f9a3fe7b9b918e116355013a2a3f865944a53847c636bb0c6b9a7a9ddb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): java/lance-jni/src/merge_insert.rs:275-278 | java/lance-jni/src/update.rs:101-104 \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":"java/lance-jni/src/merge_insert.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1295f2d82c009256b19f6eab5c68e1661ac7369762c0c3b55f62336efbc3dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): rust/lance-encoding/src/array_encoding/strategy.rs:773-778 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1678-1683 | rust/lance-io/src/uring/thread.rs:153-160 \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":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"64421043b99244531004aae3c18a94500dbf7473bfa10da450f2a53cd4f24f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/lance-file/src/versions/v1/mod.rs:63-70 | rust/lance-file/src/versions/v2_0/reader.rs:225-232 \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":"rust/lance-file/src/versions/v1/mod.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1814226d78f00b68c75813acb496d1c96c23cb23ea599f10e45426dd1c51b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:688-692 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:461-465 \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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2d66213dedcf0b6c69a7b2c5af099a7c8f599638e10504233f1fdd45d900d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/lance/src/index/loading.rs:485-491 | rust/lance/src/io/commit/conflict_resolver.rs:164-170 \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":"rust/lance/src/index/loading.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b96a984ef1988c65390a3eb428eefadcbee1aaa1d3604a34a5b512f714da7de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): java/lance-jni/src/blocking_dataset/read.rs:643-649 | java/lance-jni/src/fragment.rs:605-611 \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":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb5721419aa393d51bed1cf587e8282f6a48d3003197c6da25203ff188b9cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): python/src/dataset/optimize.rs:323-330 | python/src/fragment.rs:1086-1093 \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":"python/src/dataset/optimize.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9273062d9be42ede6557eaafaf472cb56711df9587ecdb340cac018b8264bf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-core/src/cache/mod.rs:1040-1044 | rust/lance-core/src/cache/moka.rs:208-212 \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":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4cb66385fd90c0f015a5694e2a3e18a831e6341f3a37c52e53642315f5954b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/lance-index/src/scalar/fmindex.rs:2368-2382 | rust/lance-index/src/scalar/ngram.rs:2143-2155 \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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7d1bb8961c6d02fc053c09346c4a559c055f7b6d9a1a0c715caa60a8a09d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance-index/src/scalar/minhash_lsh/mod.rs:666-676 | rust/lance-table/src/io/manifest.rs:315-323 \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":"rust/lance-index/src/scalar/minhash_lsh/mod.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95464f30e85a0144b06c2fe2c200177ddf5e2f6e5d6d0227583702827427519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/lance-tools/src/manifest.rs:1453-1457 | rust/lance-tools/src/meta.rs:54-58 \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":"rust/lance-tools/src/manifest.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9292d9a07d2028860996df7771dcc73d54b35ba567151fc2d5b4d6398fe1296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/dataset/mem_wal/scanner/exec/bloom_guard.rs:118-130 | rust/lance/src/dataset/mem_wal/scanner/exec/generation_tag.rs:88-96 \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":"rust/lance/src/dataset/mem_wal/scanner/exec/bloom_guard.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf21c6e28765a2aad40716ac0cd1dc6c155379d2b3cecf70ac46708deae7c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): rust/lance/src/io/exec/ordered_index_scan.rs:514-522 | rust/lance/src/io/exec/scan.rs:823-831 \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":"rust/lance/src/io/exec/ordered_index_scan.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"be47e59b9c229b84eee3a24b332bea2b588be2edb7c8acc2645e83d2591a46b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): java/lance-jni/src/mem_wal.rs:959-974 | java/lance-jni/src/session.rs:40-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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"2181ef1b12c59a712c69b3545db2dfad08baeaa3e82861465c883e84a3fa5b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60\u201363 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1229-1291 | rust/lance-index/src/vector/distributed/index_merger.rs:1390-1449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1229\u0060 it does not close everything it opens, so those exact 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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"85994e8b0f73c20944e6f5d5f0ec4e796bd257911a17326abf7702a58f918694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201361 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1057-1117 | rust/lance-index/src/vector/distributed/index_merger.rs:1486-1541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e864eabf75c75b78a61686235ff0151a423487639a4683bb14b0a5393c4171c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201350 lines \u00D7 3): rust/lance-io/src/local.rs:298-302 | rust/lance-io/src/uring/current_thread.rs:314-363 | rust/lance-io/src/uring/reader.rs:124-173 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/reader.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/local.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-io/src/local.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3d34839b23a5a750d33f7cca32b7288bed7d14e05392bae05d982f20f33ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:631-678 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:744-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 \u0060rust/lance-index/src/scalar/inverted/index/inverted_index.rs:631\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"078a91b12b415535042d8d37e86d396d67aca08c69762104c5374b80f7763ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:585-629 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:698-742 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/inverted_index.rs:585\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e5c799c8356b83b383f834302eca41248d9145e8629ed6bc62cf0f57a07f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): rust/lance-file/src/versions/v2_1/reader.rs:27-77 | rust/lance-file/src/versions/v2_2/reader.rs:27-77 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/reader.rs:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0c790a14c6d9a7e3690d0d9b5eee7c0137dac02668f5964270e9e130dfa975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75\u201383 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:472-546 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:202-284 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"52687aa6cc1359c3a7ce6b75df48de438841c1d60ff099639f62a22bcbc40e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): rust/lance/src/dataset/fragment.rs:4051-4089 | rust/lance/src/dataset/fragment.rs:4244-4284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/fragment.rs:4051\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":4051}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d64329b1b53387aed578f7e702484941166f884a5380279429ef9732dc2a825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 3): java/lance-jni/src/namespace.rs:386-424 | java/lance-jni/src/namespace.rs:710-748 | java/lance-jni/src/namespace.rs:899-938 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2037a8c51440df9eb7cb3164e4448c0c1a5aa7a8282960691f750093716b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1534-1572 | rust/lance/src/index/vector/ivf.rs:2931-2969 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:1534\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"868bffa0b294b027ea154facc452ffe8d5e01d375860b73290ca6c76630b4832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): java/lance-jni/src/async_scanner.rs:278-314 | java/lance-jni/src/blocking_scanner.rs:761-797 \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":"java/lance-jni/src/async_scanner.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef22917fc1aed2f2d6bdd267e2469d18372240f92a567e395c308679cad0e23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): rust/lance/src/index/create.rs:408-444 | rust/lance/src/index/create.rs:854-888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/create.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. 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":"rust/lance/src/index/create.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f590b898ead964f5255a4cdb7118cf0f90dda654c258d0e91034178247c1d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:619-654 | rust/lance/src/io/exec/fts/phrase.rs:532-567 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd598abbb9d9f102be851acf02f1913cd1c3db3d7e1611f2115af1d9212b1e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): java/lance-jni/src/async_scanner.rs:211-243 | java/lance-jni/src/blocking_scanner.rs:692-725 \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 \u0060java/lance-jni/src/async_scanner.rs:211\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/async_scanner.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3f0ee3a50b86932eef528a87fb8142b7e88a5dfa127b1f5bf8d8ac6f7708fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201334 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:600-633 | rust/lance-file/src/writer/structural.rs:309-337 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2158796beb4b2a281dca3440a6fbd1ab02de3ce670b9854d2cbe8b162c5249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1293-1325 | rust/lance-index/src/vector/distributed/index_merger.rs:1451-1483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43466ec42db1d56285bf7f220d23278945e4f2d082dadc37a1b69e4ade08c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): rust/lance-file/src/versions/v2_1/writer.rs:159-190 | rust/lance-file/src/versions/v2_2/writer.rs:159-190 | rust/lance-file/src/versions/v2_3/writer.rs:159-190 \u2014 \u0060rust/lance-file/src/versions/v2_1/writer.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/writer.rs\u0060 are one unit implemented once 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/writer.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d6abbe2d24f76673875032923411e38ae0f8383a8ed03d5ab52111053d630b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 3): rust/lance-namespace-impls/src/dir/manifest.rs:4295-4326 | rust/lance-namespace-impls/src/dir/manifest.rs:4360-4389 | rust/lance-namespace-impls/src/dir/manifest.rs:4412-4441 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:4295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060AlterTableAddColumnsRequest\u0060 in one and \u0060AlterTableAlterColumnsRequest\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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":4295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8433098960efa462bd5693f92e35f1a9c34ff8c30d1f5023c86406394fb1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1419-1450 | rust/lance-encoding/src/encodings/physical/alp.rs:1543-1574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1419\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e79ca7fdcd804d51dcc2f3f9dbc1bfff8e4dc11fba1adfa87cb9795cbb47e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): rust/lance-file/src/versions/v2_2/mod.rs:79-110 | rust/lance-file/src/versions/v2_3/mod.rs:91-122 \u2014 \u0060rust/lance-file/src/versions/v2_2/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_2/mod.rs:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_2/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f51ac43a521fab3b7c68f53734af746f313098d9d0e9bbbdc5cab6b536a941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:320-350 | rust/lance-encoding/src/encodings/physical/alp.rs:362-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:320\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b828be82e4067dbfe1545a9a3f3db394ce687bafb1a9106c7c6e48ba2b940238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/planner.rs:473-503 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:763-793 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/vector_search.rs\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/planner.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":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a599a23bdca2e2be177358259c45ed8e45cd8568c98dc07d6db3abe67a52c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1710-1739 | rust/lance/src/dataset/scanner/fts.rs:2073-2103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1710\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc5e90304be5e5140a4741df46fe8cca56e9416be85202dbd67ca3eabe90e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): rust/lance-encoding/src/array_encoding/strategy.rs:145-174 | rust/lance-encoding/src/encoder/structural.rs:43-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9454e4b6e0d25417039229effbf5cc10341a033955903fcd0d8e18f31ba2bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:336-365 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:406-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/inverted_index.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":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"862f85e3d9b9319283d61f4032043867721b000f5d33770a207df65315f83ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201330 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:1463-1483 | rust/lance/src/index/frag_reuse.rs:2033-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/frag_reuse.rs:1463\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2db92155eee980127e9d314092f4a6305b02033278cf767bbfab9741c59eb84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): java/lance-jni/src/otel.rs:244-270 | python/src/otel.rs:302-330 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e60973bf093b1a6c72b0ed092f64b6f701fff4d665c59bd720cbabb0dd9bea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): rust/lance-index/src/scalar/inverted.rs:164-191 | rust/lance-index/src/scalar/inverted/index/search.rs:424-452 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/search.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted.rs:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"933eec907495c7eb5fb99883fa55af5d0003d44deade85cc52cf6377f3b83f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201329 lines \u00D7 2): rust/lance-io/src/uring/current_thread_future.rs:38-58 | rust/lance-io/src/uring/current_thread_future.rs:70-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread_future.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50eb1dcc41bee1d45c62c77a4553cdeb73beafd04d241a539927004ec1718f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): rust/lance/src/index/create.rs:921-949 | rust/lance/src/index/create.rs:1009-1036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"48283d9c6291c352d8384af6bbf776c8d306dbc8c8192fd1bf7d96984d03c796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): rust/lance/src/io/exec/scan.rs:473-499 | rust/lance/src/io/exec/scan.rs:507-535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"214e4e397f0c2d7e26ba001ec770d8371af9373b8686537186dbe80633ab9eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): java/lance-jni/src/lib.rs:135-162 | python/src/lib.rs:235-262 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"java/lance-jni/src/lib.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f241f2129064fb512ccc69e4338c08b09a03eda5f31b37ddeff29b870b347b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:2300-2325 | rust/lance-index/src/scalar/inverted/builder.rs:2378-2405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/builder.rs:2300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":2300}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d2ee3409df3d2a54e52e4373d1036012ad71a220a1bc7dbc5506ecb3587d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:1134-1160 | rust/compression/fsst/src/fsst.rs:1179-1205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/fsst/src/fsst.rs:1134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ed6864afbc8104c12006c1a673b17794445059dc3fed0f27508776b6a9d4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): rust/lance-encoding/src/utils/accumulation.rs:113-139 | rust/lance-encoding/src/utils/accumulation.rs:187-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/utils/accumulation.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffb3520ecb238d57f6503e76993cdf6b2ab940a2a427678a8fa0a862a1f2aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): rust/lance-file/src/versions/v1/writer/statistics.rs:344-370 | rust/lance-file/src/versions/v1/writer/statistics.rs:418-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 \u0060rust/lance-file/src/versions/v1/writer/statistics.rs:344\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e53b9d16013df1a32a0e788db8740d64e3988ba26ce889396245bc3ecc5e38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): rust/lance-datafusion-exec/src/chunker.rs:278-302 | rust/lance-datafusion-exec/src/chunker.rs:384-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 \u0060rust/lance-datafusion-exec/src/chunker.rs:278\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/chunker.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d81fc2fd80805c5d5cdf560332b2aa8e262a113b3b39233cbef610d9f6f31e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1191-1216 | rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1228-1253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1191\u0060 it begins part-way through the construct above it, so those exact 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":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56c3ae5f182f073b6f64326eaf9798ae1a4442a26801c5401ab9551ab1d1a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/write.rs:171-196 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:203-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4eee65a7770e69a86f15a7efa05109b4902ea623722f19218f5e360609d9569"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): rust/lance/src/index/vector/ivf/io.rs:214-239 | rust/lance/src/index/vector/ivf/io.rs:322-346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4b280626a4ab72eb122f93cc7fee4550419affc5fd224e5d23d52034a8b70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): rust/lance/src/io/exec/fts/flat_combined_fields.rs:509-531 | rust/lance/src/io/exec/fts/flat_match.rs:1165-1190 \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 \u0060rust/lance/src/io/exec/fts/flat_combined_fields.rs:509\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_combined_fields.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"f071b06ca451df0c49a45f25fc91518c098d4be4980af1b1b172b31c348e4020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): java/lance-jni/src/blocking_dataset/read.rs:604-628 | java/lance-jni/src/blocking_dataset/read.rs:907-931 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_dataset/read.rs:604\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f35fbfd67a6ab99cf54278accd44c53cba3c2f8682c13d458dfdaeae75da611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:31-55 | rust/lance-file/src/versions/v2_0/reader.rs:31-55 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e607e0baa4d86daa174e9068d09f0967432852ee2ec829741a8d611c2e02c36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-index/src/scalar/bloomfilter.rs:534-558 | rust/lance-index/src/scalar/zonemap.rs:1135-1159 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bloomfilter.rs\u0060 and \u0060rust/lance-index/src/scalar/zonemap.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bloomfilter.rs:534\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e12b22561f2d842f7be2395a5859a0667475cc13e286677a75c328366910ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:370-394 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:664-688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f654b378faf804a086db209f5ceb2e95c6720339418bb594e9f4a712a333183a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:171-195 | rust/lance-io/src/uring/thread.rs:467-491 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/thread.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/uring/current_thread.rs:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ec9de9d441d64f502dca3fdb9777f746b5d1f4c36924a8796245b23a0099da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-jsonb/src/core/iterator.rs:51-75 | rust/lance-jsonb/src/core/iterator.rs:131-155 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-jsonb/src/core/iterator.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fb9533f4eee981d3d778affc07c619d76ea845d8811a118f5965641553fa0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-table/src/rowids.rs:98-122 | rust/lance-table/src/rowids.rs:139-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 \u0060rust/lance-table/src/rowids.rs:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8215c4855f5d787e4f3b9a33773805610742efaffba13db23bb5e32a588415b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance/src/dataset/blob/prepared.rs:26-50 | rust/lance/src/dataset/blob/write.rs:599-623 \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":"rust/lance/src/dataset/blob/prepared.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2f32d08724465eec005ff540c39172e256b22c843cb73d12130b7331ccef41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:130-154 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:105-129 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"014615d02c11c9951c8330a6ed012801f2f3791eb7a26b1ade0e825a4d0495b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201325 lines \u00D7 2): rust/lance/src/dataset/mem_wal/write/tasks.rs:71-89 | rust/lance/src/dataset/mem_wal/write/tasks.rs:95-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 \u0060rust/lance/src/dataset/mem_wal/write/tasks.rs:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/tasks.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a1f41d11cf6dfc6a2ee8084eaa27702ab2135fed7a8e754c6c9040ffcf3f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance/src/dataset/optimize/remapping.rs:396-420 | rust/lance/src/dataset/optimize/remapping.rs:1117-1141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/remapping.rs:396\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0bbc49035e2dcdbcc411bc0760e40d025efe10b5d89b9bf8bbfe4eda3b893a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): rust/lance-namespace-impls/src/credentials/aws.rs:552-575 | rust/lance-namespace-impls/src/credentials/azure.rs:835-857 | rust/lance-namespace-impls/src/credentials/gcp.rs:888-910 \u2014 before extracting anything, compare \u0060rust/lance-namespace-impls/src/credentials/aws.rs\u0060 and \u0060rust/lance-namespace-impls/src/credentials/gcp.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/aws.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"801fcead7fbbfe6a26cf51e88f01f416eb5990d668d3d6b80c14881e589c3155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): java/lance-jni/src/lib.rs:109-132 | python/src/lib.rs:209-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/lib.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d27ce649a5cd14c198d70a929903e6203021dec942c2a4683b56f555f0d4993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): java/lance-jni/src/transaction.rs:1369-1392 | java/lance-jni/src/transaction.rs:2360-2383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060java/lance-jni/src/transaction.rs:2357\u0060 calls \u0060extract\u0060 and \u0060java/lance-jni/src/transaction.rs:1368\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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc1746383c7d2ad3abf6561bd80b61e3190df3730ab477350f6ae2a003d5435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance-core/src/cache/moka.rs:264-287 | rust/lance-core/src/cache/quick.rs:484-507 \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 \u0060rust/lance-core/src/cache/moka.rs:264\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/moka.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcfd43f633708d21603127700f1d5d4b613a7964ca0f7554cb3c63409abaeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1369-1392 | rust/lance-encoding/src/encodings/physical/alp.rs:1493-1516 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e671a12e0eb63861cccf9ad4c213b5bde4f637137b4cf480f7571759fd959fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/search.rs:870-890 | rust/lance-index/src/scalar/inverted/index/search.rs:1149-1172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/search.rs:870\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"145f64be2c17e2c095b2c5f8faec9222708fb8279ffdf6c741745098cf0cb6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance-index/src/vector/graph.rs:404-427 | rust/lance-index/src/vector/graph.rs:505-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/graph.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e38f1ad29880e051cf2283f3c42feba1b9a9c363846be9236b7764314510d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:407-430 | rust/lance-linalg/src/simd/i32.rs:247-270 \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 \u0060rust/lance-linalg/src/simd/f32.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060val\u0060 to \u0060f32\u0060 in one and \u0060i32\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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c4b2b559d41c3eeb8b6f27b54151cad96791685d0a301dea71c51255920ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/flush.rs:313-336 | rust/lance/src/dataset/mem_wal/memtable/flush.rs:594-617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/flush.rs:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"95de9395f4b9d9ad6f309a7ef7d2f058207483c90dcae0b97c5b091b32d16c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/planner.rs:406-429 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:658-681 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/vector_search.rs\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e97ae0a8bd5bc581c8a5372c9118995207acf491ab79d1965828c92663bd326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): java/lance-jni/src/blocking_dataset/construction.rs:519-541 | java/lance-jni/src/fragment.rs:360-381 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060java/lance-jni/src/blocking_dataset/construction.rs:519\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/construction.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8662fc94c74ba48348fed5899cd7cac17c937ce7b7206636c2446c9457b59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): java/lance-jni/src/optimize.rs:106-128 | java/lance-jni/src/optimize.rs:326-348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/optimize.rs:106\u0060 it does not close everything it opens, so those exact 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, \u0060java/lance-jni/src/optimize.rs:325\u0060 calls \u0060extract_object\u0060 and \u0060java/lance-jni/src/optimize.rs:105\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":"java/lance-jni/src/optimize.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecbfa78c65f94978d56201ba88d0dbe605a1889fc4a9d283092fdd786e7cea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): rust/lance-table/src/io/commit/external_manifest.rs:81-103 | rust/lance-table/src/io/commit/external_manifest.rs:691-710 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/io/commit/external_manifest.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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48bfdf51b029595652c868492cdbdf9c90ade612eba19216642043a35c7114d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): rust/lance/src/dataset/index/frag_reuse.rs:190-212 | rust/lance/src/dataset/index/frag_reuse.rs:231-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/index/frag_reuse.rs:190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8764ef85e20ba0f8d2e2c26707263ac87864ea5c88b03d053bc0eaae903a54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/flush.rs:372-391 | rust/lance/src/dataset/mem_wal/memtable/flush.rs:667-689 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/flush.rs:372\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/dataset/mem_wal/memtable/flush.rs:369\u0060 calls \u0060create_pk_index\u0060, \u0060indexes\u0060, \u0060path_to_uri\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/flush.rs:667\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":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9eb699ec10fde1d1cb5c7b30a1b5f24742b0d1401193831314a739f230eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): rust/lance/src/io/commit.rs:2136-2158 | rust/lance/src/io/commit.rs:2209-2231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/commit.rs:2136\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/io/commit.rs:2232\u0060 calls \u0060propagate_commit_error_after_success\u0060, \u0060Err\u0060 and \u0060rust/lance/src/io/commit.rs:2159\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":"rust/lance/src/io/commit.rs"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5808419e39cb188b87b1cb269a849232382ccc879114455d90b12cefb7e692f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 2): java/lance-jni/src/otel.rs:273-289 | python/src/otel.rs:384-405 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0205d235c8931f0847cd9144d7522ec42f92359c3b2998b66ce67df09cda09c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/lance-file/src/versions/v2_1/compression.rs:56-77 | rust/lance-file/src/versions/v2_2/compression.rs:48-69 \u2014 \u0060rust/lance-file/src/versions/v2_1/compression.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/compression.rs\u0060 are one unit implemented once 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 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/compression.rs:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"rust/lance-file/src/versions/v2_1/compression.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c84971b7fa8f37ed3b8867dd55c89253ff85837f1fee3fef5be2afdd3af04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/lance-file/src/versions/v2_1/reader.rs:116-137 | rust/lance-file/src/versions/v2_2/reader.rs:122-143 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/reader.rs:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aeea7250620e039f9ea1c481a7d0636aa3cb148a436a8c3e8d29a62a7159cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:371-391 | rust/lance-io/src/uring/reader.rs:181-202 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/reader.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b14cdf4c54c09668c231cf05990638788e16219a568e56e0c3738f2e31bb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1666-1684 | rust/lance/src/dataset/scanner/fts.rs:2032-2053 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1666\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f833d7a94b84cef3fec19302a545e0650ecb67845c0393586f677430ee3dd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): rust/lance/src/index/scalar/inverted.rs:546-567 | rust/lance/src/index/scalar/inverted.rs:607-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/scalar/inverted.rs:546\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"9724f39620465aa3588f8fa634a3452bcac3d111324b646fe76c20aa32b75574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/lance/src/io/exec/fts/segments.rs:241-262 | rust/lance/src/io/exec/fts/segments.rs:312-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 \u0060rust/lance/src/io/exec/fts/segments.rs:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/segments.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"407ffcc38e7b44dc19f4428503e55742bc35bd90466c04aef98e01263df9db62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:438-458 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:499-519 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.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":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b8158ebb96468d8c1ef560376649b722ef0e9138d1425686da2ef968cacac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:474-494 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:535-555 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:474\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"75895f39991432315e5028078df92b2b4e28b9c652ebfff0bfad7662c2b5a02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:531-551 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:628-648 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:531\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b495f18d0d3fd7e7bfd0bc1f4ef82bfd6da9c180804b2b45c0c9e16b8300600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:567-587 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:592-612 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:567\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b955efae01b680b5e2164e9e20b23e30fb2ccc99be428c20e7796e11e86e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance-encoding/src/decoder.rs:1745-1765 | rust/lance-encoding/src/decoder.rs:1982-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 \u0060rust/lance-encoding/src/decoder.rs:1745\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00791c810674a9ed2a41b4f70d8135e16edbbce79cf26bd4575134614d4e907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:558-578 | rust/lance-encoding/src/encodings/physical/alp.rs:1608-1627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cf18625545f52469747b422e987cc7c0b124928f8a45aa2cc152d086d90ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): rust/lance-index/src/vector/hnsw/remap.rs:213-233 | rust/lance-index/src/vector/hnsw/remap.rs:681-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/remap.rs:213\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c205cfddedcf82cb47482fcbcf92b157453a0b6c40671f1870f356d721a2596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance-io/src/object_store/providers/azure.rs:270-290 | rust/lance-io/src/object_store/providers/gcp.rs:308-328 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/azure.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/gcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/azure.rs:270\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6867758065d99dd55d8a705e5f50430e4853d8fa439c8bc3396c6e5d8a6e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance-io/src/object_store/providers/azure.rs:298-318 | rust/lance-io/src/object_store/providers/gcp.rs:336-356 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/azure.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/gcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/azure.rs:298\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f99ff8cc9d4ddb43851b7fc7a70dcbe6bf3ad4640f6df83fb22c945d5f8a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance-io/src/object_store/providers/oss.rs:70-90 | rust/lance-io/src/object_store/providers/tos.rs:76-96 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/oss.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/tos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/oss.rs:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db2d5bfd6aee2e9996174e787ca89e3609cdba8b8cd84f612d3b2647ef1da71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): rust/lance/src/dataset.rs:1288-1308 | rust/lance/src/dataset.rs:1357-1374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset.rs:1288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c73605550a583b043a77388cbe6a863eb1cb401d327a50914f6bf59fb7180a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:91-111 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:126-146 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b468161f48ec8669c2787f66de2d3c0e86e8a885a24016950b13a651c7b4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/lance/src/io/commit.rs:679-699 | rust/lance/src/io/commit.rs:718-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/commit.rs:679\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/io/commit.rs:739\u0060 calls \u0060propagate_commit_error_after_success\u0060, \u0060Err\u0060 and \u0060rust/lance/src/io/commit.rs:700\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":"rust/lance/src/io/commit.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80be58cd5d343db49c3f92bddb41114d277ad302aadbbd24d54a3d953112eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): java/lance-jni/src/namespace.rs:357-376 | java/lance-jni/src/namespace.rs:438-457 | java/lance-jni/src/namespace.rs:497-516 | java/lance-jni/src/namespace.rs:580-599 | java/lance-jni/src/namespace.rs:674-693 | java/lance-jni/src/namespace.rs:762-781 | java/lance-jni/src/namespace.rs:848-867 \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 \u0060java/lance-jni/src/namespace.rs:357\u0060 it does not close everything it opens, so those exact 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, \u0060java/lance-jni/src/namespace.rs:356\u0060 calls \u0060to_string\u0060 and \u0060java/lance-jni/src/namespace.rs:437\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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d77121cd9a07e037c30bb8f7c83fcea2f1a08274b9f3e852a0ffd4da2e43292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): java/lance-jni/src/namespace.rs:234-250 | java/lance-jni/src/namespace.rs:288-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bde1667172c7de3a325fa4f37063bf6e7fd21c3bb99c0c1d54b1859f4065496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): python/src/dataset.rs:1214-1233 | python/src/fragment.rs:376-394 \u2014 before extracting anything, compare \u0060python/src/dataset.rs\u0060 and \u0060python/src/fragment.rs\u0060 as WHOLE FILES: this scan already matched 3 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 \u0060python/src/dataset.rs:1214\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0004bdbcccfeaa6d973d0f34d1dacf6d43ee114962612393c65b93b7ebea1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance-encoding/src/decoder.rs:1756-1775 | rust/lance-encoding/src/decoder.rs:2253-2272 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c5b47646c5d9fc2e302fae5ed65693d6026714f1e83363b4564b0f8515cdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1375-1394 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1397-1416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1375\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9394de1f1b53901a1a6b67d617a51913ad366855cf795cf568bbe19146ae92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/rle.rs:1621-1640 | rust/lance-encoding/src/encodings/physical/rle.rs:1959-1977 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/rle.rs:1621\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f72dff3b764e085abcfc1af3b82c93056c3eae343f70012f02e37b729aa93f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:254-273 | rust/lance-file/src/writer/structural.rs:222-241 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:254\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8669255a30296a8db3a21c30a3cbf898011d10a707b599e1ace089fc8e85b24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/posting.rs:1116-1135 | rust/lance-index/src/scalar/inverted/wand/posting.rs:1174-1193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/posting.rs:1116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn next(\u0026mut\u0060 in one and \u0060super) fn next_doc_id(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a342e0f684c0e2c3133264be129db9f230a98d680e2b6b49238a2e30f196dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance-index/src/vector/flat/storage.rs:87-106 | rust/lance-index/src/vector/flat/storage.rs:267-286 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-index/src/vector/flat/storage.rs:107\u0060 calls \u0060cosine_norms_cache\u0060 and \u0060rust/lance-index/src/vector/flat/storage.rs:287\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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee85b63d71d4cfb4ef91f48189ce4bd5c790c37651ef401ca7436e2863ff1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:196-215 | rust/lance-io/src/uring/thread.rs:499-517 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/thread.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/uring/current_thread.rs:196\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdb395c17d1aee9a1f40dc921b3483add822c13d00e67f7614c453f317366d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2925-2942 | rust/lance-namespace-impls/src/dir/manifest.rs:3073-3092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3073\u0060 it begins part-way through the construct above it, so those exact lines 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2925}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00485946678427f2b08f06677b407f66b4a1e46874069487094c18f5a9d281f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance/src/index/vector.rs:1466-1485 | rust/lance/src/index/vector.rs:1523-1542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1466\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcfa1953e1443e45759678fc4cb3eefdad66ab4ad535dd6b5c8a48564fd71a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:3446-3465 | rust/lance/src/index/vector/ivf.rs:3502-3521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:3446\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f591998e5d3aaf69daebf1b817b9fd1ba1fc890ba5a19cec19df3152b1e8d657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:1966-1980 | rust/lance/src/index/vector/ivf/v2.rs:3842-3861 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9566b6a7f8b9dcc1284bd4bd3d8b897cf2ab9a8fd03f1298305a3c02342eb9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): java/lance-jni/src/namespace.rs:523-541 | java/lance-jni/src/namespace.rs:606-624 | java/lance-jni/src/namespace.rs:788-806 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:523\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"26637776d6a5316e0c44e8a560e257b531aee3274b250a51f902b2781f872e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): rust/lance-file/src/versions/v2_1/writer.rs:210-228 | rust/lance-file/src/versions/v2_2/writer.rs:210-228 | rust/lance-file/src/versions/v2_3/writer.rs:210-228 \u2014 \u0060rust/lance-file/src/versions/v2_1/writer.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/writer.rs\u0060 are one unit implemented once 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/writer.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"98380750928c7a374ead6350e82730cfa912bdb17368bd1e5b9cd27d5d352ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): rust/lance-index/src/vector/ivf.rs:192-210 | rust/lance-index/src/vector/ivf.rs:236-254 | rust/lance-index/src/vector/ivf.rs:286-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 \u0060rust/lance-index/src/vector/ivf.rs:192\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/ivf.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac8541c1c11605377e6254293980fc0a6be8a546acb915bf06753a6b7244b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:746-764 | rust/lance-encoding/src/encodings/physical/alp.rs:867-885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:746\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd773673be7c58aee19f5a5f39a47d1ba7a30b9c230e9228edf7040f3330bc4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:978-996 | rust/lance-encoding/src/encodings/physical/alp.rs:1107-1125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:978\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"922b3902b2ec3b9abc13c7d7075e5fa37c08e8f41654cf76384247786ded1f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/fsst.rs:76-94 | rust/lance-encoding/src/encodings/physical/fsst.rs:97-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/fsst.rs:76\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/fsst.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"873987a1e220b6d63e5f7430fee9ad5fbe2b23a474210d9496e425b26c37dae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:324-342 | rust/lance-file/src/writer/structural.rs:411-428 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf594d9689862fd7b8003e1d54e08b7afdf648853352eda10d8431382fc58d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-file/src/versions/v2_2/compression.rs:116-134 | rust/lance-file/src/versions/v2_3/compression.rs:143-161 \u2014 \u0060rust/lance-file/src/versions/v2_2/compression.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/compression.rs\u0060 are one unit implemented once 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 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_2/compression.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":"rust/lance-file/src/versions/v2_2/compression.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c4f09147c6b8e4264718440e5b5d6693cf2f7e3bd68fb84856f1ca8258b969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:367-385 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:437-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 \u0060rust/lance-index/src/scalar/inverted/index/inverted_index.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"6272ccb9b1495dfd635efe16b59a912e887b7663e559cac8cdf92bc8a6d7d1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-jsonb/src/parser.rs:802-820 | rust/lance-jsonb/src/parser.rs:867-885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/parser.rs:802\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/parser.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b0a407592db840f2af9b9345f22d3ff561369f6513e23a4280a6c9e7fb7c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/write.rs:1247-1265 | rust/lance/src/dataset/write/update.rs:480-497 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs:1247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"902b32c37154621934083fa718dfa39f5cd8b3374492f2fd3f7fc5eda2544cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance/src/index/vector.rs:2223-2241 | rust/lance/src/index/vector.rs:2262-2280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:2223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bde080b15b7d0e5d3acf7a81722a444fc760ba0f5803a7ffa5ddd0585ac1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:535-553 | rust/lance/src/io/exec/fts/phrase.rs:461-478 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:535\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d02cf4a66d2bb5f027280c21d23ca526eca2e2dff89cb09f2f798b8d239c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): rust/lance-file/src/versions/v1/writer/statistics.rs:262-279 | rust/lance-file/src/versions/v1/writer/statistics.rs:339-356 | rust/lance-file/src/versions/v1/writer/statistics.rs:413-430 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/writer/statistics.rs:262\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8683dcd7f4cbdb651479e2dd0664a945c22e46d53989b57e7bc10f2c00d9aea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): java/lance-jni/src/fragment.rs:486-503 | java/lance-jni/src/fragment.rs:546-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/fragment.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc08ff858ba6564a025985c14c941f81b4f7ec9fab3e13474bc9ffe8a6455814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:769-786 | rust/lance-encoding/src/encodings/physical/alp.rs:941-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:769\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e7a2a7bf94e534b9627ac8a38236510ac7fcd1cab6184192245813c7109632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1001-1018 | rust/lance-encoding/src/encodings/physical/alp.rs:1181-1198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1001\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dccc7c15d5e7cf2be4384a9a6d3c67834dc38015c2b464365359aebea5776a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/sequence.rs:879-896 | rust/lance-encoding/src/encodings/physical/sequence.rs:899-916 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/sequence.rs:879\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/sequence.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"c209750081430299ad43c1425e4cc37b5584284206e51a90bf2de4268ad5c4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-file/src/versions/v2_1/compression.rs:96-113 | rust/lance-file/src/versions/v2_2/compression.rs:90-107 \u2014 \u0060rust/lance-file/src/versions/v2_1/compression.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/compression.rs\u0060 are one unit implemented once 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 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/compression.rs:96\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/compression.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"441e2cd703ba0301e7e10229c135ff1d73beaee9887b9ebc6f635b5a53b34f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-file/src/versions/v2_1/reader.rs:81-98 | rust/lance-file/src/versions/v2_2/reader.rs:81-98 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/reader.rs:81\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1393043b9364dd93cd984d81b3e7e92d0bcddf32277cce74d416d8ad3386b307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-index/src/scalar/inverted.rs:200-217 | rust/lance-index/src/scalar/inverted/index/search.rs:459-476 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/search.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted.rs:200\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e89f5fb33c11b644d7fa84365dc1efae3ea145a04abc01749e47140dd69f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/doc_set.rs:485-502 | rust/lance-index/src/scalar/inverted/index/doc_set.rs:523-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 \u0060rust/lance-index/src/scalar/inverted/index/doc_set.rs:485\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/doc_set.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"1618446ad9702d4ba6e977a4eff260f0285dd098aaddb9697e9ae4a63294bf04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1359-1376 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1461-1478 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7404b42938ba74165d34eb629f2dab60da9c005a1daf3d5fc3c35e91e909bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:1247-1264 | rust/lance-index/src/vector/bq/storage.rs:1334-1351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/storage.rs:1247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfc7b6fae5d797860093b3c7bcaee21c05ca4fa0bb69387df18c596499f86cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance-index/src/vector/hnsw/builder.rs:907-924 | rust/lance-index/src/vector/hnsw/online.rs:351-368 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/builder.rs:907\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aabaa0212053f0c39d062e568e4643272184a94ad818b1c3ef69f30a3435543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): rust/lance-table/src/io/commit/dynamodb.rs:378-394 | rust/lance-table/src/io/commit/dynamodb.rs:411-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":"rust/lance-table/src/io/commit/dynamodb.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"48494aa1b11472beae50814b4745ed78c03646cf749f7026be4998ca7ef053d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:704-721 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:477-494 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/builder.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the 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 \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060mut\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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acbfae546bde135ca93bbedf0d0efadc5e81d19124a0afbcd4ced74054b6274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:959-973 | rust/lance/src/dataset/optimize/planning.rs:1386-1403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/planning.rs:959\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b21516bf2ec500fc793bedac08c29d5dea0b618fd1faec60eb3a7d88c0da0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): rust/lance/src/dataset/optimize/remapping.rs:381-393 | rust/lance/src/dataset/optimize/remapping.rs:1097-1114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/remapping.rs:381\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71eac0cee641748fc35a1bbe39f46e68390240b05345c62c6851ecdc050345f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1796-1812 | rust/lance/src/dataset/scanner/fts.rs:2153-2170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1796\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"345d839442da8167e2d7c5f2de218e9ec6169cfd11703e5b7447b28d099a360b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:2403-2420 | rust/lance/src/index/frag_reuse.rs:2451-2468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/frag_reuse.rs:2403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2403}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d19e7427063ab9168b82a80d2be0ecb29e8febf2345b0a91e55982a427fce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): rust/lance/src/index/loading.rs:1509-1526 | rust/lance/src/index/loading.rs:1560-1575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/loading.rs:1509\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eb21b7801a7e70841b35f271c27c0ae05fc7f34bb10f94e363420789381149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance/src/index/vector.rs:1824-1841 | rust/lance/src/index/vector.rs:1864-1881 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1824\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f28cd8c292bada1ac58715668a0e17e47a67dd85966e5022e77d380596e450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:5588-5605 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:763-777 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01d45ecf65083fada801cfab26fd064b2cad4d9fee2e86d6a9fe1097bb8759d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:561-578 | rust/lance/src/index/vector/ivf/v2.rs:2608-2625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ba2c2d7279eadc0576c033aea045bfe1e87347d809c20c8f8bd1e50742928f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/lance/src/io/commit.rs:1462-1479 | rust/lance/src/io/commit.rs:2084-2101 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/commit.rs:1462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/commit.rs"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e677f8d232e6e8e1cdf9667581c6c393909f4c732882354f698c9bd7fdda28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): rust/lance/src/dataset/write/delete.rs:68-84 | rust/lance/src/dataset/write/merge_insert/exec.rs:98-114 | rust/lance/src/dataset/write/merge_insert/job.rs:1836-1852 | rust/lance/src/dataset/write/update.rs:841-857 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/delete.rs:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/delete.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d282129853d7b82a5d5f323241569066192aacb973326338ca39afd695641317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): java/lance-jni/src/blocking_dataset/read.rs:768-784 | java/lance-jni/src/blocking_dataset/read.rs:818-834 | java/lance-jni/src/blocking_dataset/read.rs:874-890 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_dataset/read.rs:768\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/read.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb1e6b10e7da18f4cdf271428f38cdf11d9352e97a0cfac9b6bdc63d51e9509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): rust/lance-io/src/uring/current_thread.rs:104-120 | rust/lance-io/src/uring/current_thread.rs:220-234 | rust/lance-io/src/uring/thread.rs:385-400 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/thread.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbe009b40b1eb517dfa6f1ee88830f864d4354751f525b08754db13c1a1179b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): rust/lance/src/dataset/scanner/fts.rs:2239-2254 | rust/lance/src/dataset/scanner/fts.rs:2740-2756 | rust/lance/src/dataset/scanner/fts.rs:2801-2817 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e57e3fb89846571d88635513c3e8ad866328fead01a073ef8d7d009e6ac65d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): rust/lance/src/io/exec/fts/match_query.rs:181-197 | rust/lance/src/io/exec/fts/match_query.rs:246-262 | rust/lance/src/io/exec/fts/match_query.rs:314-330 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ee09fcf7ee52050b446a225f31c7079274e89312043c5bb1f610a636a92d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): rust/lance/src/io/exec/fts/phrase.rs:155-171 | rust/lance/src/io/exec/fts/phrase.rs:211-227 | rust/lance/src/io/exec/fts/phrase.rs:279-295 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/phrase.rs:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/phrase.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0e3189c1016b4fddc76e371f92b8d61f77efef4c6145a517efc04a76440111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): java/lance-jni/src/blocking_dataset/mutation.rs:39-54 | java/lance-jni/src/transaction.rs:2453-2469 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060java/lance-jni/src/blocking_dataset/mutation.rs:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/mutation.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc123a1c1ac64ed68ff02c9a1e4ab8055631bde23cdf76ea8184762a8efaa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): java/lance-jni/src/schema.rs:257-273 | java/lance-jni/src/schema.rs:315-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/schema.rs:257\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/schema.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1eb82401c07d9c43007af83578673fdca8f1925e0d97109a5211109117929f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-core/src/datatypes/field.rs:1275-1291 | rust/lance-encoding/src/encoder/structural.rs:236-252 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060field\u0060 to \u0060\u0026ArrowField\u0060 in one and \u0060\u0026Field\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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"30498fb987d8280842a6c1468ca3ad7c9cdb8dfc79a9ccb5aea7a6f1883e7e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-encoding/src/decoder.rs:1801-1817 | rust/lance-encoding/src/decoder.rs:2286-2302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/decoder.rs:1801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ae7077bb8547a18c9f8b96a0fd0a08de7e1aca4a7fea8d353ee1c1541de58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:848-864 | rust/lance-encoding/src/encodings/physical/alp.rs:922-938 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:848\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"68aa4ea1ee91b820eefba9b0837842bc942fbe979de9b33990b6099764ab4b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1088-1104 | rust/lance-encoding/src/encodings/physical/alp.rs:1162-1178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1088\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7af8416b5e9efd14bd64856d89ccaa1b83c0777655fff67296022797a46b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/binary.rs:1153-1169 | rust/lance-encoding/src/encodings/physical/binary.rs:1177-1193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/binary.rs:1153\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cd22d70c74fd983c3211e193d80683425660825f4d7c5d238fe3fb0bb1733e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:321-337 | rust/lance-file/src/versions/v2_0/reader.rs:262-277 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.rs:321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"445abeb07d96e4d9c92cf37f8a0c38dc82ec379d30a8565b96e9dc061d640b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance-index/src/scalar/bitmap.rs:571-587 | rust/lance-index/src/scalar/bitmap.rs:619-635 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/bitmap.rs:571\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"354b3a1a926544fbeb1489f34ceee27119c8a56e0149a98d3a334d9e3babbf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:4060-4076 | rust/lance-namespace-impls/src/dir/manifest.rs:4212-4227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:4060\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":4060}}}],"partialFingerprints":{"codehealthFindingId/v1":"be29dfa06e61f4afbd928c5d526986ad9d79b86c44b0bb300c67dca065f15960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:223-239 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:139-155 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"52331c70a54cf4b816b4610abc22084542339cadb9afca64ff5d9b1f163d5044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:116-132 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:151-167 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd0d0c0872fb036e4f87b7836512d84a0cca256c9505e5f09783b95edcc0a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1691-1707 | rust/lance/src/dataset/scanner/fts.rs:2055-2071 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1691\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25dc8421ac946e531c5739d263e4355b136ae2487e152c6576bdd75ef0f6006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:2754-2770 | rust/lance/src/dataset/scanner/fts.rs:2820-2836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:2754\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1d2ed5b50e62173c7595ef90726880e19c817080b662957d36266a64df1c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/write.rs:433-449 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1026-1042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/write.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":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fdb7898b23e686e9259447c8407123064c5785f103724d08698a583332270a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): rust/lance-encoding/src/decoder.rs:947-962 | rust/lance-encoding/src/decoder.rs:969-984 | rust/lance-encoding/src/decoder.rs:996-1008 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/decoder.rs:947\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"c962c79f1c9096140f2c4aac66cf4f20ccf6c36053e2ec1b4be9ba8bf78f6765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): rust/lance-encoding/src/encodings/physical/alp.rs:743-758 | rust/lance-encoding/src/encodings/physical/alp.rs:844-859 | rust/lance-encoding/src/encodings/physical/alp.rs:864-879 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:743\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb33d6f473910709a9eb550818b3c095ec99c474131c6fd8077ed10958b5a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): rust/lance-encoding/src/encodings/physical/alp.rs:766-782 | rust/lance-encoding/src/encodings/physical/alp.rs:917-933 | rust/lance-encoding/src/encodings/physical/alp.rs:938-954 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0e2a05732b06243d319a9c1c061deff1320a4513848d7146c72e9ff2ac6c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): rust/lance-encoding/src/encodings/physical/alp.rs:975-990 | rust/lance-encoding/src/encodings/physical/alp.rs:1084-1099 | rust/lance-encoding/src/encodings/physical/alp.rs:1104-1119 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:975\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf24e19a5b394b2c2ed6c03386723c2286f794c7372c293ddf39b859c24a834a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): rust/lance-encoding/src/encodings/physical/alp.rs:998-1014 | rust/lance-encoding/src/encodings/physical/alp.rs:1157-1173 | rust/lance-encoding/src/encodings/physical/alp.rs:1178-1194 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:998\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed46e6ba9937728d97d64acc1bd1ab90adafd699f9174bba5dfa23b7eee57da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): rust/lance-file/src/versions/v2_1/compression.rs:69-84 | rust/lance-file/src/versions/v2_2/compression.rs:61-76 | rust/lance-file/src/versions/v2_3/compression.rs:84-99 \u2014 \u0060rust/lance-file/src/versions/v2_1/compression.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/compression.rs\u0060 are one unit implemented once 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 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/compression.rs:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/compression.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb52ecf404ec3afb9a628be943f880c7a65aa0ca0f603df7c216ac9b5a8835a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): rust/lance/src/index/vector/ivf.rs:3298-3312 | rust/lance/src/index/vector/ivf.rs:3446-3461 | rust/lance/src/index/vector/ivf.rs:3502-3517 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:3298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3298}}}],"partialFingerprints":{"codehealthFindingId/v1":"040b35b6976c316722d31aeb7c46d21bb60bd6c717364bf3fb7386ceb3a6e967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:922-937 | python/src/mem_wal.rs:851-866 \u2014 before extracting anything, compare \u0060java/lance-jni/src/mem_wal.rs\u0060 and \u0060python/src/mem_wal.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/mem_wal.rs:922\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca487b93fd5237693d58fbd7d659fc076280d3081bf7f73a0affeb1c450763e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): python/src/file.rs:342-357 | python/src/file.rs:1006-1015 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/file.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"python/src/file.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e34c3f4baf455bd55ab69aafecc6d6e15625517b386b9622977f0e1bb5299f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-arrow/src/json.rs:635-650 | rust/lance-arrow/src/json.rs:665-680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-arrow/src/json.rs:635\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd3b3affe1c0c27e35f531473880df8c3392b000c77c9af4e24645969297692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): rust/lance-datafusion/src/planner.rs:779-794 | rust/lance-datafusion/src/planner.rs:796-810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion/src/planner.rs:779\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060rust/lance-datafusion/src/planner.rs:793\u0060 calls \u0060Ok\u0060, \u0060Timestamp\u0060, \u0060Datetime\u0060 and \u0060rust/lance-datafusion/src/planner.rs:778\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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"1997b970fac270f941e21556534eeba6f9441a4748fb10042bfc2385f69cda0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/compression.rs:2219-2234 | rust/lance-encoding/src/compression.rs:2247-2262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/compression.rs:2219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c2dde9115c201d700a5bb8f103e4da4dd0f2d70e617a2f8f1b96e7ef11d610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/all_null.rs:909-924 | rust/lance-encoding/src/encodings/logical/primitive/constant.rs:341-356 \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3324f49b628211f917334ac177142cf5ae3f6bd8b1420ba1607cc37bb491a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:886-901 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:928-943 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:886\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn skip_validity(\u0026mut\u0060 in one and \u0060crate) fn unravel_validity(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:927\u0060 calls \u0060append_to\u0060 and \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:885\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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d144b88ea0015aa737ad4ee776f91cbc48c24c9e563444deda10c481f53f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/struct.rs:537-552 | rust/lance-encoding/src/encodings/logical/struct.rs:616-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/struct.rs:537\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/struct.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"834a170f3613bf30085a3f9cab88789e9ce7ec44bd43d7fc58788078318efc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1069-1084 | rust/lance-encoding/src/encodings/physical/alp.rs:1142-1157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1069\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc14e1f5e4fb3d0db0185039fa5a3c6942998244de0419a55c7afc6ad91be27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1236-1251 | rust/lance-encoding/src/encodings/physical/alp.rs:1291-1306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1236\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19bda2f816ffd4f38264cff298cd5dc3dc94485c1f38811ebea8b77c9aa2e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:137-152 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:266-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d14259dfbb325f26d3752f441aa7e7e12ee8044d96deea7d0d39874f972ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/rle.rs:1853-1868 | rust/lance-encoding/src/encodings/physical/rle.rs:2044-2059 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df347b602b323022d451c07bc0821147a4e6d07300d29f1b0699d770249f7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:81-96 | rust/lance-file/src/versions/v2_0/reader.rs:76-91 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e81d9699acbadee9711eb0db57873dee8d44308443e0c6bc3564e3b902f4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:125-140 | rust/lance-file/src/versions/v2_0/reader.rs:104-119 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.rs:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c2a4d7332f1ae87a6475d4ba4d204e2415dfae5a00e43c5ba47884e05ca27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-file/src/versions/v1/writer/mod.rs:522-537 | rust/lance-file/src/versions/v1/writer/mod.rs:571-586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/writer/mod.rs:522\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa42f6eb6d991a546912a6048db66e75613609ea6aa21534deecbebc9cace9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-geo/src/query.rs:131-146 | rust/lance-geo/src/query.rs:148-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/query.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0604f530cd6042b3092657cd500f4c3c67c50c3b5fe629ff14615cdb468182cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/partition.rs:1132-1147 | rust/lance-index/src/scalar/inverted/index/partition.rs:1260-1275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1278\u0060 calls \u0060new_with_block_size\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1150\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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"25af5dfe1e052cd8eb3ee96f7081a9e46bf87db582c3e1a73b763c415c6f6fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-index/src/vector/flat/storage.rs:172-187 | rust/lance-index/src/vector/flat/storage.rs:348-363 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-index/src/vector/flat/storage.rs:188\u0060 calls \u0060cosine_norms_cache\u0060 and \u0060rust/lance-index/src/vector/flat/storage.rs:364\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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"60335dfe1735f9132ea91151b8422c53a46322d1fa91b0c1ceee414d5297919e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-io/src/scheduler.rs:206-221 | rust/lance-io/src/scheduler/lite.rs:336-351 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca0157d20ec89c89d3fef26a2f399b501b50ce7907182f9553583a3f23a1959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:451-466 | rust/lance-io/src/uring/reader.rs:300-315 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/reader.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8e5ea65412be28f15c2f5a46a7d88a2afcd99d0cbc504636544c73a9936e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-linalg/src/distance/dot.rs:130-145 | rust/lance-linalg/src/distance/l2.rs:1008-1023 \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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff6dac092beb8a2f7030f55f38dc0d60eda7489e9d87c3d3654f338d51f5d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:1099-1114 | rust/lance-linalg/src/simd/dist_table.rs:1349-1364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb0977eb7ecd1919ef1d4a302b827d94bea665877afde304dd77f2c1fc55326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:705-720 | rust/lance-linalg/src/simd/f64.rs:550-565 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:705\u0060 it begins part-way through the construct above it, so those exact lines 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 \u0060ptr\u0060 to \u0060*const f32\u0060 in one and \u0060*const 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"583a2e9984a935de7529302ac26fe9a959bd52f2ca4ad01b06f607324fdef8a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:1984-1999 | rust/lance-namespace-impls/src/dir/manifest.rs:2008-2023 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:1984\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b45fb0d675b6f7f09631b45081c3532a1c1224357fdfe1c10b0f6fd75643a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-table/src/rowids/index.rs:1171-1186 | rust/lance-table/src/rowids/index.rs:1231-1246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/index.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd60aa57ac49ce4e5564d8d241fc89ed5420ebaea4fad33da37922e5a2c3c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): rust/lance/src/dataset.rs:941-955 | rust/lance/src/dataset.rs:977-992 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset.rs:941\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"d139bbdd428baecb0978dff0e7dfb716333c303f9e570c7269ccc1fb242bf4b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/dataset/builder.rs:330-345 | rust/lance/src/dataset/builder.rs:360-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/builder.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":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c9a0441e695766833cba5b39c9bb86a87c8eea3bfbd2a28d83eb2f0f6780d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/dataset/cleanup.rs:2806-2821 | rust/lance/src/index/frag_reuse.rs:2529-2544 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/cleanup.rs:2806\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfb6a1a47cc0430fc62278b79bf45cef716bb04e3ee27a88feac7a06fe323cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): rust/lance/src/dataset/hash_joiner.rs:172-187 | rust/lance/src/dataset/hash_joiner.rs:261-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/hash_joiner.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f58c296fe6b71a5d5a6d4df7da5aa33cb6d41bcfd34828affc6fd04fd9ff455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/fts.rs:2389-2404 | rust/lance/src/dataset/mem_wal/index/fts.rs:2482-2497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bb71ffd7f74261af91320f4c5358398791e244e69d5a786e96115319ea44ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1816-1830 | rust/lance/src/dataset/scanner/fts.rs:2173-2188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1816\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa893f0cf9125a365084efadf244ae2a46d5ccf0633f04f363af9439f77cc8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/index/scalar/inverted.rs:479-494 | rust/lance/src/index/scalar/inverted.rs:500-515 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/scalar/inverted.rs:479\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"9648b86414d13d91a7dcb8389923c468fbc55a96aee079b077e231aa259e0d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/index/vector.rs:941-956 | rust/lance/src/index/vector.rs:962-977 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:941\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808a3f5b360cb19eba1677ca57c694b01417c354dab362e48c816de016f474b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/index/vector.rs:1066-1081 | rust/lance/src/index/vector.rs:1084-1099 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1066\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49c2271a515ca0a3660c00c092ff966a0fe7c2c80409e36096628f5b89074a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): rust/lance/src/index/vector/utils.rs:866-880 | rust/lance/src/index/vector/utils.rs:1073-1088 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/utils.rs:866\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/utils.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7af84bc8ba0ea25f6c2f7e766455a79979d2caa688ce9e8e6db77485698de84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:557-572 | rust/lance/src/io/exec/fts/phrase.rs:481-496 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:557\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fae81f1f5c555bcd1731029bb480d135bbcb11b60c67f37c3b084e9b309895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 5): rust/lance-index/src/vector/distributed/index_merger.rs:1060-1074 | rust/lance-index/src/vector/distributed/index_merger.rs:1125-1137 | rust/lance-index/src/vector/distributed/index_merger.rs:1232-1246 | rust/lance-index/src/vector/distributed/index_merger.rs:1393-1405 | rust/lance-index/src/vector/distributed/index_merger.rs:1489-1501 \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 \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1060\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d80cc0959dacae9e50d1af17309bc089e6c79bc1a234801ccc3b0a1521e1942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): rust/lance/src/index/vector.rs:1895-1909 | rust/lance/src/index/vector.rs:1913-1927 | rust/lance/src/index/vector.rs:1931-1945 | rust/lance/src/index/vector.rs:1949-1963 | rust/lance/src/index/vector.rs:1967-1981 \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 \u0060rust/lance/src/index/vector.rs:1895\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"667e9951d36e49787195af6267b8e5d78d1291a976a82a340b8945cfcbfb0ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): rust/lance-encoding/src/encodings/physical/alp.rs:849-863 | rust/lance-encoding/src/encodings/physical/alp.rs:923-937 | rust/lance-encoding/src/encodings/physical/alp.rs:1089-1103 | rust/lance-encoding/src/encodings/physical/alp.rs:1163-1177 \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 \u0060rust/lance-encoding/src/encodings/physical/alp.rs:849\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c5bbe5e2a3f135d8ba209e89e600344fcb980be2c2b0b56cdb0a1b3acd4dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): rust/lance-index/src/vector/ivf.rs:161-175 | rust/lance-index/src/vector/ivf.rs:189-203 | rust/lance-index/src/vector/ivf.rs:233-247 | rust/lance-index/src/vector/ivf.rs:283-297 \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 \u0060rust/lance-index/src/vector/ivf.rs:161\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/ivf.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f61713f4cb3db9291ad8e0aaba4697fd2f10c95823fb4f5e7831a996a2ee98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 4): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1280-1289 | rust/lance/src/dataset/mem_wal/scanner/planner.rs:408-422 | rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:852-861 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:660-674 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/vector_search.rs\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1280\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"873af203c20e44dc89fc500b8bcdead304345ccd7ce3bc097959c199a1df07b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): rust/lance-datafusion-exec/src/expr.rs:393-407 | rust/lance-datafusion-exec/src/expr.rs:525-539 | rust/lance-datafusion-exec/src/expr.rs:541-555 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6f81f70727facb66aa2d0c91fc702f6db1635eddd339127ce0868819f96982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1191-1205 | rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1228-1242 | rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs:1343-1357 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02c45e10ba2dba5c8360a99493689cbf3f343322d1c22132f43c3299169c38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): rust/lance-encoding/src/encodings/physical/alp.rs:560-574 | rust/lance-encoding/src/encodings/physical/alp.rs:633-647 | rust/lance-encoding/src/encodings/physical/alp.rs:1609-1623 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"368a077f7caca9c7f9b05c053cfdb261d9314258c2bfa1e67ac87832b7227418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): rust/lance/src/index/vector.rs:1788-1802 | rust/lance/src/index/vector.rs:1806-1820 | rust/lance/src/index/vector.rs:1846-1860 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1788\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc1b32ac2140717c8d3b1d311b43d307069f3bc691cedd9e80c805067ff7fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): java/lance-jni/src/blocking_dataset/schema.rs:201-215 | java/lance-jni/src/blocking_dataset/schema.rs:246-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_dataset/schema.rs:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"java/lance-jni/src/blocking_dataset/schema.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af96e43bf4c24d5144fa5d3beaf358c2345f2919aea44e8dd44c1ac5b2e1071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:1090-1104 | python/src/dataset.rs:3792-3806 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f66b0063b31735c54a5fb7519f6af7c6edc76c9cc6ef857b5116832c14020d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:830-844 | rust/lance-encoding/src/encodings/physical/alp.rs:903-917 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:830\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04cfdebdf22d3f1db83183c22c549d0e68127bfd3ab62be29a8c8b229fcf8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/fsst.rs:237-251 | rust/lance-encoding/src/encodings/physical/fsst.rs:256-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/fsst.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":"rust/lance-encoding/src/encodings/physical/fsst.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f042ba69684d05d16a3e135d0f63cca5041007deb6d277d924b78d07f0b19a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/rle.rs:1019-1033 | rust/lance-encoding/src/encodings/physical/rle.rs:1100-1114 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86c9b29b87784dcc0154badba8b7ab2f0e8ddb07caf2d9b5495c8c1226026da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-file/src/reader.rs:2662-2676 | rust/lance-file/src/reader.rs:2711-2725 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:2662\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"892a85e0ca033245fc7a2f28dd7d870f03c2400139cab0f40fa48760d3364aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/flat_search.rs:272-286 | rust/lance-index/src/scalar/inverted/index/flat_search.rs:578-591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/flat_search.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":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a59555a77b024fee073bb4b3db7a9f9224ad77830dca2cf8cbabe597637a9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): rust/lance-index/src/vector/pq/storage.rs:580-594 | rust/lance-index/src/vector/pq/storage.rs:614-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1dc6bf6488c38db1491397473a972db5f891979761d5c0ba4939d56572a016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-index/src/vector/pq/storage.rs:840-854 | rust/lance-index/src/vector/pq/storage.rs:857-871 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/pq/storage.rs:840\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7657369c5f3face339723b4b72a2e2285ccc2e77d5d8f46c517c8f74b1ed74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-io/src/object_store.rs:1163-1177 | rust/lance-io/src/object_store.rs:1228-1242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store.rs:1163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6e66c99b76e9be0785cfd297b13bec7aad17736fd6356962b28fb486c867c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:431-446 | rust/lance-io/src/uring/reader.rs:280-295 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/reader.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbad9b80e7abf7dfecb33946d97e3498e3b931c9558482ea978d9fb237132ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): rust/lance-jsonb/src/core/de.rs:370-389 | rust/lance-jsonb/src/core/de.rs:586-604 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-jsonb/src/core/de.rs:605\u0060 calls \u0060Err\u0060 and \u0060rust/lance-jsonb/src/core/de.rs:390\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":"rust/lance-jsonb/src/core/de.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a91adf3ce3ea036b9bdc3cb625899f093e4007279b64e2ec434becac27f153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-jsonb/src/extension.rs:107-121 | rust/lance-jsonb/src/extension.rs:129-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/extension.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c919489e5a2d667dcafd7f9c8868a79bea128c06c960d4e35b9ec6adec467b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/selector.rs:780-794 | rust/lance-jsonb/src/jsonpath/selector.rs:797-811 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/jsonpath/selector.rs:780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"44497a6039c7c513ef85f72563a249e3961af4924fc7acc717b8eeb48e4ab298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/azure.rs:800-814 | rust/lance-namespace-impls/src/credentials/azure.rs:866-879 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/azure.rs:800\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c9cdee3b894f2b8b743b7bb252990d114594f0533f1be24b633aed6c078d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance/src/dataset/blob/external.rs:242-257 | rust/lance/src/dataset/blob/external.rs:261-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 \u0060rust/lance/src/dataset/blob/external.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb88d875c64c97c2cf44626cd59980b35cf1eaac28b1336025d2b661476b27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): rust/lance/src/dataset/fragment.rs:2352-2366 | rust/lance/src/dataset/fragment/session.rs:61-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/fragment.rs:2352\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ccce1d366867216ee60c9d86f3de89cc425049a629ce6caa292384c277ec26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:913-927 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:1002-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b13bbda954631466a6b87f64865084d804706968f03b6f1e6f47b5dac438def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:116-130 | rust/lance/src/io/exec/pushdown_scan.rs:139-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"445e1cffa36d2d2694adf73e26199500ecc77b76c2785946d33efae1d3c12451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): rust/lance/src/dataset/scanner/source.rs:684-698 | rust/lance/src/dataset/scanner/source.rs:832-843 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/source.rs:684\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/source.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13e353b609d8a930b601b9de20134223228be5b30b6feb63a35f969f1a4b887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/index/append.rs:2125-2139 | rust/lance/src/index/append.rs:2164-2178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7da91492dd4461f42696e8c153abcb558143cb2dcb0f641b488bd1ca311c733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:1250-1263 | rust/lance/src/index/frag_reuse.rs:2688-2702 \u2014 both copies are in the same file, so extract the block 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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cf5be6412bbc8376bc17caf66243b3bd5b7aa482897e3ce6df334a61aed068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/index/scalar/bitmap.rs:99-113 | rust/lance/src/index/scalar/btree.rs:141-155 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"07672fb798ed2f95a479ded76fb13f4a2840c2588239315b03c36823062c6353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance/src/index/vector.rs:2206-2220 | rust/lance/src/index/vector.rs:2244-2257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:2244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d76a5ad2f3de0489c543406e897608efdb37f32402111b33e5638ef280cca92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance/src/index/vector/ivf/io.rs:480-493 | rust/lance/src/index/vector/ivf/io.rs:504-518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b30d4d400fe8916864c01b49a79fe879e10328e712a631803a344f5940c6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/io/exec/filtered_read.rs:3721-3735 | rust/lance/src/io/exec/filtered_read.rs:3748-3762 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3721}}}],"partialFingerprints":{"codehealthFindingId/v1":"9374e1bddabe1c8719309fddbdd2b4bd0466fcd7e16d182b8d304ed22a31d3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance/src/io/exec/fts/boolean.rs:196-210 | rust/lance/src/io/exec/fts/boolean.rs:546-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 \u0060rust/lance/src/io/exec/fts/boolean.rs:196\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060rust/lance/src/io/exec/fts/boolean.rs:542\u0060 calls \u0060record_parts_searched\u0060, \u0060timer\u0060 and \u0060rust/lance/src/io/exec/fts/boolean.rs:194\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/boolean.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b4129b74e24ed248e1cecb433682735b340f53f46f93ace8193d98270d8e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance/src/io/exec/fts/compound.rs:1218-1232 | rust/lance/src/io/exec/fts/compound.rs:1243-1257 \u2014 both copies are in the same file, so extract the block 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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e46f494811db0389998c95547950c2b4786702be434b4bd93f790cf094626bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:517-531 | rust/lance/src/io/exec/fts/phrase.rs:445-458 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:517\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89a8663f6721cb8ebbd8daac1f77018b65af7c097bb372c34c84f07cf406c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): java/lance-jni/src/namespace.rs:386-399 | java/lance-jni/src/namespace.rs:710-723 | java/lance-jni/src/namespace.rs:872-884 | java/lance-jni/src/namespace.rs:900-913 \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 \u0060java/lance-jni/src/namespace.rs:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"712c58f334fa5d7ad7c0ae444000c4bb4728f93557547f73389cfd16e9cd1943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): rust/lance/src/dataset/scanner/vector.rs:849-862 | rust/lance/src/dataset/scanner/vector.rs:1417-1430 | rust/lance/src/dataset/scanner/vector.rs:1516-1529 | rust/lance/src/dataset/scanner/vector.rs:1539-1552 \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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d743ad819f3c060bce2b8e463fb01cd2c914c5826e4e9554dd45b3905afd489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/lance-file/src/versions/v2_1/reader.rs:222-235 | rust/lance-file/src/versions/v2_2/reader.rs:224-237 | rust/lance-file/src/versions/v2_3/reader.rs:387-400 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_1/reader.rs:222\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0bab7deab5dc5d7571dc24130f5d6fd442c7d94d4390fdee2f79d119b81a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): rust/lance-index/src/scalar/inverted.rs:200-213 | rust/lance-index/src/scalar/inverted/index/partition.rs:1004-1015 | rust/lance-index/src/scalar/inverted/index/search.rs:459-472 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/search.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted.rs:200\u0060 it begins part-way through the construct above it, so those exact lines 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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb95dc68795600bebc36757d859d0ebe5013c46cc792a3ba72d8c6d090ad03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/lance-index/src/scalar/zonemap.rs:718-731 | rust/lance-index/src/scalar/zonemap.rs:733-746 | rust/lance-index/src/scalar/zonemap.rs:748-761 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a00f23d5369e6c3af238d006075490513c00e88e341d56072d7517a3ead7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/lance-namespace-impls/src/dir/manifest.rs:3404-3417 | rust/lance-namespace-impls/src/dir/manifest.rs:3626-3639 | rust/lance-namespace-impls/src/dir/manifest.rs:4248-4261 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3404\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fbf79ffec7ace461973b64498a53209bf923132f0c6ed4b7706730d23e8b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/lance/src/index/vector.rs:1608-1621 | rust/lance/src/index/vector.rs:1639-1652 | rust/lance/src/index/vector.rs:1668-1681 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1608\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd37dc069341efd81d2dd75e010248e3768935c94e234a4ad271f503971ddde9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): java/lance-jni/src/blocking_scanner.rs:153-167 | java/lance-jni/src/blocking_scanner.rs:178-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa17cb3e665f2c7d193d69370382d43d80d2c37de588c952a4ee3b9c9067ac42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): java/lance-jni/src/otel.rs:88-101 | python/src/otel.rs:135-148 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ac3b29d37572f78a32ee2ba93147a2f3c057528f19c597754c63639c184268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): python/src/dataset.rs:999-1012 | python/src/fragment.rs:331-344 \u2014 before extracting anything, compare \u0060python/src/dataset.rs\u0060 and \u0060python/src/fragment.rs\u0060 as WHOLE FILES: this scan already matched 3 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 \u0060python/src/dataset.rs:999\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"990df3ffc9e0e0398fff428d1b5cb4693479ca610aa86b18736560fa6dcf87a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): python/src/scanner.rs:327-341 | python/src/scanner.rs:352-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 \u0060python/src/scanner.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":"python/src/scanner.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a987f35c951351b5002baedd2892d7ebe1e2b9d7b79653d8e296d3a3ec3352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:86-99 | rust/compression/fsst/src/fsst.rs:104-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"998423d07bca5233ac2d125290c23ff810d668441930c6969d1984829937aad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:1104-1117 | rust/compression/fsst/src/fsst.rs:1167-1178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/fsst/src/fsst.rs:1104\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71f5a68c98427fe2441183093c9adc5fb69ca4b23949d1603a6fee792335364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-core/src/cache/mod.rs:960-973 | rust/lance-core/src/cache/mod.rs:1107-1120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/cache/mod.rs:960\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd592cd79f9f147c1d06a590ca9f322972ae99ea0d3f1cdd235306e3255b2fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-core/src/utils/row_addr_remap.rs:582-595 | rust/lance-core/src/utils/row_addr_remap.rs:603-616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/utils/row_addr_remap.rs:582\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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 \u0060groups\u0060 to \u0060impl IntoIterator\u003CItem = GroupInput\u003E\u0060 in one and \u0060impl IntoIterator\u003CItem = GroupInputWithLayout\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/row_addr_remap.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5df32f21b79b5c236b1a7180529f63c49d3fe380fbcfdecd82b6ba7cf99120e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/lance-encoding/src/array_encoding/logical/struct.rs:587-605 | rust/lance-encoding/src/encodings/logical/struct.rs:342-360 \u2014 before extracting anything, compare \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs\u0060 and \u0060rust/lance-encoding/src/encodings/logical/struct.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs:587\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"867ffd1e553370fa0027f9712e339cf141902a70f7af0eceb34b6bbfad06007d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:203-215 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:290-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 \u0060rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a228b6f08a3aa0de7278db08ce68d55528f8799524a30158bd847b3b03a4964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:416-429 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:1760-1773 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e228a43d4d8422dade8e2eb8d9b5420e112bd2868f6542d571895c44b13f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:465-478 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:489-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:465\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4f8cd8627ea3520983b16da25f065e8163aac76c5a75da298b467b3725ff40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:1031-1044 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1054-1066 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:1031\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"86796a222ebf8ce501e3051811f0a13e8a122c14aacaf8f2338ac41553a8ca98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/binary.rs:774-787 | rust/lance-encoding/src/encodings/physical/binary.rs:821-834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/binary.rs:774\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"6292f5aec456e9218d72b2f5f6639753e59270f94e552b7c62a7954b7c224dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/bitpacking.rs:577-588 | rust/lance-encoding/src/encodings/physical/bitpacking.rs:633-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/bitpacking.rs:577\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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 \u0060data\u0060 to \u0060Vec\u003CLanceBuffer\u003E\u0060 in one and \u0060Option\u003CLanceBuffer\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/bitpacking.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c8ce3047c9c85239155b0b1cd85410cc0d8b1a4b116bef74b0ebd3709dbe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/packed.rs:771-784 | rust/lance-encoding/src/encodings/physical/packed.rs:810-823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/packed.rs:771\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41929ba60422c0480cd075b372dc8af2835e8fc8a976f5c5dbd3b73b1d39f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-file/src/concat.rs:415-429 | rust/lance-file/src/concat.rs:433-447 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/concat.rs:415\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75bea359b12e722a75ee47d2171658f85566e614de659238c74bba0bd79de09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-file/src/reader.rs:1386-1399 | rust/lance-file/src/reader.rs:1826-1839 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1386\u0060 it does not close everything it opens, so those exact 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":"rust/lance-file/src/reader.rs"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"66593fc239fd533cb5c71415b6aa6800f564af2a9d8d35e8f933ffaa140f9660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:713-726 | rust/lance-index/src/scalar/inverted/builder.rs:798-811 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7cad6bbccdbe4412fc4246b0b15a5f6580d975dd53482b9dbb3a962f916346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/lance-index/src/scalar/inverted/compound.rs:4081-4092 | rust/lance-index/src/scalar/inverted/index/search.rs:1114-1127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/scalar/inverted/compound.rs:4081\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":4081}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dddb6daa5161a9843a0bd7a5970a232922b70f9afe68abacfd5b9dff3e9110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/partition.rs:904-917 | rust/lance-index/src/scalar/inverted/index/partition.rs:942-955 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:904\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"292550600d8f145077b150fb0ee776c67c1f93718e5678adc0dd48abfdf547fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/partition.rs:1221-1236 | rust/lance-index/src/scalar/inverted/index/partition.rs:1285-1300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1221\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a84d9db898d9c52dc7fb65f0ec5053520a9eb1b5b083299a116dfd845eb7c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1439-1452 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1486-1499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1439\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da734301255f4eda52ba0b1309bb6a59bd13c85df1f4fe0c83fdffcc03e3f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1596-1609 | rust/lance-index/src/vector/distributed/index_merger.rs:1626-1639 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1596\u0060 it does not close everything it opens, so those exact 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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"8406f28c3b4ec9014625d9a6cc4bce83d5fd3f6a404536f4db9d940b04540043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): rust/lance-index/src/vector/flat/index.rs:176-189 | rust/lance-index/src/vector/flat/index.rs:327-337 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/flat/index.rs:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"433209f8569d923931fd9b84068453d0b0e58977327adf0c95ce6efc79097890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/vector/hnsw/builder.rs:428-441 | rust/lance-index/src/vector/hnsw/builder.rs:608-621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7793d612fdfc4efb088442b41f3761eaeec3ae27453605bed4debeae45997f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance-index/src/vector/ivf/shuffler.rs:303-316 | rust/lance/src/index/vector/builder.rs:2188-2200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/ivf/shuffler.rs:303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"77580f7db87e54aa1e1c6bba81040f575884b204c91ad2d1c2197598733b417c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/vector/pq/distance.rs:36-49 | rust/lance-index/src/vector/pq/distance.rs:114-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/pq/distance.rs:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/distance.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b5a8c938f38c47e1d1dc0a15ca64483aa9829adc089e6b9d2c6761376114e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/selector.rs:282-295 | rust/lance-jsonb/src/jsonpath/selector.rs:736-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/jsonpath/selector.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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4812fa00b81867e05bb2de99b98636bc224fc1d9ea6bc2abd8cfa0334a499b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:633-643 | rust/lance-linalg/src/simd/dist_table.rs:736-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/dist_table.rs:633\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-linalg/src/simd/dist_table.rs:750\u0060 calls \u0060_mm256_storeu_si256\u0060, \u0060as_mut_ptr\u0060 and \u0060rust/lance-linalg/src/simd/dist_table.rs:644\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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"6379d5e19e2054d2897c7671dfadf92ce3fb1c62ffd671a296f42d51deaca064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:234-247 | rust/lance-linalg/src/simd/f64.rs:683-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 \u0060rust/lance-linalg/src/simd/f64.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-linalg/src/simd/f64.rs:681\u0060 calls \u0060vminq_f64\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs:233\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"de450bcd57236cefda2fd3e981388758f7e864d43a2fd4d788c50a9995a15c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2440-2453 | rust/lance-namespace-impls/src/dir/manifest.rs:3982-3992 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2440}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2ff952e1fae3de638dc268cadd397eea151d4cfa6d714010c716b1fad539a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/bin/fm_contains_bench.rs:218-231 | rust/lance/src/bin/fm_index_tool.rs:70-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/bin/fm_contains_bench.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":"rust/lance/src/bin/fm_contains_bench.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"462a1ea332b91f1597d9175224e421cf02c95432a2458727292a0c29071da7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/blob/external.rs:155-168 | rust/lance/src/dataset/blob/write.rs:1237-1250 \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":"rust/lance/src/dataset/blob/external.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3db532254245d822b6c7b4dedd25dd44f3afefe5e3a64436f23d56b19081e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/blob/managed.rs:87-100 | rust/lance/src/dataset/blob/managed.rs:103-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/blob/managed.rs:87\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/managed.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d702ddead1e02c8380677f8da7c1ec62c6d279111b2c9f56f7dacb2426e9555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance/src/dataset/hash_joiner.rs:193-206 | rust/lance/src/dataset/hash_joiner.rs:280-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/hash_joiner.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":"rust/lance/src/dataset/hash_joiner.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f57ea28caefd14c84372f162067b3f79b94767d61405ad491fd677a02b6306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance/src/dataset/index/frag_reuse.rs:162-175 | rust/lance/src/dataset/index/frag_reuse.rs:801-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 \u0060rust/lance/src/dataset/index/frag_reuse.rs:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc34975f2402106afa13630e8bcd26e1c973bb7af15583795890dce805129c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:897-910 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:986-999 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/hnsw/graph.rs:897\u0060 it begins part-way through the construct above it, so those exact 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":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afa015683d7c468dd957a3ba968fc47546a36137ccb4b4e04d42e9105af6ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/btree.rs:366-379 | rust/lance/src/dataset/mem_wal/index/btree.rs:583-596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/index/btree.rs:366\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8495f4762bb33cd6191dd38ec6bb7b3ba505b2208a4d77886f0406cf6074284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/fts.rs:2032-2043 | rust/lance/src/io/exec/fts/query_tokens.rs:282-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/mem_wal/index/fts.rs:2032\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"50254fcbcab43e34c0bd3f0b4169436800842789c478413041a845c77bd8ea06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/collector.rs:317-330 | rust/lance/src/dataset/mem_wal/scanner/collector.rs:358-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/collector.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":"rust/lance/src/dataset/mem_wal/scanner/collector.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85675978fcaddd3f5fe50fc0d7267a3a014363c3290c3765af4867470eb0028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/mem_wal/wal.rs:1315-1328 | rust/lance/src/dataset/mem_wal/wal.rs:1405-1418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/wal.rs:1315\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74575d5e6d2929190fdc550dea1df276cb93b5db68165407668a99e651cbaa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:1211-1224 | rust/lance/src/dataset/optimize/planning.rs:1563-1576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/planning.rs:1211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c977534e915001c4d7ca4d1ba60c07ddcd9fdb9f23a168a4bd833626048c41d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/lance/src/dataset/write.rs:2419-2431 | rust/lance/src/dataset/write.rs:2480-2493 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write.rs:2480\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write.rs"},"region":{"startLine":2419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e797e944d05d50dee9bc97afb644a95d739584e1864e532a501504de2e581e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/index/vector.rs:1384-1397 | rust/lance/src/index/vector.rs:1403-1416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1384\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d0ac03ed0a0b4dd8ff77aba3c5024121e8feb80c523a794bcc71a0d8a3c395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/index/vector.rs:1556-1569 | rust/lance/src/index/vector.rs:1575-1588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1556\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c0ad3429ed6817b3dfd83cc9ef6d404af2b95d2c9e422c9cd148d16e37c1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1401-1414 | rust/lance/src/index/vector/ivf.rs:1490-1501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:1401\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"3789cdee349a1bb7b7c436e35b0663a3da975fc9b529744cf43f8a188e6f5e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/io/exec/filtered_read.rs:2093-2106 | rust/lance/src/io/exec/filtered_read.rs:2120-2133 \u2014 both copies are in the same file, so extract the block 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ff3bf790eecd9ee994dc65d89ddebb8b43bc2e8870ede63b6527d8d6f61fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/io/exec/fts/boolean.rs:82-95 | rust/lance/src/io/exec/fts/boolean.rs:356-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 \u0060rust/lance/src/io/exec/fts/boolean.rs:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/boolean.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb540882c1f59e31157a5c618f2c33a5afba1dd14a7b64725d57ee0bf667dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/io/exec/fts/compound.rs:1411-1424 | rust/lance/src/io/exec/fts/compound.rs:1826-1839 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/compound.rs:1411\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceb6c57ce05c0a443d94de23a6bd0d64a0a05d6c1e1432ac47d99ab48b7f8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 6): java/lance-jni/src/namespace.rs:393-405 | java/lance-jni/src/namespace.rs:535-545 | java/lance-jni/src/namespace.rs:618-628 | java/lance-jni/src/namespace.rs:717-729 | java/lance-jni/src/namespace.rs:800-810 | java/lance-jni/src/namespace.rs:907-919 \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 \u0060java/lance-jni/src/namespace.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. 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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7897bc29de5326cd323b925f122b2417ef8433052d67920fbb8ce5ab1130bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): python/src/file.rs:340-352 | python/src/file.rs:507-518 | python/src/file.rs:1004-1015 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/file.rs:340\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/file.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2137a41494cb22e2efc95b0ee3a1f44e56ef58c3cf376addae5395ace06229c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): rust/lance-namespace-impls/src/credentials/gcp.rs:859-869 | rust/lance-namespace-impls/src/credentials/gcp.rs:919-930 | rust/lance-namespace-impls/src/credentials/gcp.rs:981-993 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:859\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc4d40f65e648dd1b5b6ef7fe7d44b75170bcba342454c5a060bdd20320f4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): rust/lance/src/index/vector/ivf.rs:3791-3803 | rust/lance/src/index/vector/ivf.rs:5870-5882 | rust/lance/src/index/vector/ivf.rs:6095-6107 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:3791\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/index/vector/ivf.rs:5884\u0060 calls \u0060streaming_ivf_progress_interval\u0060 and \u0060rust/lance/src/index/vector/ivf.rs:3805\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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3791}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8e9123c966df1acf891169eba7297d453b978959439aec6c28e3f9d61a4a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): rust/lance/src/io/exec/fts/compound.rs:1119-1130 | rust/lance/src/io/exec/fts/match_query.rs:631-643 | rust/lance/src/io/exec/fts/phrase.rs:544-556 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/compound.rs:1119\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d8d3923a11de4c64f14e05542b1fcc880bc8ea9830e66f11fde1b4db48da64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): java/lance-jni/src/file_reader.rs:114-126 | java/lance-jni/src/file_writer.rs:97-109 \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 \u0060java/lance-jni/src/file_reader.rs:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/file_reader.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f050bfd4ea5607fb9d1bd1f5ffa15cb0d9b9ceff0d7de79247bbaa18a47045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): java/lance-jni/src/namespace.rs:1914-1926 | java/lance-jni/src/namespace.rs:2865-2877 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:1914\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"1467a67b37d3def815e80cdc6448dbcf19b93180e6467fe4a83aae4bc1b056e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): java/lance-jni/src/namespace.rs:3546-3559 | java/lance-jni/src/namespace.rs:3675-3688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3546\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3546}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f9b571eebd9c10cbece77899cd56866e67d1f7ace011e89063d9bbba576549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/array_encoding/logical/list.rs:1155-1167 | rust/lance-encoding/src/array_encoding/logical/list.rs:1185-1197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/array_encoding/logical/list.rs:1155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2d88d697ba59b07ed08a24aef7b8e1e4d5ba19a0afe5f646ad083095a2d236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): rust/lance-encoding/src/compression.rs:224-236 | rust/lance-encoding/src/compression.rs:389-399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/compression.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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ba953271c6bb91f9246e4246007f15cf01fe2dd11f8ee9c4a4ea1bc141c7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs:274-286 | rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs:316-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs:274\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/chunk_index.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcb31c651658dab3530c8395ccbbf96d849f8b90eb085dc95109b7841a7e0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:176-188 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:209-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1c096255fc338263fd069ffb2af199d2016b8c9a1d65d4d31bd4d15bf237a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:936-948 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1025-1037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:936\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"156d9c485a956032ad33760700a7c9f2ce690cc168313d7472091494e10eff02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:615-627 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:638-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:615\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca8adb1d89c8b584817203377a746b139cad14481e73c34a150f1b8e868f655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/binary.rs:760-772 | rust/lance-encoding/src/encodings/physical/binary.rs:807-819 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/binary.rs:760\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a225cc2dc107049a534b4d52f825017af448e25f0fa83024f9142de0945c064a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/binary.rs:1039-1051 | rust/lance-encoding/src/encodings/physical/binary.rs:1082-1094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"197141c74d26a1a5c6268f6105b2837c8252cc2d5a768c97e231080cde16feb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/binary.rs:1062-1073 | rust/lance-encoding/src/encodings/physical/binary.rs:1105-1117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/binary.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e005c029d558352dc7e0d43aa4eb2cfe26b256782d5769cec3d498cf1d0acb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:510-522 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:624-636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"1367325d27f4f201766996586c3b90759cd4a9e2b966ee7af6203cf9e5f473be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/rle.rs:1305-1317 | rust/lance-encoding/src/encodings/physical/rle.rs:1378-1390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/rle.rs:1305\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4864291680fd7aa004099ac637401c213f49861ca74fc9211586182eb0610d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/lance-encoding/src/utils/accumulation.rs:143-154 | rust/lance-encoding/src/utils/accumulation.rs:261-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 \u0060rust/lance-encoding/src/utils/accumulation.rs:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-encoding/src/utils/accumulation.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6ac82956aa1cc1916d963a781e0737ccdb330598b58cd31f4b8f5eeb4e713a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-file/src/reader.rs:1533-1545 | rust/lance-file/src/reader.rs:1612-1624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1533\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4966dff725ec095700159ffe2e678970cdd670059b31372a827523375943d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-file/src/reader.rs:1693-1705 | rust/lance-file/src/reader.rs:2114-2126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1693\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7081c7dfdd92a92218a936b691ae04ac86c9e1ef7d76d45e2a623f2a93be2741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:907-919 | rust/lance-file/src/writer/structural.rs:888-900 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abe921b32d4490236f4c33dfe7dc235aa119a0f1474a4e7ae29984ef210c41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:1917-1929 | rust/lance-index/src/scalar/inverted/builder.rs:1958-1970 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/builder.rs:1917\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45bf41701fc569a2a923f35dab01105fb144440cb075d86aaea93594746a8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/scalar/inverted/compound.rs:181-193 | rust/lance-index/src/scalar/inverted/wand/bounds.rs:173-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3ca987dfce16ee6541658c896392c66b0c3bbde8dea2e76098dffb1263224c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:53-65 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1084-1095 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1082\u0060 calls \u0060block_shift\u0060, \u0060block_mask\u0060 and \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:52\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":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a1a891e10dffa6ca15d315ff68ede73eb316d30902f6f0d51e3b9e85b82a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/vector.rs:523-535 | rust/lance/src/index/vector/ivf/v2/partition_search.rs:222-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b14a85232f10305895e4ba016ea91c3415b035b4fa67055d83ceab4cd75250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:304-316 | rust/lance-index/src/vector/distributed/index_merger.rs:345-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55ddf6580e0e4f3481153551536322c7ddfa5e605211e8f432021b2649ed363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1335-1354 | rust/lance-index/src/vector/distributed/index_merger.rs:1367-1387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1335\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1018d9ab6e37c1950b9f1f2e618750fd6c5e6f1cd5556e8ffa0410b5d27fb33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-io/src/object_store/providers/azure.rs:204-216 | rust/lance-io/src/object_store/providers/gcp.rs:286-298 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/azure.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/gcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/azure.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":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf5ae2d011ebdc5b0cb2b24181ead14f4932c074a33ebeb71fb45954118f826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-io/src/object_store/providers/azure.rs:320-332 | rust/lance-io/src/object_store/providers/gcp.rs:358-370 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/azure.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/gcp.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/azure.rs:320\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/azure.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"124596cb45430ec3a9a1c26b7081b01df7d8f56946b44666ce2ac59e88a8d97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/selector.rs:348-360 | rust/lance-jsonb/src/jsonpath/selector.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 \u0060rust/lance-jsonb/src/jsonpath/selector.rs:348\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f16a4476f58e0c1000fbe6621683a5d5509468e00cff80a1504fa7ee6d92426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:225-237 | rust/lance-linalg/src/simd/f64.rs:118-130 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ptr\u0060 to \u0060*const f32\u0060 in one and \u0060*const 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcbf0fd8f6bfc7ead581269b8a1a4bca654c716ba4b9b045f909265a8fe6401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:3252-3264 | rust/lance-namespace-impls/src/dir/manifest.rs:3374-3386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3252\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3252}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acee493872d4958b92494c78432c429ffb5c2cd05bceba70f457e47f61d19a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-table/src/format/fragment.rs:470-482 | rust/lance-table/src/format/fragment.rs:932-944 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/format/fragment.rs:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec6deba9c100b7a00c9db67887ac8e6b3cde33f288f92b1f0079d6cab261423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-table/src/transaction/manifest_build.rs:948-960 | rust/lance-table/src/transaction/manifest_build.rs:1234-1246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20f89aff130f404f4d07f71eea2857d8ff2557ba4250ed547293e271a6625e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1125-1137 | rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1191-1201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"27630203ebeb2029a07509fe205aaec1c825404e324a933230010afd50ff8070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1310-1322 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:692-704 \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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9bd3c16c163ba0cf77b1eaffed7bb531356fa3a57d23c663c3d8bc106240c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/projection.rs:109-121 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:171-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/projection.rs:109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/projection.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9cab8c92cb453f63f1d1424cece7bdd7c55296fcf40fdc34afdf823d7b2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): rust/lance/src/dataset/optimize/binary_copy.rs:188-197 | rust/lance/src/dataset/optimize/execution.rs:191-203 \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 \u0060rust/lance/src/dataset/optimize/binary_copy.rs:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a28a350351dabb88a6d9ee7630f18e924d29c83ef22ef91683d69834968bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:1225-1237 | rust/lance/src/dataset/optimize/planning.rs:1578-1590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/planning.rs:1225\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac5b8ff755272319075d3f8d8a41c5c8b76102221a80833f6ee68e44cdc6058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:1778-1790 | rust/lance/src/dataset/scanner/fts.rs:2135-2147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:1778\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"6290383d7d204cbe8941a0319d446624c79e322846aa101f7bcda252c86eb9f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:142-154 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:611-623 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa1deaef6f3997c66509b84e9cf606d44ca226c2eb0893a4ffcfe4bb2f0386b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/write.rs:1119-1131 | rust/lance/src/dataset/write/merge_insert/logical_plan.rs:199-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs:1119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/write.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e829cd57e13252c0c5fca11d61a60b3f7efafa53339d171de3dcfcfe20ede0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/index/scalar/bitmap.rs:93-105 | rust/lance/src/index/scalar/label_list.rs:102-114 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/label_list.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 \u0060rust/lance/src/index/scalar/bitmap.rs:93\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c11b1e02d1e35706cf9092647673d058c0f1a2234692ec1e18b431d7b0d1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:5233-5245 | rust/lance/src/index/vector/ivf.rs:5259-5271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd49ace214b069b050bd8c2f7be31f6395fca77abced70d1f87c1cd94859c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/io/exec/filtered_read.rs:3320-3332 | rust/lance/src/io/exec/filtered_read.rs:3383-3395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/filtered_read.rs:3320\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3320}}}],"partialFingerprints":{"codehealthFindingId/v1":"156f29b1c39f55f19b708a3cc1802cf86c376a05862f45a297364094edbad3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/io/exec/fts/flat_match.rs:751-763 | rust/lance/src/io/exec/fts/flat_match.rs:810-822 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/flat_match.rs:751\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab3d11341efa763a58b574362147b81994923a157c18d2ddfee6f8fe9b482b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): rust/lance-namespace-impls/src/dir/manifest.rs:3251-3262 | rust/lance-namespace-impls/src/dir/manifest.rs:3373-3384 | rust/lance-namespace-impls/src/dir/manifest.rs:3403-3414 | rust/lance-namespace-impls/src/dir/manifest.rs:3625-3636 | rust/lance-namespace-impls/src/dir/manifest.rs:3679-3690 | rust/lance-namespace-impls/src/dir/manifest.rs:4169-4180 | rust/lance-namespace-impls/src/dir/manifest.rs:4247-4258 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060DescribeTableRequest\u0060 in one and \u0060TableExistsRequest\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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3251}}}],"partialFingerprints":{"codehealthFindingId/v1":"d986ab3773bf43c951569e76025e4329aaa3e1709c9ef832229f342f4f6d0176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): rust/lance-index/src/vector/ivf.rs:157-168 | rust/lance-index/src/vector/ivf.rs:229-240 | rust/lance-index/src/vector/ivf.rs:279-290 | rust/lance-index/src/vector/ivf.rs:323-334 \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":"rust/lance-index/src/vector/ivf.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ddf0ef1030c0e4217d86f06b03a8b8709c3b81e6348bd3038313c29e47f69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): rust/lance-namespace/src/schema.rs:119-130 | rust/lance-namespace/src/schema.rs:137-148 | rust/lance-namespace/src/schema.rs:155-166 | rust/lance-namespace/src/schema.rs:199-210 \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 \u0060rust/lance-namespace/src/schema.rs:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace/src/schema.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51dbdaaacd50e4bfac8ef95f604f7b5745624368788991d7c1b715d8a1660cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): rust/lance/src/dataset/mem_wal/scanner/builder.rs:664-675 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:729-740 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:775-786 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:803-814 \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":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c7161e2a9a9f32ee07dc7c4cb98e0632aecd2dadd41d68a444c3bdb0ce1555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance-datafusion-exec/src/udf/json.rs:673-684 | rust/lance-datafusion-exec/src/udf/json.rs:729-740 | rust/lance-datafusion-exec/src/udf/json.rs:785-796 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/udf/json.rs:673\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"104bccbcb1900779267ad7e0146213f2158c62c3e81eccf8e465c73bde9da63f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance-file/src/versions/v2_1/mod.rs:79-90 | rust/lance-file/src/versions/v2_2/mod.rs:82-93 | rust/lance-file/src/versions/v2_3/mod.rs:94-105 \u2014 \u0060rust/lance-file/src/versions/v2_2/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_1/mod.rs:79\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8936644c8ca2f368c7d3f2f0e29a39a77af568b8c7816af5cbf2476abce9ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance-index/src/scalar/lance_format.rs:348-359 | rust/lance-index/src/scalar/lance_format.rs:389-400 | rust/lance-index/src/scalar/lance_format.rs:472-483 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/lance_format.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fb4583d159b6ed707b9eb9baf59bb8b5f0858449fe5f828341eee8fd214f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance-index/src/vector/distributed/index_merger.rs:267-278 | rust/lance-index/src/vector/distributed/index_merger.rs:306-317 | rust/lance-index/src/vector/distributed/index_merger.rs:347-358 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:267\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4172aecf0276c400d49c0c111ba50889d4ed44f8786cc19db4eb65c2c8de9bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:530-540 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs:531-542 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:267-278 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:530\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"9058a9b57825097f2697c3b7d9274e71def37b464f7bb4fa7b9f89d422aae4f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:161-170 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:438-449 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1031-1042 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dfc6fa4a41cf4f6e8ee30291936f79cfee12700eea4df44a7c968425641e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance/src/index/scalar/bloomfilter.rs:26-37 | rust/lance/src/index/scalar/minhash_lsh.rs:31-42 | rust/lance/src/index/scalar/rtree.rs:27-38 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bloomfilter.rs\u0060 and \u0060rust/lance/src/index/scalar/minhash_lsh.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7aa70701e62a5ccc7a0516e570d235736b69124d8c9a3f47c83cb2b85c369c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:911-920 | python/src/mem_wal.rs:835-846 \u2014 before extracting anything, compare \u0060java/lance-jni/src/mem_wal.rs\u0060 and \u0060python/src/mem_wal.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/mem_wal.rs:911\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"262ed0bfb16d69ac40fc560c1591aa6f769a68ad1ff1241fbdf62ce32b95a94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): python/src/dataset.rs:2001-2012 | python/src/dataset.rs:2035-2044 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"669645fd3e3674cb1987e01d5d89b8f0836ca3b5ec48bb5901e79cce40a9b2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): python/src/indices.rs:462-473 | python/src/indices.rs:644-655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/indices.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c744ee3a145ebf5f407c6cbc9807331056cec509d23c756c09340a58a78d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/data.rs:1158-1169 | rust/lance-encoding/src/data.rs:1374-1385 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381f5ecc3d03cb9b8d9837000ef3f68c17b8003d4f7592910172d27169720b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/blob.rs:190-201 | rust/lance-encoding/src/encodings/logical/primitive/blob.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/blob.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8023560e6af96fa858bb7f10b650073d552ad2b7adccfe11c547661108781d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/dict.rs:326-337 | rust/lance-encoding/src/encodings/logical/primitive/dict.rs:594-605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/dict.rs:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8be698b4ef0e4d3cb37d28677e6da64de4a1d03c9bdf2961c16be0998ae4348"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1900-1911 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1930-1941 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1900\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"361bedde125fe87577e904b8897cbae3bfbd617c4fa7d6526d0324ca78254c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1996-2007 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2012-2023 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:1996\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c681af997c799503b86adb5e30bd9c097a7cdc05f4bdbb4881ef2295121135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:688-699 | rust/lance-encoding/src/encodings/physical/alp.rs:715-726 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff64e2f1c1ab825d1ef248e0c53a4f93c84821e0a6d52f6023c2a5d6610b0605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:542-553 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:563-573 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"704946d81c97afb1434aba8423ddf374f72da4003f6a2b7727159d1b1fdfa9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/delta.rs:81-92 | rust/lance-encoding/src/encodings/physical/delta.rs:102-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/delta.rs:81\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/delta.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eb4a787d1e8756e05ec22abb07341e03f0e924026e358f7ddf8a0006cae3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/general.rs:372-383 | rust/lance-encoding/src/encodings/physical/general.rs:394-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/general.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ee4b583058cef67856eedcd789e3b7b239f53cfaa28f395dd1459fc2fa5faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/rle.rs:1883-1894 | rust/lance-encoding/src/encodings/physical/rle.rs:2072-2083 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/rle.rs:1883\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f210de6d4e9438665cac67208e9e07138b43e9a02c4a78185146795a25d6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-file/src/concat.rs:396-408 | rust/lance/src/dataset/blob/external.rs:216-228 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/concat.rs:396\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"09392384b6361178e2933b314acf52b08ce4241af97b40f1fac497c4bef5ad88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:232-243 | rust/lance-file/src/versions/v2_0/reader.rs:189-200 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02f1a66319ecbf1740736381d260466d5a39b2187e67fa97f1a9c73abb1f018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:78-89 | rust/lance-file/src/writer/structural.rs:61-72 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b61f0ec89f5f12fd21759737489612fb7c132d158784eba8f26568509d22eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:96-107 | rust/lance-file/src/writer/structural.rs:79-90 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c76e47c621e37bdcddba9fa727b87c8f13fc3311227601d6c99e6607571b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:923-934 | rust/lance-file/src/writer/structural.rs:904-914 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"601334a85a6ed009ea6b1a31a37a5fe5a6ca55913c0ec51a65bdeb92908131e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-file/src/versions/v2_1/reader.rs:168-179 | rust/lance-file/src/versions/v2_2/reader.rs:170-181 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd1154c202593ef7ce6c15d3b776b3aa3e6d13f2c4018247ddf2ccd4007542e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/posting.rs:1094-1105 | rust/lance-index/src/scalar/inverted/wand/posting.rs:1140-1151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/posting.rs:1094\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn next(\u0026mut\u0060 in one and \u0060super) fn next_doc_id(\u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58e411e0d5555461229aba563e55c2fdf7ee15fec1925f62a2b480b2b9664fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): rust/lance-index/src/scalar/ngram.rs:1823-1834 | rust/lance-index/src/scalar/ngram.rs:1940-1949 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/ngram.rs:1823\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea971a5a9ac65327784f2c38d852b03a4e38d5ea7ef0bbf75e1bdb3fc1fec5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:836-847 | rust/lance-index/src/vector/bq/storage.rs:875-886 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/storage.rs:836\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bcfdc4ae194424e2048fed2d71876a5b2f690bf2c2e3aaa362108efea430dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-index/src/vector/bq/storage/scan.rs:455-465 | rust/lance-index/src/vector/bq/storage/scan.rs:517-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-index/src/vector/bq/storage/scan.rs:529\u0060 calls \u0060peek\u0060 and \u0060rust/lance-index/src/vector/bq/storage/scan.rs:466\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage/scan.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7a9dad20461c9859e5c2472f468e1c1e2cc65c01a0976b2bf380c7bb7f0777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-index/src/vector/flat/index.rs:142-152 | rust/lance-index/src/vector/flat/index.rs:299-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/flat/index.rs:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb674e9c4a2c36121bc2db178f9c2edf902a847deb2892d1005359a8fe2b044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/vector/flat/index.rs:263-274 | rust/lance-index/src/vector/flat/index.rs:448-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-index/src/vector/flat/index.rs:275\u0060 calls \u0060with_capacity\u0060 and \u0060rust/lance-index/src/vector/flat/index.rs:460\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3101b81518bd02e08fbb62815dd997332c334514cd70510081cc5194648779cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 2): rust/lance-index/src/vector/hnsw/builder.rs:353-364 | rust/lance-index/src/vector/hnsw/builder.rs:546-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/builder.rs:353\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"85033ea66d177c2d6ce6d012f0178613783a40e9136b3db3d5e2839e3e059c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/vector/hnsw/builder.rs:672-683 | rust/lance-index/src/vector/hnsw/builder.rs:686-697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/builder.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":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"97896779cbe23576e7cea1a0ffcf49d9b68ec52034b6638262423654e6edc755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-io/src/object_store.rs:1751-1762 | rust/lance-io/src/object_store.rs:1881-1892 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-io/src/object_store.rs:1750\u0060 calls \u0060current\u0060, \u0060record\u0060 and \u0060rust/lance-io/src/object_store.rs:1880\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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3534503d11155de722c3b502e72e85be63e6b0b70a9a60ac0cc145a1a0c2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-linalg/src/kernels.rs:359-370 | rust/lance-linalg/src/kernels.rs:373-384 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-linalg/src/kernels.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f5a48876d0c0e597829da968965f647129bbf9e5803c32a33b689e72a9b07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:307-318 | rust/lance-linalg/src/simd/f32.rs:800-811 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e05325814b2a17b58587e572615906e89aa692f4f3e6efbb0742f2eea225838"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:156-167 | rust/lance-namespace-impls/src/dir/manifest.rs:194-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 \u0060rust/lance-namespace-impls/src/dir/manifest.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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aae8b8c9b611df7f3f0b2b3fb7b556ac404753378ea36907513a324e3c17f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2923-2934 | rust/lance-namespace-impls/src/dir/manifest.rs:2959-2970 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b7b0ea427ec966c6970651cfdbc6ddca3a42764da6befd5debd414d7ae7e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:3192-3203 | rust/lance-namespace-impls/src/dir/manifest.rs:3787-3798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3192\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3206\u0060 calls \u0060get_string_column\u0060 and \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3801\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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e58baae2b9d1319f9f1a8d0c27561237708b239063ddcf65c23b02044167d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-table/src/format/key_existence.rs:453-464 | rust/lance-table/src/format/key_existence.rs:467-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 \u0060rust/lance-table/src/format/key_existence.rs:453\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/key_existence.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ced2c137fd610e32ac581801b499f98ce315b580abe8bdb2dc661c8aa993299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance-table/src/io/commit/external_manifest.rs:174-185 | rust/lance-table/src/io/commit/external_manifest.rs:203-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/io/commit/external_manifest.rs:174\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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":"rust/lance-table/src/io/commit/external_manifest.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"529cf633549beee8c66423aaaba9d2675fe8a3e920ca3b61e0aa05d1026d07ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/datafusion/dataframe.rs:206-217 | rust/lance/src/dataset/udtf.rs:105-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 \u0060rust/lance/src/datafusion/dataframe.rs:206\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/datafusion/dataframe.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78fa36c86eb4e7c4adb656125befca0b518452385ed364b1524b4667ee9ebfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/dataset/blob/materialize.rs:582-593 | rust/lance/src/dataset/blob/materialize.rs:596-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/blob/materialize.rs:582\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/materialize.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f02035403c46aa579ce34c8581e73642147aac5a143371d61c49235cf61a8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/dataset/blob/materialize.rs:722-733 | rust/lance/src/dataset/blob/rewrite.rs:657-668 \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 \u0060rust/lance/src/dataset/blob/materialize.rs:722\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/materialize.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e073df4d182525b53412cee920357d08fdfc3a409e6fa5b9d473f09449bc870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/fts.rs:3579-3590 | rust/lance/src/dataset/mem_wal/index/fts.rs:4913-4924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/index/fts.rs:3579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":3579}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84780e18d9d2bf06a5d8c2dce080ac0bd9f42914c003e4a8cdb6f3aab958ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/batch_store.rs:432-443 | rust/lance/src/dataset/mem_wal/memtable/batch_store.rs:497-508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/batch_store.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"9499500ecfe9ed7887a12d26bb0955297b46e3f3ea88c26b5bcc050b491947c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1469-1480 | rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1500-1511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1469\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dfbab2e661d8ee46725b03ca02499bd4a1eeb3862fe7bd02787fa4ec99e10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:1342-1353 | rust/lance/src/dataset/optimize/planning.rs:1648-1658 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/planning.rs:1342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"94324cee43b01598caf3ebcc386e63efe5452963c9634ec7f8e1e25a959c8324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/in_place.rs:562-572 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1455-1466 \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":"rust/lance/src/dataset/write/merge_insert/exec/in_place.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"6037bd027f04cc90402d02f3d36dcfb54342dc9f5c49fdb28ae6e86eec57659a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/index/provenance.rs:95-106 | rust/lance/src/index/scalar/ngram.rs:94-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/provenance.rs:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/provenance.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f98e636985f7b3998dead454d2ff22dab932eb291ab6e5c5f976b701055ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/index/scalar/bitmap.rs:39-50 | rust/lance/src/index/scalar/btree.rs:69-80 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/scalar/bitmap.rs:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e83855626076da50d545f19cc3180183862104dc97c35bf184d6bb4b5a965a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): rust/lance/src/index/scalar/btree.rs:131-146 | rust/lance/src/index/scalar/ngram.rs:48-64 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/btree.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2567b9e0ce25bf59fb5f624ebca92a69a6a9031daee9542848a980982b1114f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1520-1531 | rust/lance/src/index/vector/ivf.rs:2913-2924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c212b023a975babbb58918be459628c54e99d64e4ea74f177edb3de66cd82cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/index/vector/ivf/builder.rs:62-73 | rust/lance/src/index/vector/ivf/builder.rs:265-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. 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":"rust/lance/src/index/vector/ivf/builder.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"185266fdda2543d77a2b84daabf150d6e51427bc0bfdd18b70f8ec8747f54bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/index/vector/ivf/partition_serde.rs:285-296 | rust/lance/src/index/vector/ivf/partition_serde.rs:329-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/partition_serde.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b84c06ac0916b913cd71098a49e238f38cf6ab179a4e16534b982529e40bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/src/io/exec/knn.rs:2415-2426 | rust/lance/src/io/exec/knn.rs:2507-2518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/knn.rs:2415\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance/src/io/exec/knn.rs:2427\u0060 calls \u0060add\u0060 and \u0060rust/lance/src/io/exec/knn.rs:2519\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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e475fa0762d99029f537a774cc89830f4de94910d35f81a0cee0098052bab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): rust/lance-namespace-impls/src/rest.rs:1019-1029 | rust/lance-namespace-impls/src/rest.rs:1085-1095 | rust/lance-namespace-impls/src/rest.rs:1485-1495 | rust/lance-namespace-impls/src/rest.rs:1533-1543 | rust/lance-namespace-impls/src/rest.rs:1777-1787 | rust/lance-namespace-impls/src/rest.rs:1865-1875 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ListNamespacesRequest\u0060 in one and \u0060ListTablesRequest\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47defd23ef16fd5d960891982c003db2141e42b280455e6b57a7fa235f09c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): java/lance-jni/src/namespace.rs:381-391 | java/lance-jni/src/namespace.rs:461-471 | java/lance-jni/src/namespace.rs:521-531 | java/lance-jni/src/namespace.rs:604-614 | java/lance-jni/src/namespace.rs:786-796 \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 \u0060java/lance-jni/src/namespace.rs:381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4a7d10b2ab2bd8804d5e2db5743ff381953930b38e5dba7be3a01034a454ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 5): rust/lance/src/dataset/blob/prepared.rs:133-143 | rust/lance/src/dataset/blob/prepared.rs:164-173 | rust/lance/src/dataset/blob/prepared.rs:182-192 | rust/lance/src/dataset/blob/prepared.rs:201-211 | rust/lance/src/dataset/blob/write.rs:1186-1196 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/blob/prepared.rs:133\u0060 it begins part-way through the construct above it, so those exact lines 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 \u0060field\u0060 to \u0060\u0026ArrowField\u0060 in one and \u0060\u0026Arc\u003CArrowField\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/prepared.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d74d419412aca8a09ade3950609cfe0197692a2090b3f678051c9e8944a6e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): rust/lance-encoding/src/encodings/physical/alp.rs:833-843 | rust/lance-encoding/src/encodings/physical/alp.rs:906-916 | rust/lance-encoding/src/encodings/physical/alp.rs:1073-1083 | rust/lance-encoding/src/encodings/physical/alp.rs:1146-1156 \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 \u0060rust/lance-encoding/src/encodings/physical/alp.rs:833\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf731144a2e5eb9bdcc6de56e62f381132f3d210a169e9028e90c01b89e2e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): rust/lance-file/src/versions/v2_0/reader.rs:138-148 | rust/lance-file/src/versions/v2_1/reader.rs:184-194 | rust/lance-file/src/versions/v2_2/reader.rs:186-196 | rust/lance-file/src/versions/v2_3/reader.rs:349-359 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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":"rust/lance-file/src/versions/v2_0/reader.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b1145780a69919c4094d0b707e7508038653edbd64a022a69da710e36b7115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): rust/lance-file/src/versions/v2_0/reader.rs:361-371 | rust/lance-file/src/versions/v2_1/reader.rs:227-237 | rust/lance-file/src/versions/v2_2/reader.rs:229-239 | rust/lance-file/src/versions/v2_3/reader.rs:392-402 \u2014 \u0060rust/lance-file/src/versions/v2_1/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 139 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a 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 \u0060rust/lance-file/src/versions/v2_0/reader.rs:361\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-file/src/versions/v2_1/reader.rs:226\u0060 calls \u0060validate_global_buffers\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs:360\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":"rust/lance-file/src/versions/v2_0/reader.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d7d4f96f791b3bf6d75b1ef941af0b2c6e4b0ad1f48400d2286845d83af4d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance-encoding/src/decoder.rs:1755-1765 | rust/lance-encoding/src/decoder.rs:1992-2002 | rust/lance-encoding/src/decoder.rs:2252-2262 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/decoder.rs:1755\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1755}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d35ab5ece4146258f63cf7450bb3282e92377587166f3294fe88a4d7da8cf74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): rust/lance-file/src/reader/structural.rs:133-143 | rust/lance-file/src/versions/v2_0/reader.rs:85-94 | rust/lance-file/src/versions/v2_0/reader.rs:112-122 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.rs:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b90820176f410fea5929a07837be12b444bc9ddaffc4440b205c0f212c15114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance-namespace-impls/src/dir/manifest.rs:2925-2935 | rust/lance-namespace-impls/src/dir/manifest.rs:2961-2971 | rust/lance-namespace-impls/src/dir/manifest.rs:3072-3084 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:2925\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2925}}}],"partialFingerprints":{"codehealthFindingId/v1":"8707964dff4a8bcf75828ba4828f966d4fff6c35b79249823c5f0192fc88c470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:136-146 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs:146-156 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:111-121 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf7eddeef6e5b0a89a6058d0f810652fd7dab61395f497577e6c481e828c117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance/src/index/scalar/bitmap.rs:41-51 | rust/lance/src/index/scalar/btree.rs:71-81 | rust/lance/src/index/scalar/rtree.rs:88-98 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9ad7679ab0928b2f54a91a7a37f1ab8c585e0aeb711de38c0f73ef3bfaaede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): rust/lance/src/index/scalar/bloomfilter.rs:93-102 | rust/lance/src/index/scalar/minhash_lsh.rs:99-106 | rust/lance/src/index/scalar/rtree.rs:58-68 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bloomfilter.rs\u0060 and \u0060rust/lance/src/index/scalar/minhash_lsh.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/scalar/bloomfilter.rs:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfa7164007e04a802619a2e3a48b8e977eaae5c5340179bc8b3ac6837eaaf67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): java/lance-jni/src/blocking_dataset/construction.rs:507-516 | rust/lance/src/dataset.rs:1272-1282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060java/lance-jni/src/blocking_dataset/construction.rs:507\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance/src/dataset.rs:1285\u0060 calls \u0060Some\u0060 and \u0060java/lance-jni/src/blocking_dataset/construction.rs:519\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":"java/lance-jni/src/blocking_dataset/construction.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8dfd16a1fdd5f09cb0f8e30fda259b2782d14088af3bed3d5d64ad2855d40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): python/src/dataset.rs:2404-2414 | python/src/dataset.rs:4411-4421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ad8498ebb19ee813dc377f64c8bb65eea7496ea447cbf21184b7da88d9e1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): python/src/mem_wal.rs:534-544 | python/src/mem_wal.rs:692-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/mem_wal.rs:534\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/mem_wal.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"519cc9487a435d76317106d0ed4b955b454ddf7f1ba355fd146f898c6993d0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/arrow-stats/src/lib.rs:181-191 | rust/arrow-stats/src/lib.rs:239-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 \u0060rust/arrow-stats/src/lib.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":"rust/arrow-stats/src/lib.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e05849695ff5e1682f01ff96167cb4ffb020f3ad87fe792a17ea2ca227c5000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:657-667 | rust/compression/fsst/src/fsst.rs:698-708 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/fsst/src/fsst.rs:657\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c56c6f4124c796fcda643d9273e0f65d5139d4891d12675f29ca9758fcb7eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-core/src/datatypes/schema.rs:239-248 | rust/lance-core/src/datatypes/schema.rs:725-735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/datatypes/schema.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. 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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"852bdbca7075e5de7be14d64f45c2706bd81d12e3d277bc3cb9cdb71508be0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:493-503 | rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:548-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/fixed_size_list.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71f25d3fb9be9b5c6ca0c79494cf641f1268e1bfba6b08c0ec722beef69c217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:73-83 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:441-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c00ec6dc25ed17b2fdfdac5ec20ecefe989fe88e9415bee768ed7606dcad6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:2099-2109 | rust/lance-encoding/src/encodings/physical/alp.rs:2151-2161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:2099\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"05821b35211f3b99ba9a6e67f0bb66a78dc06d71c173fa263d499a9229de6647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:402-411 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:762-772 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:401\u0060 calls \u0060wrapping_add\u0060, \u0060_mm256_extract_epi32\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbfe222929f4e513dc864848f2cf2668fccb35d7478a63415c24be64a7d12af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:484-493 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:810-820 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:484\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:482\u0060 calls \u0060_mm_extract_epi32\u0060, \u0060_mm512_extracti32x4_epi32\u0060, \u0060wrapping_add\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:810\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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f40498c4feda037fe97d057b1fe4b7e99f8b7ea53d1083cb413bd8641398e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:558-567 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:858-868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:558\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:557\u0060 calls \u0060wrapping_add\u0060, \u0060vgetq_lane_s32\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:858\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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33dfc8df79bd0614acdbd8b99bed2714d764e9320357caeb3ca5b19783c58b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:633-642 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:906-916 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:633\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:631\u0060 calls \u0060_mm256_extract_epi64\u0060, \u0060_mm512_extracti64x4_epi64\u0060, \u0060wrapping_add\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:906\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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7cfb485c9af4f5d99bd431345331d145a89dc321a557fbe10520886dcb8088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:704-713 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1112-1122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:704\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea20ffa8e0e032f0dae98d8b51e7cab8712a5ac8360577c665fd5d1adb2a6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:989-999 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1049-1058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:989\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:1048\u0060 calls \u0060wrapping_add\u0060, \u0060_mm256_extract_epi64\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:989\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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d2c415cde8d28467f8d3aebb40166f9f04785a108740ac088300dfad4a82af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-encoding/src/repdef.rs:2543-2553 | rust/lance-encoding/src/repdef.rs:2564-2574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/repdef.rs:2543\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"110420ceb593170469892800af1a953dd09e735cbd670b96f6ae8e0215a78062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-file/src/reader.rs:1489-1499 | rust/lance-file/src/reader.rs:1574-1584 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1489\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"da07cd6da5fe2276f4513f0fcea3b1769e390d2cbccccfe6974ae648bed5ccf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-file/src/reader.rs:2320-2329 | rust/lance-file/src/reader.rs:2534-2544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:2320\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3beaaac3e4183fc1ec8cbfc5cbb3e872985736750e132c4011db6a56a28aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-file/src/versions/v1/writer/statistics.rs:66-76 | rust/lance-file/src/versions/v1/writer/statistics.rs:118-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/writer/statistics.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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7085db7b817870a8cce6c81d4db6428cb51531c0b2a93f2b740bbce107a5c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): rust/lance-file/src/versions/v1/writer/statistics.rs:249-257 | rust/lance-file/src/versions/v1/writer/statistics.rs:324-334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/writer/statistics.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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f9878efb93c560e2abd24a8f30686e3708ebfdb31cbc5715033a031764f42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:110-120 | rust/lance-file/src/writer/structural.rs:93-103 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb470dbca902dfd2f4f1bad83ba68d6bd6aeacde243d09cf00b90a14cf791c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:483-493 | rust/lance-file/src/writer/structural.rs:643-653 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d07ac6cc95c41e8a97406de8b3fa2c804355f96b52a6291af91f5bef7037f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/scalar/inverted/cross_column.rs:1629-1639 | rust/lance-index/src/scalar/inverted/cross_column.rs:1645-1655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/cross_column.rs:1629\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48309ebf756c5414908c209269093377c843978b84a48c527b7518394068eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/token_set.rs:75-85 | rust/lance-index/src/scalar/inverted/index/token_set.rs:340-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/token_set.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4443b9cb2855581aa5e126a1fb2bf9795a3212674ac9786d8e3e5cc684582fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1511-1522 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1559-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac84ead2e7cbcd86759f06f4be593f3e378c5c9ebab4f3affe406876fc252b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/vector/bq/builder.rs:837-847 | rust/lance-index/src/vector/bq/builder.rs:912-922 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-index/src/vector/bq/builder.rs:911\u0060 calls \u0060rabit_ex_bits\u0060 and \u0060rust/lance-index/src/vector/bq/builder.rs:834\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":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d27158556391997342eb06f426cbb9832e2332e6a60f86931818a88d69fce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:815-825 | rust/lance-index/src/vector/bq/ex_dot.rs:1568-1578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:815\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"767e79bc8b8227e945c3dcdc73a57af98500e53506d15d3ddbfee877b17d5a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-index/src/vector/kmeans.rs:374-387 | rust/lance-index/src/vector/kmeans.rs:1065-1078 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d052ae30a8e45c9bda77652255374645f75310a85fdb3bb2b6e39bd2b9e39b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/vector/pq/distance.rs:60-70 | rust/lance-index/src/vector/pq/distance.rs:135-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/pq/distance.rs:60\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance-index/src/vector/pq/distance.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9770c8923b32aa528135fdbef1c04fc39700888b9da54956f4c550132b7a918e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-io/src/object_store/providers/oss.rs:54-64 | rust/lance-io/src/object_store/providers/tos.rs:61-71 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/oss.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/tos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/oss.rs:54\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"716fbba63e74d22d929738333756dd34fd3ccab56c1a55d10319b2e9c2fdd697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-jsonb/src/functions/scalar.rs:503-513 | rust/lance-jsonb/src/functions/scalar.rs:594-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/functions/scalar.rs:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/functions/scalar.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce3d793bb74e9bd9bafb7d7b0851833b461b1a205b07855b4b8fc5c9164002e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/parser.rs:86-96 | rust/lance-jsonb/src/jsonpath/parser.rs:128-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/jsonpath/parser.rs:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/parser.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ed3737d9c705ed32396a7cf8f3cfc18efc4a153cdcea39320b0ea628859923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/selector.rs:403-413 | rust/lance-jsonb/src/jsonpath/selector.rs:415-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-jsonb/src/jsonpath/selector.rs:401\u0060 calls \u0060Owned\u0060 and \u0060rust/lance-jsonb/src/jsonpath/selector.rs:413\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":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6e28a4d35a11fabe08471b33f6eee290e52a23b157ef39f14322c0dece38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:712-722 | rust/lance-linalg/src/simd/dist_table.rs:732-741 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa45400b33a0df9ef4f839e5bd6b8f1fa7405dd0b4a2c43fb13c6e342b0f5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:650-660 | rust/lance-namespace-impls/src/dir/manifest.rs:732-742 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:650\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e11b9c55f371deac626d01546a1d090dd820db42c9629338124e57cd0c4b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:3180-3190 | rust/lance-namespace-impls/src/dir/manifest.rs:3775-3785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3180\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"395a387a6cbe446c5af00d258da9f675f205aa508f7ecf8fbcf0e9f7793540d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:3413-3423 | rust/lance-namespace-impls/src/dir/manifest.rs:4060-4071 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cb9e462dabe8dc2e1f961f8f98df1918f034d32a8c74bf58e72131d08cdd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:496-506 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:533-543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f8c82cb6932a60cbd43783b1dc4c5ccc976a190074e6e1fd39544a1c8b8fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/fts.rs:2546-2556 | rust/lance/src/dataset/mem_wal/index/fts.rs:2613-2620 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/index/fts.rs:2546\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/fts.rs"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9389c781b6ade1d67c0278d00d8ea470b972b8f7a6a38c07f950fd08d79231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/hnsw.rs:251-260 | rust/lance/src/dataset/mem_wal/index/hnsw.rs:298-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/hnsw.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48d61fb70695a519af5e5e4b17a71fd60755fd0c2c34cb920ce02feed79e818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable.rs:453-463 | rust/lance/src/dataset/mem_wal/memtable.rs:503-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"4122ae804c34a02fa3a5f0bbd2d42f9c218b9d9cd5c5805d900836af3f58d694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/builder.rs:349-359 | rust/lance/src/dataset/mem_wal/scanner/collector.rs:160-170 \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":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da04fc800ab6bcdba1e43acd322e11f1e85349603ac1577e00da180e79d17f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:361-371 | rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:534-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:361\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20f1caa4c009a0c10f4a05b72ce402a3324823cb038abdc33beccac93e18960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:643-652 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:743-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 \u0060rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:743\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffa9cb805d573994e712c98c5e219e7cdabdd2dead987dc1174b02c04217523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:740-750 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:837-847 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ecfef23ebd52714c3dbe03fc3edcbe7339df8c1b5179d22e194693d07fe790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/wal.rs:1896-1906 | rust/lance/src/dataset/mem_wal/wal.rs:1924-1934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/wal.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":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"190b434222b595f0d409ded14b45b08254ab938650c43d9650c3abac2ff1c3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/optimize/binary_copy.rs:296-306 | rust/lance/src/dataset/optimize/binary_copy.rs:355-365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/optimize/binary_copy.rs:296\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29dcde04bd7bc2bb042c648ffa7bf451255e1eb5fa8ed4d8020ca71c0565eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:1186-1196 | rust/lance/src/dataset/optimize/planning.rs:1534-1543 \u2014 both copies are in the same file, so extract the block 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":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"80723c8c666ab1460f5ec20dad5fcf311a294cb7d6084986b4d4c8780a0140be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:941-951 | rust/lance/src/dataset/scanner/fts.rs:955-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ca47806fa2ad1202e0c221948fd8de23d9bfd7cba21079ceb3cc7f007bb56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/scanner/vector.rs:1207-1217 | rust/lance/src/dataset/scanner/vector.rs:1223-1233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/vector.rs:1207\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a810c0595af5806cb5b22f44d24251d03379b8078744785ca1d2edead43f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:374-384 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1479-1489 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:374\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5522873854796f3562068bf924fa9c506f3526fa31bac40930b23c3147a8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/lifecycle.rs:503-513 | rust/lance/src/index/lifecycle.rs:539-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/lifecycle.rs:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14eb093e6ad64fda637389ad15db5339acf87ba7b918f3f3eb33864f7425f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector/hamming.rs:493-503 | rust/lance/src/index/vector/hamming.rs:515-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/hamming.rs:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/hamming.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e57e4570006eb51c188af6099af22e2d44dd0c6bb66342ba297e8330fa71ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1133-1143 | rust/lance/src/index/vector/ivf.rs:1174-1184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc020b8b815c9f2e3657eaab8b8bd593f7b0bddd18d2cd7cf6b3d0f0d43aff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1161-1171 | rust/lance/src/index/vector/ivf.rs:1286-1296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e7c5033b92bafa6a3c847e086b8198f95095227103cf429a288c014c8edc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:711-721 | rust/lance/src/io/exec/fts/phrase.rs:614-622 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:711\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"426c4f43f52aa2da866b6729dd2e64b00f5ebd1a810588c5bfb5db217c8bde04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/io/exec/pushdown_scan.rs:251-261 | rust/lance/src/io/exec/scan.rs:656-666 \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 \u0060rust/lance/src/io/exec/pushdown_scan.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd530ad8d04c5023549d048fdcb25497efb378608224d98bd0124a1147937a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 11): rust/lance/src/index/vector/ivf.rs:1142-1150 | rust/lance/src/index/vector/ivf.rs:1161-1170 | rust/lance/src/index/vector/ivf.rs:1183-1192 | rust/lance/src/index/vector/ivf.rs:1204-1213 | rust/lance/src/index/vector/ivf.rs:1225-1234 | rust/lance/src/index/vector/ivf.rs:1245-1254 | rust/lance/src/index/vector/ivf.rs:1267-1275 | rust/lance/src/index/vector/ivf.rs:1286-1295 | rust/lance/src/index/vector/ivf.rs:1308-1317 | rust/lance/src/index/vector/ivf.rs:1329-1338 | rust/lance/src/index/vector/ivf.rs:1350-1359 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:1142\u0060 it begins part-way through the construct above it, so those exact lines 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"457f92e31080b40bf4d38243371ee165123eee5718a314d5ce2e323b64128a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): rust/lance/src/index/scalar/bloomfilter.rs:22-31 | rust/lance/src/index/scalar/fmindex.rs:32-41 | rust/lance/src/index/scalar/inverted.rs:998-1007 | rust/lance/src/index/scalar/minhash_lsh.rs:27-36 | rust/lance/src/index/scalar/rtree.rs:23-32 | rust/lance/src/index/scalar/zonemap.rs:38-47 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bloomfilter.rs\u0060 and \u0060rust/lance/src/index/scalar/minhash_lsh.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe7cfb586dc4328e2216140c1ff7963896f91524129c25633782efaac4cd065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): rust/lance/src/index/scalar/bitmap.rs:124-133 | rust/lance/src/index/scalar/fmindex.rs:122-131 | rust/lance/src/index/scalar/inverted.rs:1084-1093 | rust/lance/src/index/scalar/label_list.rs:179-188 | rust/lance/src/index/scalar/zonemap.rs:96-105 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/label_list.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 \u0060rust/lance/src/index/scalar/bitmap.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance/src/index/scalar/label_list.rs:178\u0060 calls \u0060noop_progress\u0060 and \u0060rust/lance/src/index/scalar/bitmap.rs:123\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":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"01afe48dd478efaaba761f5f2c6b28c9e4f3ded74c9c34c45973351b30386ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): rust/lance/src/dataset/refs.rs:227-236 | rust/lance/src/dataset/refs.rs:262-271 | rust/lance/src/dataset/refs.rs:277-285 | rust/lance/src/dataset/refs.rs:310-318 \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. 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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7c82c4b5b08268e6acbd91eabd626bbf757f23c78ef3716000783c5f266f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): rust/lance/src/dataset/write/delete.rs:56-65 | rust/lance/src/dataset/write/merge_insert/exec.rs:86-95 | rust/lance/src/dataset/write/merge_insert/job.rs:1824-1833 | rust/lance/src/dataset/write/update.rs:829-838 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance/src/dataset/write/delete.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec54672fc0ec5ca940622e53c08effe05ea67ff437ef715b7e372be9999c0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): rust/lance/src/dataset/write/delete.rs:87-96 | rust/lance/src/dataset/write/merge_insert/exec.rs:117-126 | rust/lance/src/dataset/write/merge_insert/job.rs:1855-1864 | rust/lance/src/dataset/write/update.rs:860-869 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/delete.rs:87\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/delete.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"588662616fb59eae852f40e13705a18d1e295fb9f12b5b554a61e8661c1722f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): rust/lance/src/io/exec/fts/match_query.rs:533-542 | rust/lance/src/io/exec/fts/match_query.rs:555-564 | rust/lance/src/io/exec/fts/phrase.rs:459-468 | rust/lance/src/io/exec/fts/phrase.rs:479-488 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:533\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance/src/io/exec/fts/match_query.rs:531\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs:457\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba3d592ed513a848f4dbf4603963c37597f5b9a2fb5f97c6e5ddc16e2d8397e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): rust/lance-file/src/reader.rs:1581-1590 | rust/lance-file/src/reader.rs:1621-1630 | rust/lance-file/src/reader.rs:1661-1670 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"068ca2fdd474aac4c7f6544ba4bdc305e7c2dfb518c5ba0051ba82dceddcc51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): java/lance-jni/src/file_writer.rs:202-210 | java/lance-jni/src/fragment.rs:173-182 \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":"java/lance-jni/src/file_writer.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab030365cd8ed3e7d33ace2ca26e9989556b32daa7b209c14abc85739518b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:780-789 | java/lance-jni/src/mem_wal.rs:905-914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"659526be4b55672c7b47827d1125284e31d784cf5208cc8052f9c9c77cded8ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/optimize.rs:106-115 | java/lance-jni/src/optimize.rs:207-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 \u0060java/lance-jni/src/optimize.rs:106\u0060 it does not close everything it opens, so those exact 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, \u0060java/lance-jni/src/optimize.rs:217\u0060 calls \u0060null\u0060 and \u0060java/lance-jni/src/optimize.rs:116\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/optimize.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"753162e3cd810e93d4398ee05a7fcd0292e73b780be805a6ed422ef455860081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/otel.rs:316-325 | java/lance-jni/src/utils.rs:633-642 \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 \u0060java/lance-jni/src/otel.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060java/lance-jni/src/otel.rs:326\u0060 calls \u0060delete_local_ref\u0060 and \u0060java/lance-jni/src/utils.rs:643\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":"java/lance-jni/src/otel.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"56679cfccf9153eb3dc4b2f70e1130ac563b04c9991e13851dedd13a214a87cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): python/src/dataset.rs:1420-1432 | python/src/dataset.rs:1448-1460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5249f672ddd9277e28d0ec4cef8b61ca60ca58d9273fef6ceb6d2c16de19669d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): python/src/mem_wal.rs:262-271 | python/src/mem_wal.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 \u0060python/src/mem_wal.rs:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/mem_wal.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d153f442b74af90b73120dfcdffd786b0fce89ec5b7f041fd4ee51f22f5342f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): python/src/mem_wal.rs:755-764 | python/src/mem_wal.rs:829-838 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/mem_wal.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"881c8e02476013702fcb31a2f274c31d7b44e2aab5219a3e1da3bacc204537ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): python/src/scanner.rs:277-286 | python/src/scanner.rs:299-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 \u0060python/src/scanner.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":"python/src/scanner.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c3418169bada33de863db651782f6305b058990ff75d33e33a994b33bc1bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/arrow-scalar/src/serde.rs:210-219 | rust/arrow-scalar/src/serde.rs:223-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/arrow-scalar/src/serde.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2f6ca8654e70da65048a6e9509dc3fa1902b14ea4a67421b6ece0be646679c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:413-422 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:474-483 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:413\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3955137e91401426cc1c2ba739693d1706fc86038779e7b7c229e1ab9a684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:506-515 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:567-576 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:506\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"938db19b7a791e3edb6ef3dd48b4332594f96af79dc3ffd1d9c178eaef29a827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:612-621 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:673-682 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:612\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb948a5e8262b796cd5e3a88309c61e252948cbb062f9498865b936eb092483e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:632-641 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:693-702 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:632\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c1efc375304f6cb78e472880a6736ebd7a1f9fa3ac054e0da2f7cc1639ee7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-arrow/src/json.rs:506-515 | rust/lance-arrow/src/json.rs:524-533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-arrow/src/json.rs:506\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94d0efa459210e46ae855073e0b1275b38e3854dcf573f205b30dad52a2aaf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-core/src/levenshtein.rs:36-46 | rust/lance/src/dataset/mem_wal/index/fts.rs:686-696 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-core/src/levenshtein.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":"rust/lance-core/src/levenshtein.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d45b6a2a5a07dee6d2d119a01bf0ebd60a7c462d946b212e4689080ebaa43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-datafusion-exec/src/exec.rs:403-412 | rust/lance/src/dataset/write/merge_insert.rs:1022-1031 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-datafusion-exec/src/exec.rs:403\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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 \u0060output\u0060 to \u0060\u0026mut Vec\u003COperatorMetrics\u003E\u0060 in one and \u0060\u0026mut Vec\u003CMergeInsertJoin\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/exec.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e136b19c81c0495cd82e14a4ef1ce85d9884dbf4a4b493d86b3a6a334aceadc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-datafusion/src/planner.rs:1039-1048 | rust/lance-datafusion/src/planner.rs:1052-1061 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion/src/planner.rs:1039\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"2314db497b7d1dd993d914f284b5e5cca32a1f2d4f9de599ec6b182bc49f4382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/array_encoding/logical/struct.rs:306-315 | rust/lance-encoding/src/encodings/logical/struct.rs:222-231 \u2014 before extracting anything, compare \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs\u0060 and \u0060rust/lance-encoding/src/encodings/logical/struct.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"affb41d1d59c2bcd60a2c21b2890578451893775e6c7f68f431dd536f1a4c71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/array_encoding/strategy.rs:347-356 | rust/lance-encoding/src/array_encoding/strategy.rs:359-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/array_encoding/strategy.rs:347\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"766f6b8a144cd3511b9a854ce186ba42a79b7e8c1e3f463ce5f82340663c54f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/list.rs:55-64 | rust/lance-encoding/src/encodings/logical/list.rs:67-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/list.rs:55\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/list.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8742e2af6675e072bacc39ea46e7678ea76dbd43bf2b05114edb5b54987bfed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/dict.rs:334-343 | rust/lance-encoding/src/encodings/logical/primitive/dict.rs:444-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/dict.rs:334\u0060 it does not close everything it opens, so those exact 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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ae1f8d64b709780a592b14711f62c1c2f50d3da885f86c790405f63b4c5046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:2025-2034 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:2130-2139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f340853b061900856d00d8068a3c4a1d24bf0424a1a1b26c4eb03837e8231df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2055-2067 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2071-2083 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2055\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c98ebaf1b16a802a98557fe878d763799755791633e6e34d5ab5f269369fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:1398-1407 | rust/lance-encoding/src/encodings/physical/alp.rs:1522-1531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:1398\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1517853b19e7d23a854699743ba1c8825c9aae3f7b99cf4e1b4276cde3882786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:382-397 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:407-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:382\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a4d46c4877a12678745946c4123df488f506590e6ed869b31fdef146183087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:690-699 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:709-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"996ae31fb710f1e71476ffe80ce03cd7a4d9e6ba0dfac9002836c390eb3dd1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:572-581 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:588-597 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"214c491b6c65cd079b24e9784f5195448d289000c3329b32c81b1dc451928c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-encoding/src/statistics.rs:249-257 | rust/lance-encoding/src/statistics.rs:262-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 \u0060rust/lance-encoding/src/statistics.rs:249\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"37964956b3215293aad00b5667036487f834dae8235bcf07df8f2a236097fbf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-file/src/reader/structural.rs:287-296 | rust/lance-file/src/versions/v2_0/reader.rs:245-254 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cb2c30c85bd181ff19901e2a0ee3edb6b457c6f79a50653f026be2f285da42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:477-486 | rust/lance-file/src/versions/v2_0/writer.rs:574-581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"decdfca7dabc8e62a32a8961eb5d0ca4d8bad3f8a4fd7763b24c639b817336fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-file/src/writer/structural.rs:637-646 | rust/lance-file/src/writer/structural.rs:696-705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/writer/structural.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"888b2ee17f87f08033348deed89bec746f6c8394c2d103ee3749b32c30202f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): rust/lance-index/src/scalar/bloomfilter.rs:169-179 | rust/lance-index/src/scalar/zonemap.rs:876-884 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bloomfilter.rs\u0060 and \u0060rust/lance-index/src/scalar/zonemap.rs\u0060 as WHOLE FILES: this scan already matched 4 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cede4b2475d0c0505c67ec480a91eecce993883973bf920380948acbc2dad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/scalar/expression.rs:1669-1681 | rust/lance-index/src/scalar/expression.rs:1691-1703 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"e265335f23040dee607a770001381a1551a72166dcb07a34a3b975b10fa16aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:586-595 | rust/lance-index/src/scalar/fmindex.rs:615-624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/fmindex.rs:586\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3d4fe8d106215a96ce21dc3a2552f954996f3559275a449db9f7c25ddb6455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/inverted.rs:675-684 | rust/lance-index/src/scalar/inverted.rs:700-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted.rs:675\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c132246432a3303370b2ec618ca1663aa4ca01ac0bc0f0a6cf55badd6ca91bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:3263-3272 | rust/lance-index/src/scalar/inverted/builder.rs:3286-3295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":3263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9424dde6e237752f312b4c232cb2914158a278b9bc5b8513c7ed07d730430a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/inverted/documents.rs:1923-1932 | rust/lance-index/src/scalar/inverted/documents.rs:1984-1993 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/documents.rs"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef294e541a8db85facff7af3b0f8c38ffc5cf63511af43f6b5086abeb5ac3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/posting.rs:995-1004 | rust/lance-index/src/scalar/inverted/wand/posting.rs:1056-1065 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/posting.rs"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"948b788bd7f8c70e2616e754227287f792852b78e7c226a35c9023cc06081458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): rust/lance-index/src/scalar/json.rs:923-930 | rust/lance-index/src/scalar/json.rs:1053-1062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb8ef3059b7a9603e4d954af594e0b1ee21cfd3f827898bd4d885d763b51c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/scalar/label_list.rs:550-560 | rust/lance-index/src/scalar/label_list.rs:573-583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/label_list.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. 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":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f51fcfe2e5182f8dcaa301adff7129178bb7f64385faf999dcd599744dd329a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:1085-1093 | rust/lance-index/src/vector/bq/ex_dot.rs:1116-1125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:1085\u0060 it does not close everything it opens, so those exact lines 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 \u0060hi\u0060 to \u0060*const u8\u0060 in one and \u0060\u0026[u8]\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":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0730622ce3280f956af578a5d3981db1f83ad69016263a7367683d616710c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:1335-1344 | rust/lance-index/src/vector/bq/ex_dot.rs:1370-1379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:1335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af640926a9aa2ac60c68e41beb722fff93bd0214f304cf66ff1b47609551832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/bq/pairwise.rs:745-754 | rust/lance-index/src/vector/bq/pairwise.rs:821-830 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/pairwise.rs:745\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc23d905edfd0c706d9726a1cc7f940855a1a947f4001589919c2ad7c7014beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/hnsw/index.rs:232-241 | rust/lance-index/src/vector/hnsw/index.rs:263-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/index.rs:232\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/index.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"002c8e968fc0305255cc5f055d045d59eba4b0b0d8eae56fe1213c0070aa3f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/ivf/shuffler.rs:287-296 | rust/lance/src/index/vector/builder.rs:2165-2176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/ivf/shuffler.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":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc11060f5cd48b6d13a8c110b340e8e5a6bc42402be8259c6ea333c5226b814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/kmeans.rs:1210-1219 | rust/lance-index/src/vector/kmeans.rs:1420-1429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/kmeans.rs:1210\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b132dc360dadd2af2ecba74936363ab99eacdce38aa641082289a289b7c529ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-jsonb/src/core/util.rs:40-48 | rust/lance-jsonb/src/core/util.rs:548-557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/core/util.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"98027789e4aec839a09ec477cf0546463c805ad316caf74df29e4fa8e47f121c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/distance/hamming.rs:767-776 | rust/lance-linalg/src/distance/hamming.rs:846-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 \u0060rust/lance-linalg/src/distance/hamming.rs:767\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2772d332e82b7052cc0af2a93452725bad7f826f85a653dbc3942800ad7568d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:267-276 | rust/lance-linalg/src/simd/f32.rs:286-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:267\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b937d949904124d1886342a3b85a27842aec102f4c21d85c4c212a0bc5370ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:760-769 | rust/lance-linalg/src/simd/f64.rs:606-615 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:760\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ptr\u0060 to \u0060*mut f32\u0060 in one and \u0060*mut 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e027ee7473fe82e6755284585dca29381acdc9ae8732513c0596cefdf670b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:160-169 | rust/lance-linalg/src/simd/f64.rs:179-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f64.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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8596396076fd24f7ad3f225693f64dec282c40e17a0992bcc1ae93055d3e4596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:601-610 | rust/lance-linalg/src/simd/f64.rs:624-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c95d5514b11a95c47c5f651ff65408463948c2e13709209d8f922b30a06188f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/i32.rs:125-134 | rust/lance-linalg/src/simd/i32.rs:148-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/i32.rs:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/i32.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2aeffb981fc4bd6a7977f4079caf2c21cbcc46b8dbfd7308c3c2a838e0fd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/u8.rs:183-192 | rust/lance-linalg/src/simd/u8.rs:199-208 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/u8.rs:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/u8.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328e82671ebc1cb41ee893e91daec5108341291c8d971743c3909bbafb2cd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/gcp.rs:602-611 | rust/lance-namespace-impls/src/credentials/gcp.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c70ddfe3d2939a8a53a807866be880762dc597a8c6f2068e1a1633e11d92c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:1381-1390 | rust/lance-namespace-impls/src/dir/manifest.rs:1489-1498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:1381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daf6810f8d012c01f7d6c72bf7c8108f79ee30d4f192bfd2d7b98463ad34e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:3160-3169 | rust/lance-namespace-impls/src/dir/manifest.rs:3755-3764 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:3160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ListTablesRequest\u0060 in one and \u0060ListNamespacesRequest\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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3160}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a2f8440eb55abf71ab2c1614199d90cc6eb7a9a3fbbd47d7935f948459cb93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-table/src/system_index/frag_reuse.rs:510-519 | rust/lance/src/dataset/optimize/remapping.rs:289-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-table/src/system_index/frag_reuse.rs:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b26043928226b72ec31b78462b9a65a0c955e7c17b501ece2c227dcb5e22b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/datafusion/dataframe.rs:191-200 | rust/lance/src/dataset/udtf.rs:86-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance/src/dataset/udtf.rs:96\u0060 calls \u0060is_empty\u0060 and \u0060rust/lance/src/datafusion/dataframe.rs:201\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":"rust/lance/src/datafusion/dataframe.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8cfa531181edf1c4df6c061ae192762bdc74d5c005b2f64dc34e17740bab91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance/src/dataset.rs:1315-1323 | rust/lance/src/dataset/builder.rs:146-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset.rs:1315\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance/src/dataset/builder.rs:145\u0060 calls \u0060Some\u0060 and \u0060rust/lance/src/dataset.rs:1314\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":"rust/lance/src/dataset.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8412000e713b2c3710b9aea888ad39c2092902838e2360f60e39c20d711213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/dataset.rs:4335-4344 | rust/lance/src/dataset.rs:4382-4391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset.rs:4335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":4335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c28adb3c86f481abb1c0e009e30fb6b3a87216478d2f6769dad24868455e2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): rust/lance/src/dataset/hash_joiner.rs:209-226 | rust/lance/src/dataset/hash_joiner.rs:294-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/hash_joiner.rs:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/hash_joiner.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2900a23a0bf7bd8cfa6776dcb15c118e91530deee534ba74eaafe88ccd3fe7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:455-465 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:188-198 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:455\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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: \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:455\u0060 is reached only past a guard at line 364 that tests \u0060self.query.k\u0060 and leaves the function early, and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:188\u0060 reads \u0060self.query.k\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcada01cd232f5532369cf3ff8e3db8371f3a8345db131b29c8f7c2e90cd285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/builder.rs:944-953 | rust/lance/src/dataset/mem_wal/scanner/exec/pk_block_filter.rs:228-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/builder.rs:944\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c982d8c819ee6a2324c29e70c41994caf3abefd8cc18fb9534fd17fb39bf3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1539-1547 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:210-219 \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 \u0060rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1539\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ad5dbaa940c3107ae9e0f28959062335b2f39b85e8a59e7ecb538cc6219908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/dataset/optimize/planning.rs:1196-1205 | rust/lance/src/dataset/optimize/planning.rs:1549-1558 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance/src/dataset/optimize/planning.rs:1548\u0060 calls \u0060uses_stable_row_ids\u0060 and \u0060rust/lance/src/dataset/optimize/planning.rs:1195\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":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb469e2ba552c92c2adc7598c1f52b957b8436e6b23be4d44eedb00ad5e178a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:2293-2302 | rust/lance/src/dataset/scanner/fts.rs:2676-2686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:2293\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d260b69806258c19b4ee33cfc5c8350b624d63f2df6b635d444ad54c666ead91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/vector/ivf/partition_serde.rs:299-308 | rust/lance/src/index/vector/ivf/partition_serde.rs:343-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/partition_serde.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a1cebc880ee2d4dc39e6ccc393a56f91602ba1516492bf3178eb57abe753f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/vector/ivf/streaming_hamming.rs:747-757 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:801-810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf/streaming_hamming.rs:747\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"61afe5db4947c2d218b5e8f7c8b6f34a83c58f1fe82726f23ae48fe0afb82ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:1988-1997 | rust/lance/src/index/vector/ivf/v2.rs:2027-2036 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf/v2.rs:1988\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe182292551f3b9393ec896ab7040202a79133f93b338c7da6e16791457407a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:2059-2068 | rust/lance/src/index/vector/ivf/v2.rs:3902-3911 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance/src/index/vector/ivf/v2.rs:3901\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/index/vector/ivf/v2.rs:2057\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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26a5163a0a55c4d7f8dbf9a3be0643d19be3bb150a537a27b43589a7611cf89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:2973-2982 | rust/lance/src/index/vector/ivf/v2.rs:3052-3058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf/v2.rs:2973\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":2973}}}],"partialFingerprints":{"codehealthFindingId/v1":"58945ab1daca15de88f6a52f537da202bf07d128818b22d5bd654a5d47af67ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/io/exec/filtered_read.rs:3603-3613 | rust/lance/src/io/exec/take.rs:483-492 \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 \u0060rust/lance/src/io/exec/filtered_read.rs:3603\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":3603}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1a12c517c7845f8934d6740aad56d1bedcda3aeef9e0b63f702ca8737ebf87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): rust/lance/src/io/exec/fts/combined_fields.rs:553-562 | rust/lance/src/io/exec/fts/phrase.rs:571-576 \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 \u0060rust/lance/src/io/exec/fts/combined_fields.rs:553\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/combined_fields.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2adf2362e509ad0cf768663167f1fdd279692d8c1f6e551e7c61c0231196a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): rust/lance-datagen/src/generator.rs:145-153 | rust/lance-datagen/src/generator.rs:168-176 | rust/lance-datagen/src/generator.rs:191-199 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datagen/src/generator.rs:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc5c5625840728a76701915601c856475b163918ab4124e5071724ca34a806c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:175-183 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:208-216 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:296-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec6310518688c1b8507b537f1f059c6f96513f46c58c405dcd01e7a4430dffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): rust/lance-io/src/object_store/providers/oss.rs:153-161 | rust/lance-io/src/object_store/providers/tencent.rs:107-115 | rust/lance-io/src/object_store/providers/tos.rs:159-167 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/oss.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/tos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/oss.rs:153\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3109ca1cb5acb1c6a7389f0b44bc6ec814517462983f86edc9a9e27d8bda6c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): rust/lance-linalg/src/simd/dist_table.rs:241-250 | rust/lance-linalg/src/simd/dist_table.rs:455-464 | rust/lance-linalg/src/simd/dist_table.rs:500-509 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/dist_table.rs:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2226c4f90a4588c0708e418d9192fd1ab257e9e9de8305839d48aed95fb40a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): rust/lance/src/index/vector/ivf.rs:1442-1450 | rust/lance/src/index/vector/ivf.rs:2769-2777 | rust/lance/src/index/vector/ivf.rs:2838-2846 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:1442\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance/src/index/vector/ivf.rs:1440\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/index/vector/ivf.rs:2836\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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfaa3ef1930dc79ba1dd669f9f4ac6c181e68bc23d76c23b818388e451c315a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:786-794 | python/src/mem_wal.rs:761-768 \u2014 before extracting anything, compare \u0060java/lance-jni/src/mem_wal.rs\u0060 and \u0060python/src/mem_wal.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/mem_wal.rs:786\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d2ac2b288032bb63da19c880663dd43dcf48cba202883c9ce681c0f9eab552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/namespace.rs:3463-3472 | java/lance-jni/src/namespace.rs:3592-3601 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3463\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35d7976418e5e79f5e78f7a6a36e234b6e155cf32d83ebf2669f20acc7e3dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): java/lance-jni/src/otel.rs:161-169 | python/src/otel.rs:214-222 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdf593700379ea3d4041f24e3151e364d13425026bb2a8d12c8a81238125621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): python/src/dataset.rs:1195-1203 | python/src/fragment.rs:409-417 \u2014 before extracting anything, compare \u0060python/src/dataset.rs\u0060 and \u0060python/src/fragment.rs\u0060 as WHOLE FILES: this scan already matched 3 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 \u0060python/src/dataset.rs:1195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e3983fe7c47652ed4905e2a817cceabcd071d04ec829d026f1e02ec9f09658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): python/src/dataset.rs:2016-2024 | python/src/dataset.rs:2048-2056 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/dataset.rs:2016\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"82716597f520083c8ec923c331f6ec35239068260a05c25ba4fd06b218791406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): python/src/dataset.rs:3555-3563 | python/src/dataset.rs:3583-3591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/dataset.rs:3555\u0060 it does not close everything it opens, so those exact lines 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 \u0060field_updates\u0060 to \u0060HashMap\u003Cu32, HashMap\u003CString, Option\u003CString\u003E\u003E\u003E\u0060 in one and \u0060HashMap\u003CString, HashMap\u003CString, Option\u003CString\u003E\u003E\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e6961b0957304d528cfa0761b801390bcfef466bceb2eb7f73928450416c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): python/src/dataset/merge_insert.rs:274-283 | python/src/dataset/merge_insert.rs:320-329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3427713e845ff10ddbd17f9d76e6d92ad91a77b6f116fc8ddc4cc45cc02c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-datafusion-exec/src/udf/json.rs:322-329 | rust/lance-datafusion-exec/src/udf/json.rs:603-611 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/udf/json.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":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee998e77519a328b7909045563d004bb201682134c6cfde84135b020bd3f601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-datafusion-exec/src/udf/json.rs:488-496 | rust/lance-datafusion-exec/src/udf/json.rs:771-779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/udf/json.rs:488\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"52da38cff3a6e6acb1b744e0748c1437ad4fc185300378e70736f0093b84dde9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-datafusion-exec/src/udf/json.rs:659-667 | rust/lance-datafusion-exec/src/udf/json.rs:929-937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/udf/json.rs:659\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd86fffdfbe72d1c8ada17447b8b4f9c713b6b36425328263bcbbbbfb763d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-encoding/src/array_encoding/logical/struct.rs:210-218 | rust/lance-encoding/src/encodings/logical/struct.rs:146-154 \u2014 before extracting anything, compare \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs\u0060 and \u0060rust/lance-encoding/src/encodings/logical/struct.rs\u0060 as WHOLE FILES: this scan already matched 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs:219\u0060 calls \u0060pop\u0060 and \u0060rust/lance-encoding/src/encodings/logical/struct.rs:155\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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af4a0c13dbac7f95a4469a9f3be3ed6aeed26cbd256893ec20ee74df7ff4699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): rust/lance-encoding/src/array_encoding/logical/struct.rs:448-451 | rust/lance-encoding/src/array_encoding/logical/struct.rs:601-609 | rust/lance-encoding/src/encodings/logical/struct.rs:356-364 \u2014 before extracting anything, compare \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs\u0060 and \u0060rust/lance-encoding/src/encodings/logical/struct.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-encoding/src/array_encoding/logical/struct.rs:601\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd3285ddb2b563b5654d1faf7efcbca79fe36f90b52cb196b4a63f8e43a49ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1036-1044 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1074-1082 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1036\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f7e456334a0b0fdb3ec64da4ec63bd4bf79e10f4a91631dec54df5da68b1ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/planar.rs:365-373 | rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:650-655 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/planar.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc59051adf93529be6993ebeeacca3bdb7bfbb6bf47f6c0124340a45da292e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/packed.rs:867-875 | rust/lance-encoding/src/encodings/physical/packed.rs:885-893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/packed.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":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b56bf9287539393de555814109f80ba9cd31ddb2640b13be8b3584f1275f837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-file/src/versions/v1/mod.rs:108-116 | rust/lance-file/src/versions/v2_0/mod.rs:74-82 \u2014 \u0060rust/lance-file/src/versions/v1/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/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 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"402df61d422c7d4deb849879432488e54ba819e02d864da71f4a7ffe67d50d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:132-140 | rust/lance-file/src/writer/structural.rs:115-123 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4b9f56eec95528c3a880be04c19619989cede0a899a72a4f7a5842d8d36ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:879-887 | rust/lance-file/src/writer/structural.rs:862-869 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:879\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c8e368b573de515fbda85263c89b80f8d460e127bb37b44684baeb3b5b29ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/scalar.rs:402-413 | rust/lance-index/src/scalar.rs:422-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar.rs:402\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"319fef5ae9ee8df4129001d86bc39f942b21825aece12d0bac51471281962ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-index/src/scalar/bitmap.rs:688-695 | rust/lance-index/src/scalar/bitmap.rs:746-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4f4bd03936a9d2426c789c5a5d2af20794991bc562566714337df8b31b9b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:868-877 | rust/lance-index/src/scalar/fmindex.rs:891-900 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/fmindex.rs:868\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-index/src/scalar/fmindex.rs:888\u0060 calls \u0060load_block_for_rank\u0060 and \u0060rust/lance-index/src/scalar/fmindex.rs:867\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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddae90dbbfe9eb4ae1ccbdc698cc56126f8096fff21dcc2f8dbf4b456877d8d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:1869-1876 | rust/lance-index/src/scalar/inverted/builder.rs:1941-1949 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"df68797cf79431be38844dc7eecd90267b73a007d5c996e70b869a08c84d39cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:2055-2063 | rust/lance-index/src/scalar/inverted/builder.rs:2068-2075 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f88c28322308164ee3a884ec996b110060b1a9e4b3d98c14778ad05a6890b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/doc_set.rs:728-736 | rust/lance-index/src/scalar/inverted/index/doc_set.rs:741-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/doc_set.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"368d9513b7ddf1fe2e1bc4856e924912ca13a49db9431c10a92c1fdddbe4f1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/scalar/inverted/wand/maxscore.rs:90-98 | rust/lance-index/src/scalar/inverted/wand/maxscore.rs:1107-1115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/wand/maxscore.rs:90\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/wand/maxscore.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d93963581dd8bde01dfe786296602ac123b30b96ba452a8f68c6f0d191379b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/scalar/json.rs:1240-1248 | rust/lance-index/src/scalar/list_element.rs:627-635 \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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c6e80bfc0e6c24494edb20cc6825947db4cfb79c52a4434d7cd1217f235f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): rust/lance-index/src/vector/bq/dist_table_quant.rs:63-71 | rust/lance-index/src/vector/bq/dist_table_quant.rs:102-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060quantized_dist_table\u0060 to \u0060\u0026mut Vec\u003Cu8\u003E\u0060 in one and \u0060\u0026mut Vec\u003Cu16\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"730b6462d5f131f6cf2f73b633cd6a5ff71e970ce650c4ed9f0845e9f3c6109d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:2362-2371 | rust/lance-index/src/vector/storage.rs:271-280 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/bq/storage.rs:2362\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-index/src/vector/storage.rs:268\u0060 calls \u0060is_some_and\u0060 and \u0060rust/lance-index/src/vector/bq/storage.rs:2361\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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb58b27185280858f09915755d554dd2d70ace9efb220ee3b8a922c20af48248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:2402-2410 | rust/lance-index/src/vector/storage.rs:233-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/bq/storage.rs:2402\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"27280bdfe2fda63711a2868a68f52bf155df84e2414c50cb1e136e0ea0e4668d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:2934-2942 | rust/lance-index/src/vector/bq/storage.rs:3090-3098 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2934}}}],"partialFingerprints":{"codehealthFindingId/v1":"037198abad2b2da82b7d5971a7a8e8b26037e4eb2b0b10ad105801528ca691cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:116-124 | rust/lance-index/src/vector/distributed/index_merger.rs:134-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 \u0060rust/lance-index/src/vector/distributed/index_merger.rs:116\u0060 it does not close everything it opens, so those exact 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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cf0b92cb6dac53538434e7da4eaf15e4ba2301b80c4abe436d48c16806a9eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:1616-1624 | rust/lance-index/src/vector/distributed/index_merger.rs:1665-1673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:1616\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"d444488e87e3d24641e2e9f7033d9dfebce4e2c5ded4524c1c54262339c733e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/hnsw/index.rs:286-294 | rust/lance/src/index/vector/ivf/v2.rs:3351-3359 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/hnsw/index.rs:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/index.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4850f931ba985d9a20620ac5096ea70dd8c719f0247e79a36ab9a887b7d3829b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-index/src/vector/hnsw/remap.rs:172-183 | rust/lance-index/src/vector/hnsw/remap.rs:281-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/remap.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. 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":"rust/lance-index/src/vector/hnsw/remap.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d46afa5a352bb5d25a49b0a6d3a5fdb286116b5a7f817dffc2ab2ee860c1485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-index/src/vector/ivf/shuffler.rs:611-618 | rust/lance-index/src/vector/ivf/shuffler.rs:641-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/ivf/shuffler.rs:641\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7bc1edd3e872d68fa7c2ecdbfc0470c07830a493f8a3ca62326fb2c0021ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-io/src/lib.rs:234-242 | rust/lance-io/src/lib.rs:289-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/lib.rs:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/lib.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba886c4c6008db1ab4ef576f3ac07e8cd3a356dc2570dad44aed783803a3db58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): rust/lance-io/src/object_store/providers.rs:335-341 | rust/lance-io/src/object_store/providers.rs:381-389 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-io/src/object_store/providers.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50ab9b2bfdedb84a1f4bbf567aca6aeedb5c390e8f8480b6f3ae889aa689112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-jsonb/src/core/ser.rs:75-83 | rust/lance-jsonb/src/core/ser.rs:124-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/core/ser.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/ser.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bedfb0503788f77eac6f0356717e72371cfa115862cf002999bcdccd45fe6bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/distance/hamming.rs:972-981 | rust/lance-linalg/src/distance/hamming.rs:1018-1027 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/distance/hamming.rs:972\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d0ed36b5eedad4e30f6647d7e0ccbe53fdfc5adf00f3e8879fbe1d675fa040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-linalg/src/distance/hamming.rs:1190-1198 | rust/lance-linalg/src/distance/hamming.rs:1226-1234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/distance/hamming.rs:1190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf004bdee70ccb80efef4d965f42b3b4ebb01f9f8ff554279f07addc3482f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:861-870 | rust/lance-linalg/src/simd/dist_table.rs:876-885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"83db11336b681f0f45e41670842d32d1070cac1adfbcaf82104429f731611c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:93-108 | rust/lance-linalg/src/simd/f32.rs:111-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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c6b6719aa574a33433c546722542f9b9057b58da216d19637f75a5041e0ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:339-347 | rust/lance-linalg/src/simd/f32.rs:832-839 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"33884cbfb652725e3138c3694950394572aec0f27268b3dd4f73cfb7f11c9c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:358-368 | rust/lance-linalg/src/simd/f32.rs:853-863 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26fc48778a4fd543748fba358700cfb788e1fe3c3e7ac2e86540a7c52431b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:736-744 | rust/lance-linalg/src/simd/f64.rs:581-589 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:736\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ptr\u0060 to \u0060*const f32\u0060 in one and \u0060*const 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce138e43fafb41786a891b9406cb7dde9b0321a722df95cbaa35ee566a5a3281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:756-764 | rust/lance-linalg/src/simd/f32.rs:778-786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdacda8b2d03aaad700312826151927e78d21c2ed0c9fbceb29e2f770170ebaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-table/src/format/clustering.rs:344-352 | rust/lance-table/src/format/clustering.rs:384-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/format/clustering.rs:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/format/clustering.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e752ee0109019290503f5f31a31dce74dd43f606cca5b3daece5cc89c3233a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-table/src/rowids/encoded_array.rs:152-160 | rust/lance-table/src/rowids/encoded_array.rs:162-170 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-table/src/rowids/encoded_array.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb9bd42200a0ba375f7c4873ac6d5f340c029830ae9210e716405e10e5a31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance-table/src/utils/stream.rs:287-295 | rust/lance-table/src/utils/stream.rs:312-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. 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":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"893a6e3ef8eb1fb97e65181426f893ca4717a32ecc75b135399f72f3d6963703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset.rs:4643-4652 | rust/lance/src/dataset/fragment.rs:2703-2711 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset.rs:4643\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":4643}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d068e3cf35d1e08b7662b7e856b2d22423a028dbe504294c2cf8183c9096c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/fragment.rs:4000-4008 | rust/lance/src/dataset/fragment.rs:4202-4210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/fragment.rs:4000\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/dataset/fragment.rs:3999\u0060 calls \u0060to_offsets_total\u0060 and \u0060rust/lance/src/dataset/fragment.rs:4201\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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":4000}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaab02d64bf81e60f653e16053cb8a1d303ddad6acea4f4e5540a7895d50cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): rust/lance/src/dataset/index/frag_reuse.rs:673-692 | rust/lance/src/index/frag_reuse.rs:2332-2347 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/index/frag_reuse.rs\u0060 and \u0060rust/lance/src/index/frag_reuse.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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ebd78971ae0e0d89896babe65f6fea613aa4ca186df7d511175a56dd9cadc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1287-1295 | rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1369-1377 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1286\u0060 calls \u0060base_output_schema\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1368\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":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d285e6d8d86e0ba49c8196b255f9140957271858f1d254b65e1fa24a6f799f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:277-285 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:329-341 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"38625f56f401ea26e90aa55042c40de1ee64c164854d1d061a382dc05f548b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/planner.rs:380-391 | rust/lance/src/dataset/mem_wal/scanner/vector_search.rs:615-623 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/vector_search.rs\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/planner.rs:380\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc381e242a5388ce452d778d16df44b58756ce7d78fa288ca8942edbd0597b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance/src/dataset/update_join.rs:726-733 | rust/lance/src/dataset/update_join.rs:962-970 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/update_join.rs:726\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/dataset/update_join.rs:723\u0060 calls \u0060iter\u0060, \u0060any\u0060, \u0060push\u0060 and \u0060rust/lance/src/dataset/update_join.rs:961\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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"7147e182769849e79fa95020c3b919c0e07796c01c4bcbab68d71d4f5e56a848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/write/commit.rs:465-473 | rust/lance/src/dataset/write/insert.rs:467-475 \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 \u0060rust/lance/src/dataset/write/commit.rs:465\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"002aa79b0005057ac96018d5e283c2c43079539e80ce1765b35bb44e24ad4d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:364-372 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1464-1472 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e6c58bc775463b9d23dc7960fdc6a365561580a6170df6c251d2f57982b44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/index/create.rs:911-919 | rust/lance/src/index/create.rs:992-1000 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/create.rs:911\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3beb4b5a64fa415166ebd09659527b1271b0db1304b0c602d379f9ce42b9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/index/scalar/bloomfilter.rs:62-70 | rust/lance/src/index/scalar/zonemap.rs:63-71 \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":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5596bd7c84971c4eafb63aa70070de16ff94e8d8718c6f0b925b9ffd819322f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/index/scalar/inverted.rs:199-207 | rust/lance/src/index/scalar/inverted.rs:210-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 \u0060rust/lance/src/index/scalar/inverted.rs:199\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/inverted.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3fe0c543745e071ecbc32ddca72ab00904183cc5040ac53ff50b74f8af6ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/lance/src/index/vector/hamming.rs:510-517 | rust/lance/src/index/vector/hamming.rs:626-634 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/hamming.rs:510\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance/src/index/vector/hamming.rs:625\u0060 calls \u0060limit\u0060, \u0060Some\u0060 and \u0060rust/lance/src/index/vector/hamming.rs:509\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":"rust/lance/src/index/vector/hamming.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0952f70c110ae1c61ca80f009ee6f8ccbe03a238d69ee8bee358b8e367632bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): rust/lance/src/index/vector/ivf/io.rs:243-248 | rust/lance/src/index/vector/ivf/io.rs:372-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf/io.rs:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4dc18153bb10e08a24c7ec1e2118d50c40bec6cb436f53a1fc044b8e7d0152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/index/vector/ivf/streaming_hamming.rs:868-876 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:908-916 \u2014 both copies are in the same file, so extract the block 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060accumulator\u0060 to \u0060\u0026mut HammingAccumulator\u0060 in one and \u0060\u0026HammingAccumulator\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":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b439d4301a62c995085cde6d76c92ac392cf21cb9116e4406f8c6eee10f64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/io/exec/filtered_read.rs:1504-1512 | rust/lance/src/io/exec/filtered_read.rs:1591-1599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/filtered_read.rs:1504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"5317bbc50a51e85a65c99bc1f1a20fc6b27ec0f99ca7bbbcadfae844fdcf4497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/io/exec/fts/query_tokens.rs:176-184 | rust/lance/src/io/exec/fts/query_tokens.rs:262-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/query_tokens.rs:176\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance/src/io/exec/fts/query_tokens.rs:272\u0060 calls \u0060index_for_leaf\u0060, \u0060as_deref\u0060 and \u0060rust/lance/src/io/exec/fts/query_tokens.rs:185\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/query_tokens.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede4ebde35fea1ecec5fba0888f889c0ef8319f0f6ad5e84e2ed131c57e6b980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/io/exec/take/batch.rs:22-30 | rust/lance/src/io/exec/take/batch.rs:34-42 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/take/batch.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":"rust/lance/src/io/exec/take/batch.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e320b5e25414170c5c329241dffa70cf9a16bc55d989e32151f6caa254dfd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): rust/lance/src/index/scalar/bitmap.rs:133-140 | rust/lance/src/index/scalar/bloomfilter.rs:101-108 | rust/lance/src/index/scalar/label_list.rs:188-195 | rust/lance/src/index/scalar/minhash_lsh.rs:105-112 | rust/lance/src/index/scalar/rtree.rs:67-74 | rust/lance/src/index/scalar/zonemap.rs:105-112 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/label_list.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 \u0060rust/lance/src/index/scalar/bitmap.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":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa56eb943f9bfbd58ee895d98cbba0fc6e026ac305c9ec1baae410703da025b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): rust/lance-datafusion-exec/src/udf/json.rs:555-562 | rust/lance-datafusion-exec/src/udf/json.rs:608-615 | rust/lance-datafusion-exec/src/udf/json.rs:664-671 | rust/lance-datafusion-exec/src/udf/json.rs:720-727 | rust/lance-datafusion-exec/src/udf/json.rs:776-783 \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 \u0060rust/lance-datafusion-exec/src/udf/json.rs:555\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcccfd1bcbbe4eef42d707054081d5ee04441698fd9d2c4de176df0c80a52cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): rust/lance/src/index/scalar/bloomfilter.rs:26-33 | rust/lance/src/index/scalar/label_list.rs:108-114 | rust/lance/src/index/scalar/minhash_lsh.rs:31-38 | rust/lance/src/index/scalar/rtree.rs:27-34 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bloomfilter.rs\u0060 and \u0060rust/lance/src/index/scalar/minhash_lsh.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"rust/lance/src/index/scalar/bloomfilter.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"84123413382e4d4b22ee0208bf3a605957b1b932f22f4395e50180e185a0c669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance-file/src/versions/v2_1/mod.rs:108-115 | rust/lance-file/src/versions/v2_2/mod.rs:104-111 | rust/lance-file/src/versions/v2_3/mod.rs:116-123 \u2014 \u0060rust/lance-file/src/versions/v2_2/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_1/mod.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":"rust/lance-file/src/versions/v2_1/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fe94e4f1fda5eada5376e82ac6d498ef538c9ab110f69fc350467bfce4c5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance-index/src/scalar/inverted/index/partition.rs:1141-1148 | rust/lance-index/src/scalar/inverted/index/partition.rs:1207-1214 | rust/lance-index/src/scalar/inverted/index/partition.rs:1269-1276 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1216\u0060 calls \u0060new_with_block_size\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/partition.rs:1150\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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e133e9d122325b846d31527a73a1a6d57deedcb0ce04f8df9847c9d2bfce00ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance-jsonb/src/jsonpath/selector.rs:766-773 | rust/lance-jsonb/src/jsonpath/selector.rs:780-787 | rust/lance-jsonb/src/jsonpath/selector.rs:797-804 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/jsonpath/selector.rs:766\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac49f1375c63e900d43aad8944dd0116ce3645bf988b5e813d3c124a00894a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance/src/dataset/optimize/execution.rs:624-631 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1250-1257 | rust/lance/src/dataset/write/update.rs:482-489 \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 \u0060rust/lance/src/dataset/optimize/execution.rs:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/execution.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c49f11707d9c0988362567aec22ee2e1a941524babf2f938de5fd5f660ecb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/blocking_scanner.rs:501-508 | java/lance-jni/src/utils.rs:312-319 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63c538c445f41f450d1cbdb3659e2803ae93c56fb5851d70c0dd7c320039d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:171-179 | java/lance-jni/src/mem_wal.rs:194-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dbe08440903cface2ddc0e6ab5e26a10c6f9bbce9a77a5efd5e9098b7a48c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/otel.rs:110-117 | python/src/otel.rs:158-165 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/otel.rs:110\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/otel.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5690c138c3c2eb33f02267650875f5e5780c963aeffe7dc18a57ba7674d4feaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/otel.rs:395-402 | python/src/otel.rs:348-355 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"57925cc4e97342a9d9cd4b2de61c5c71591286d949538ddb4d80e3dc732fac73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/vector_trainer.rs:116-123 | java/lance-jni/src/vector_trainer.rs:179-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/vector_trainer.rs:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/vector_trainer.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bf15756fafb8a978bc635542f338d7b8a2be254b94cedd45ffdaef6813a9dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): python/src/fragment.rs:253-260 | python/src/fragment.rs:281-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060python/src/fragment.rs:290\u0060 calls \u0060iter\u0060 and \u0060python/src/fragment.rs:262\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":"python/src/fragment.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d633cba982edaf1a59be7f64512250d53082ae7d73f48e9b43db2f8579f314db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs:226-233 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:239-246 \u2014 before extracting anything, compare \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs\u0060 and \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs\u0060 as WHOLE FILES: this scan already matched 9 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060delta\u0060 to \u0060DataType\u0060 in one and \u0060uint32x4_t\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":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker4x.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09717c0f8fe0214a3c0f292ace82559892ee23fffded0285dd0e55e00cbd47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-core/src/datatypes/schema.rs:247-254 | rust/lance-core/src/datatypes/schema.rs:742-749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/datatypes/schema.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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5aed7986f0233ae033253fa21125cdc6a7c4578d8950130190f34b3ff91505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:470-477 | rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:525-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/fixed_size_list.rs:470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/fixed_size_list.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7550e832f1972d84a3986d8e994ba7694de3f8636673d7379c4099ac38e2d687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/blob.rs:413-420 | rust/lance-encoding/src/encodings/logical/primitive/blob.rs:427-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/blob.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a6f4f427581f78bda5a9aeba77de0eccbe12c013ac4ea250a39715c5d55cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:753-760 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:768-775 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:753\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"741627320a7896868f4bcc297e902befa7efa5e9cae6155c2165760097d9cea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:801-808 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:816-823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d779201650d72c467ad4652921702513fed94b8a9b5c1ea1e59cedc6b5fa4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:849-856 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:864-871 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:849\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aae0f6602c9cb00288dac5a53403bc1f516b52c60a673ee1ddb6469c85f8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:897-904 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:912-919 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:897\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"74024475fa8182e1e6e0716a16cf8716531900b7a0f22538a97a9669c8f86d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:980-987 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:995-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 \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:980\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb91c7da7cb1bc461484521e222172e48fc8993f0e9e8d2bed6171f7c37d57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:1103-1110 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:1118-1125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:1103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f442af0db4b3cbe6c7021150850ba892f6e5be3051dbee5f6ff5f3f3a28cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/packed.rs:688-695 | rust/lance-encoding/src/encodings/physical/packed.rs:698-705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/packed.rs:688\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3b2aaab0c9a91cb3843688943677bdcbd81ce80ca1f82125df7c333020305a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/statistics.rs:186-193 | rust/lance-encoding/src/statistics.rs:323-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb06641797d4e017ffd5ee20f139d2fa1ba4c4f9f5d009fd3f6f6231c674f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-file/src/versions/v1/encoding/plain.rs:335-343 | rust/lance-file/src/versions/v1/encoding/plain.rs:400-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/encoding/plain.rs:335\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/encoding/plain.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbe584dd0c6b4c214b9bf09af20cc7583251aaf34425570dd335ec6480430e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): rust/lance-file/src/versions/v1/writer/mod.rs:507-511 | rust/lance-file/src/versions/v1/writer/mod.rs:555-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a329de94fa7640cda807d4e6a4dfe90dd2c528760e39c6438b3eb558351b138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:409-416 | rust/lance-file/src/writer/structural.rs:583-590 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-file/src/versions/v2_0/writer.rs:417\u0060 calls \u0060default\u0060 and \u0060rust/lance-file/src/writer/structural.rs:591\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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320bf00dfae2fb2b670eeb26261a0d13be2e53eda4b2a96e3ba4f023877b546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): rust/lance-geo/src/rtree.rs:827-834 | rust/lance-index/src/scalar/btree.rs:2939-2945 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"6268409c45b62d6284cf4302d256a1e04f547cb2d634f182f8918b9057c91d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/scalar/bloomfilter.rs:667-674 | rust/lance-index/src/scalar/bloomfilter.rs:681-688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/bloomfilter.rs:667\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d360ce8d4052b1acc17ce9a3ee7c5ac76447b23f4d40eb3c60ef7dd58f263d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/scalar/inverted/cross_column.rs:196-203 | rust/lance-index/src/scalar/inverted/wand/doc_source.rs:164-171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77512507c369dcb8f29804f7e6378dc6ac6b7a2c2bb5be15e542d7d9463098c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/cache.rs:511-518 | rust/lance-index/src/scalar/inverted/index/cache.rs:542-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/cache.rs:511\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/cache.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad115dc7d8b33de808c3e4e5709f87f934180e08b9885b30708a42a99205d0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/search.rs:1257-1269 | rust/lance-index/src/scalar/inverted/index/search.rs:1298-1310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ranked\u0060 to \u0060\u0026[Reverse\u003CScoredPartitionDoc\u003E]\u0060 in one and \u0060Vec\u003CReverse\u003CScoredPartitionDoc\u003E\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-index/src/scalar/inverted/index/search.rs:1311\u0060 calls \u0060with_capacity\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/search.rs:1270\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":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5245ec8e2ac384b3360553e085a6e8b3ba773ff5be1dc8ad836907fae569394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/bq/rotation.rs:36-43 | rust/lance-index/src/vector/bq/rotation.rs:119-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/rotation.rs:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/rotation.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b228b620000c4f0f338293d12ad7199888ff678140bca8ffeb6f8d209b146ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:501-508 | rust/lance-index/src/vector/distributed/index_merger.rs:536-543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b308cac0fa25bb5129c428b9d5267c1fd1a7bb5a0760965a373cc0c57bc0893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/hnsw/builder.rs:880-887 | rust/lance-index/src/vector/hnsw/online.rs:312-319 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/hnsw/builder.rs:880\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/hnsw/builder.rs"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66ebe19ce23d6e5449496c9a37c11e5e366dab984584bda10a5c7dc6656f861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-io/src/object_store/providers.rs:165-172 | rust/lance-io/src/object_store/providers.rs:562-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers.rs:165\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f08aa9ce55767349c7696a306bbb008c5784cfe86a40cadfb84d10e37021a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-io/src/object_store/storage_options.rs:457-464 | rust/lance-io/src/object_store/storage_options.rs:524-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/storage_options.rs:457\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/storage_options.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"786262d698b8b44bbe48b29da917b14ad2101f5ed1c12af4b1b1e6dfde9322dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-table/src/transaction/manifest_build.rs:1404-1411 | rust/lance/src/io/exec/fts/selection.rs:66-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b119a3ab81acae055f081b7219b16e628dd05892a9509b2d81ac06a5e83e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/bin/fm_contains_bench.rs:166-173 | rust/lance/src/bin/fm_index_tool.rs:55-62 \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":"rust/lance/src/bin/fm_contains_bench.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0629ee30a824b8cca500fa5a6cc675ca9c806e779d6c6dab5ad1ad159bda4a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/mem_wal/api.rs:1036-1043 | rust/lance/src/dataset/mem_wal/api.rs:1253-1260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/api.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"b218238bb717fdbf2f1ed519773caad5c8ae83a52e6063c41b0ba4ad5494b1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/mem_wal/hnsw/graph.rs:861-868 | rust/lance/src/dataset/mem_wal/hnsw/graph.rs:951-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"929140ce6c9668ba001ec99dac3b64585624f6553c17213459d29d9675444d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/btree.rs:478-485 | rust/lance/src/dataset/mem_wal/index/btree.rs:695-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/index/btree.rs:478\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/btree.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c29cf8e5d02179796015741fdda97be45a6359051b7d386c4024443a1e0323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/update_join.rs:1114-1122 | rust/lance/src/dataset/update_join.rs:1134-1142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/update_join.rs:1114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f036679ab5465acd17c1736f21a32e5c056439b06e87a479a1ace8f73749f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/updater/blanks.rs:90-97 | rust/lance/src/dataset/updater/blanks.rs:183-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/updater/blanks.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":"rust/lance/src/dataset/updater/blanks.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efdd75c855c1c06a65b94c5b033059f53041b1743c1e686b116137fc1a64819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:77-84 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:320-327 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs:318\u0060 calls \u0060primary_key_field_ids\u0060, \u0060schema\u0060, \u0060is_some\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:75\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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f6e76341b9bd7e47b04ebb20225259b767fe0f6f6f9e52e89b3073797606e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:251-258 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1170-1177 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbfdb264e3e19ce1f293a1e6a50a14f3b2c9d8477fb1a5376723415f4668d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/job.rs:1590-1597 | rust/lance/src/dataset/write/merge_insert/job.rs:1788-1795 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4b5d656c2def0a846498304504f45fcd2a64820d8660bd82d7eedbc4cbd973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:1258-1265 | rust/lance/src/index/frag_reuse_reader/cache.rs:169-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/index/frag_reuse.rs:1258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3d15112ac3a4d217d482ad3a5c231f2e2074f54551871a670efd12369f6a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/scalar.rs:553-560 | rust/lance/src/index/scalar.rs:713-720 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"680d4103372ec1d6d1f1526d782cf484a4f44ed0529e75a959c6de02d959f471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/scalar/btree.rs:193-200 | rust/lance/src/index/scalar/ngram.rs:158-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/scalar/btree.rs:193\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/btree.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"75906ab605c10b50767d0e0f8688979935273e0f2b07e3898ad9431a9767d390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1418-1425 | rust/lance/src/index/vector/ivf.rs:1510-1517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6163da517f9c8bdbac338abc1bb4d917d11da9944a3194d38409aacd3f590ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2/partition_search.rs:308-315 | rust/lance/src/index/vector/ivf/v2/partition_search.rs:389-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf/v2/partition_search.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":"rust/lance/src/index/vector/ivf/v2/partition_search.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7f45419cfa3f53afbbd017192e0b3379ea707a44da9097575e2f14be173859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/combined_fields.rs:255-262 | rust/lance/src/io/exec/fts/phrase.rs:472-479 \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 \u0060rust/lance/src/io/exec/fts/combined_fields.rs:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/combined_fields.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f87c76afa14980856a8ce8b557cc0dd39ce6fec0a79e7b64608782242c7d6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/compound.rs:272-279 | rust/lance/src/io/exec/fts/compound.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 \u0060rust/lance/src/io/exec/fts/compound.rs:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6715237445570c6c8979e5c861056195b7f7a700dccc6604ddb80a8975da2b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:411-418 | rust/lance/src/io/exec/fts/phrase.rs:337-344 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:411\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf1ca22cc98054db4ff6d00d60b1407b6e2acb23fa709c41ec2eb9b92fffa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/query_tokens.rs:162-169 | rust/lance/src/io/exec/fts/query_tokens.rs:185-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/query_tokens.rs:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/query_tokens.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e309ebab1f3d3309414ed78cf5f03b3a4da46534f636cbeb63505e25d97dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/query_tokens.rs:247-254 | rust/lance/src/io/exec/fts/query_tokens.rs:273-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/query_tokens.rs:247\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/query_tokens.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0384cc48770562304a56b525b2e2de9234c3a85048ae9ccb288ff97accc9493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/fts/segments.rs:209-216 | rust/lance/src/io/exec/fts/segments.rs:276-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/segments.rs:209\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/io/exec/fts/segments.rs:284\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/io/exec/fts/segments.rs:217\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":"rust/lance/src/io/exec/fts/segments.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba6487ed2fe1c44d60daf37725c95f8b27d00efdffb2c97837e6f543c702c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/io/exec/pushdown_scan.rs:642-649 | rust/lance/src/io/exec/pushdown_scan.rs:655-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/pushdown_scan.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"433bcc673f0a3189063f3dfe0126c11c6382e0d3ccf2ce7a59824195d80b3b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): java/lance-jni/src/mem_wal.rs:785-793 | java/lance-jni/src/mem_wal.rs:910-916 | python/src/mem_wal.rs:760-767 | python/src/mem_wal.rs:834-840 \u2014 before extracting anything, compare \u0060java/lance-jni/src/mem_wal.rs\u0060 and \u0060python/src/mem_wal.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbbe0c0083c5564def2a265847e28fbd56821bc92298e5dd932686b7e2e5313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): rust/lance-linalg/src/simd/f32.rs:448-454 | rust/lance-linalg/src/simd/f32.rs:961-967 | rust/lance-linalg/src/simd/f64.rs:298-304 | rust/lance-linalg/src/simd/f64.rs:754-760 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:448\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-linalg/src/simd/f32.rs:958\u0060 calls \u0060lasx_xvfmadd_s\u0060 and \u0060rust/lance-linalg/src/simd/f32.rs:445\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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4889425d11a5940ee64d77c86d43f5a1074878ee8b0fe01a62e8ec0ca209257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): rust/lance-linalg/src/simd/f32.rs:760-766 | rust/lance-linalg/src/simd/f32.rs:782-788 | rust/lance-linalg/src/simd/f64.rs:606-612 | rust/lance-linalg/src/simd/f64.rs:629-635 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:760\u0060 it does not close everything it opens, so those exact lines 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 \u0060ptr\u0060 to \u0060*mut f32\u0060 in one and \u0060*mut 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"926dc0c9c1a24333739b28d5216ff3cb312e09394f88e02857315e9da69d93b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): rust/lance-namespace-impls/src/dir/manifest.rs:3323-3329 | rust/lance-namespace-impls/src/dir/manifest.rs:4314-4320 | rust/lance-namespace-impls/src/dir/manifest.rs:4377-4383 | rust/lance-namespace-impls/src/dir/manifest.rs:4429-4435 \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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9fde676d01c772295e78023e06e1f784149db2842c418144fdb4f8a507cfc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): rust/lance/src/io/exec/fts/flat_match.rs:527-533 | rust/lance/src/io/exec/knn.rs:1053-1059 | rust/lance/src/io/exec/rowids.rs:224-231 | rust/lance/src/io/exec/scalar_index.rs:776-783 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/rowids.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72a928fd87524178d59d38b01c0a3aaa6485cea2a5a096bc25b785447536baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance-index/src/scalar/inverted/index/search.rs:826-832 | rust/lance-index/src/scalar/inverted/index/search.rs:1094-1100 | rust/lance-index/src/vector.rs:539-545 \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 \u0060rust/lance-index/src/scalar/inverted/index/search.rs:826\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/search.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"e772929748bc8881b5222f25d5d364074631b2f4b2308d966b426dbcb9de4923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance/src/index/scalar/bitmap.rs:99-105 | rust/lance/src/index/scalar/btree.rs:141-147 | rust/lance/src/index/scalar/label_list.rs:108-114 \u2014 before extracting anything, compare \u0060rust/lance/src/index/scalar/bitmap.rs\u0060 and \u0060rust/lance/src/index/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/scalar/bitmap.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"334c48615d549c84a8f3ebb48816e06b7252833e1d65aa7fff795c1f926be71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/namespace.rs:3486-3493 | java/lance-jni/src/namespace.rs:3615-3622 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3486\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3486}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd68e16e9e76f855f4246ef518959011caad330d3c7cfe8672762c0dd1542922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/namespace.rs:3523-3530 | java/lance-jni/src/namespace.rs:3652-3659 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3523\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c88f188ca34b078c55b6c51f2e2145199095674baeaec44d938cd2fda7cde9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): java/lance-jni/src/namespace.rs:3568-3576 | java/lance-jni/src/namespace.rs:3697-3705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3568\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f0b9547531665fd057a62045f7d7c3c5e79db87c9ea367efe8956360c4ce5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): java/lance-jni/src/session.rs:370-376 | java/lance-jni/src/session.rs:413-419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/session.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bef299fcdfa9268136a0fb99c848c42ac4f2777c8ffb1e6964e3658f84e0247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/dataset.rs:3327-3333 | python/src/dataset.rs:3363-3369 \u2014 both copies are in the same file, so extract the block 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, \u0060python/src/dataset.rs:3370\u0060 calls \u0060parse_str\u0060, \u0060map_err\u0060, \u0060new_err\u0060 and \u0060python/src/dataset.rs:3334\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":"python/src/dataset.rs"},"region":{"startLine":3327}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8f93adfdffc792dcc0dc276243b7eb6f188cdabff244c6dcd50859ade7bbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/dataset/merge_insert.rs:411-417 | python/src/dataset/sql.rs:216-222 \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":"python/src/dataset/merge_insert.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"957ab568aec0b7741a56cf4e6bbc965bcbd8de572f4f15404bb42bbc90bb88ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/dataset/optimize.rs:529-535 | python/src/dataset/optimize.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":"python/src/dataset/optimize.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"918c2b63735197befed88c789c71062896e04d429d1505001245c634cac90fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/mem_wal.rs:526-532 | python/src/mem_wal.rs:547-553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/mem_wal.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fa24c421c4a867e941569c4a0219c1650f3959aad42692f549c35b54fa2178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): python/src/mem_wal.rs:679-686 | python/src/mem_wal.rs:710-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":"python/src/mem_wal.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"14873872b19da6c1a9e3dac68d2a3ed8263ebfcc479cf0cb195a21f77c4309b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:1470-1477 | rust/compression/fsst/src/fsst.rs:1568-1575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aca68166c3ac0a0c574d8d8528f9eca370e6ebe7184aa37b54a2a21bc9232f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/array_encoding/logical/list.rs:1340-1346 | rust/lance-encoding/src/array_encoding/logical/list.rs:1349-1355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/array_encoding/logical/list.rs:1340\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a55096fc7edc31857aa55b7f06469b7347d4cf617ab42100403b7c40cb98c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/decoder.rs:1410-1416 | rust/lance-encoding/src/decoder.rs:1476-1482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"51971bf4d162492733dfa740a31e5bc6c92bca81a76398d98c83bacf276b39c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse/dictionary.rs:258-264 | rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:777-783 \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 \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse/dictionary.rs:258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/dictionary.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"38214a8b89dd6e62bfc725f7a83ebe651668b1fc607972648059df351bf81d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/statistics.rs:560-566 | rust/lance-encoding/src/statistics.rs:575-581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/statistics.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":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dc0ba9aaa25bae2f1da1fcb3f085aabd5a9fea3a905f6f906d56f33c6967c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-file/src/versions/v1/encoding/binary.rs:74-80 | rust/lance-file/src/versions/v1/writer/mod.rs:566-572 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-file/src/versions/v1/encoding/binary.rs:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e115eb3ec313c4de6a6231ddc703ebd3c24f6b72b511499ac65224b8369ed0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:899-905 | rust/lance-file/src/writer/structural.rs:879-886 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:899\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab37d3cb878383893139c8292c350109c93054c6ecb1bfc9e0c238b69fc7e3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-geo/src/rtree/sort/hilbert_sort.rs:218-224 | rust/lance-geo/src/rtree/sort/hilbert_sort.rs:227-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/rtree/sort/hilbert_sort.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9403c86ad9aab242089d38e285f2071cbb0d86826c9045cbf5b32fe55962af6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/bloomfilter.rs:658-664 | rust/lance-index/src/scalar/zonemap.rs:1406-1412 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bloomfilter.rs\u0060 and \u0060rust/lance-index/src/scalar/zonemap.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bloomfilter.rs:658\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"045769893233cb5f5ef06c048af153bb4ea1186e187c1e7cf252df524eecc632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/btree.rs:1033-1039 | rust/lance-index/src/scalar/btree.rs:1055-1061 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/btree.rs:1033\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf74042aabbb93ab8fc9fae91da6301a47a2a96229cfc405a4ff8d6c446e0bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/btree.rs:1267-1276 | rust/lance-index/src/scalar/btree.rs:1287-1296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/btree.rs:1267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad4bb2cfb7cfb70572c1657d30cd2dd283bf4565c76006dcb5abcadfeef74af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:829-836 | rust/lance-index/src/scalar/fmindex.rs:849-856 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/fmindex.rs:829\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-index/src/scalar/fmindex.rs:847\u0060 calls \u0060load_block_for_rank\u0060 and \u0060rust/lance-index/src/scalar/fmindex.rs:828\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":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e4532b840e16d07de297d8d2e643727420553600b93fafca81998d35963661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/inverted/cross_column.rs:221-227 | rust/lance-index/src/scalar/inverted/wand/doc_source.rs:186-192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/cross_column.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"165953f590d312afded64ec87fe139408c220cc348bbd7a44fa25403f10f9f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/flat_search.rs:62-68 | rust/lance-index/src/scalar/inverted/index/flat_search.rs:88-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/flat_search.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc90ca05d9c52b5918e51dd7542df071cf565820e61971c0e67689596d6e76b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/vector/bq/dist_table_quant.rs:73-82 | rust/lance-index/src/vector/bq/dist_table_quant.rs:110-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060quantized_dist_table\u0060 to \u0060\u0026mut Vec\u003Cu8\u003E\u0060 in one and \u0060\u0026mut Vec\u003Cu16\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5e3319f256f1496b99cdf843e79a3cddd804853df94242016631ef73f21524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-index/src/vector/bq/pairwise.rs:924-932 | rust/lance-index/src/vector/bq/pairwise.rs:934-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 \u0060rust/lance-index/src/vector/bq/pairwise.rs:924\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"488fb296b9464b0fb9c506a3cf9d7958c85326eb6f0e1a5e003a76003005f6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/distributed/index_merger.rs:76-83 | rust/lance-index/src/vector/distributed/index_merger.rs:108-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/distributed/index_merger.rs:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"96854c85469a3e758579cb2515a93c5f3520eedba6303d41a68bac6ac194caca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/vector/graph.rs:627-633 | rust/lance-index/src/vector/graph.rs:656-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f8711da30aa85eac3d9f53178e159765a6ef12acfdd96424fedcab9d8b8566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/vector/kmeans.rs:1878-1884 | rust/lance-index/src/vector/kmeans.rs:1998-2004 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/kmeans.rs:1998\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"db790745f18b7e63aed1592219d0486c8ca255c47e1173c0b598c11014d539b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/vector/pq/storage.rs:325-332 | rust/lance-index/src/vector/pq/storage.rs:696-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/pq/storage.rs:325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c92fcd2ff0ea45350cec8b4fcd4d41576631875e96b0b9fb90c3db88fa374ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-linalg/src/distance/hamming.rs:799-805 | rust/lance-linalg/src/distance/hamming.rs:881-887 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/distance/hamming.rs:799\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe152522cfbda589e6db7c70cb53c428514ce80458e4d5b1957fbc7badddf0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:249-258 | rust/lance-linalg/src/simd/dist_table.rs:508-517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/dist_table.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":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a6c626f7df5861fa962b15c66868b4b6a0a5eaaa50f4f40d399e0cf2c1f3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:1361-1367 | rust/lance-namespace-impls/src/dir/manifest.rs:1469-1475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:1361\u0060 it does not close everything it opens, so those exact 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da8d421977d3e60bf2ca0b113abc33bd9e09675ed213da21c8683c0287db430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:1904-1910 | rust/lance-namespace-impls/src/dir/manifest.rs:1946-1952 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8adf24c27d6b7d766f639f5034edf899a69292d4d74494d70ac9cc37dae638e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2509-2515 | rust/lance-namespace-impls/src/dir/manifest.rs:2887-2893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:2509\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c5fb86da49341f321001350f6a34be5c8554a4716c3db34fadf4e3a0d9a861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-select/src/mask.rs:684-690 | rust/lance-select/src/mask.rs:1232-1238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-select/src/mask.rs:684\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-select/src/mask.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe8f652f66f962fad6a1fab5ece2f4ba2f8aa4f48a629fc8741372a084a4703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-table/src/rowids/version.rs:688-694 | rust/lance-table/src/rowids/version.rs:730-736 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/rowids/version.rs:688\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/version.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8607546dab477354d1e6ae2ff8a289cd228652f25ede3b858a0c483ef062cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): rust/lance/src/dataset/blob/locate.rs:23-29 | rust/lance/src/dataset/fragment/aligned_update.rs:483-487 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/fragment/aligned_update.rs:483\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance/src/dataset/blob/locate.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ef1f1153f9732a34d645f6123b704b7219c9146ddd724ec5041419dc64ed7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): rust/lance/src/dataset/delta.rs:754-759 | rust/lance/src/dataset/delta.rs:803-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 \u0060rust/lance/src/dataset/delta.rs:803\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines 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":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"7401ed7b9d41c79fd89b65148630a2b6728e5bd500708b6c301ae85007074cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable.rs:480-486 | rust/lance/src/dataset/mem_wal/memtable.rs:521-527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15cb4eb7b12c3f94970deaf9dead8490c22c4c87e03879dbbc18f710e169d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/job.rs:1274-1280 | rust/lance/src/dataset/write/merge_insert/job.rs:1295-1301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f43ce085e5d5886d524772bb2956d493b86f7576d18509004f0dee01bd9a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:588-594 | rust/lance/src/io/exec/fts/phrase.rs:511-517 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other 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, \u0060rust/lance/src/io/exec/fts/phrase.rs:518\u0060 calls \u0060once\u0060, \u0060elapsed_compute\u0060, \u0060timer\u0060 and \u0060rust/lance/src/io/exec/fts/match_query.rs:595\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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce12ac478f6c3a7bbca22c83bd8e6026e24600ccf048fd97d2d56e849f34504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-io/src/lib.rs:235-240 | rust/lance-io/src/lib.rs:290-295 | rust/lance-table/src/rowids.rs:1315-1320 \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 \u0060rust/lance-io/src/lib.rs:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/lib.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b83621876a5e5f8042416cb2d32361e8e96d210b8fd702c510074fd6f335cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance/src/io/exec/fts/flat_combined_fields.rs:521-527 | rust/lance/src/io/exec/fts/flat_match.rs:1180-1186 | rust/lance/src/io/exec/rowids.rs:226-231 \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 \u0060rust/lance/src/io/exec/fts/flat_combined_fields.rs:521\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_combined_fields.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab20e20418bc1a1f096c56cee1f85dcf03cae763074549083b31e872901bd80f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/lance-jni/src/namespace.rs:3509-3514 | java/lance-jni/src/namespace.rs:3638-3643 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:3509\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df0f793e52ab21b501c2a58c0373e499a0b8ff3a10a7fa0b776daa66651313a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/dataset/merge_insert.rs:255-260 | python/src/dataset/merge_insert.rs:300-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5263dda494540940cbae51cf596445a2d73b9f868310d07f7057afef384c6969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:351-361 | rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs:389-399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/bitpacking/src/bitpacker_internal/bitpacker8x.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2ce20d3a06585ed122fed1e5b1f77dc3a364dfc0d9ca1c80fabfd19e7780c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-core/src/levenshtein.rs:18-23 | rust/lance/src/dataset/mem_wal/index/fts.rs:669-674 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-core/src/levenshtein.rs:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/levenshtein.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32aeac89ff9c89cf2a30adc43bea4fdf8672e0aef6ec3725cd5dd7ced1b5f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:863-868 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:873-878 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:863\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"3143e900fb72cd8b83b0789b708530ed7df7c43446a71eed46db33021d39cc53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:823-828 | rust/lance-encoding/src/encodings/physical/alp.rs:896-901 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp.rs:823\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dfedc72e70bb3325a503db9dab871266d1afce32c52c6089414b1a68f71461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:157-162 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:312-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:156\u0060 calls \u0060wrapping_add\u0060 and \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:311\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":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f040cf4aad487e75dfcda60d645fd87ea8578585958f42d485c5289bf9ee64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:176-181 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:339-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fc8a64b306d173041c3a1bb897263f62f89cf68b7109e1408d54c396995573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/bitpacking.rs:148-153 | rust/lance-encoding/src/encodings/physical/bitpacking.rs:176-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/bitpacking.rs:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/bitpacking.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81b65080d1d5fce52f9538c89c39cf9a95e0bdfc0ee05ce351c6f791bb3b6af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-encoding/src/statistics.rs:282-287 | rust/lance-encoding/src/statistics.rs:292-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/statistics.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2af8aaea3955ee002de8aef685391967330e8a9e3a2a9885602aea165972dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-file/src/concat.rs:426-432 | rust/lance/src/dataset/blob/external.rs:255-260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-file/src/concat.rs:426\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/concat.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec277b3967a0d48e8c941aff673c1f027abba2898f21a75383b924c14e778843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-file/src/reader.rs:1722-1727 | rust/lance-file/src/reader.rs:2148-2153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader.rs:1722\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader.rs"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b46f764b1a262328f654db0c8560cebb8a0197ef5a1e440f56e943fd11a090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-file/src/version.rs:229-237 | rust/lance-file/src/version.rs:255-263 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-file/src/version.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39edbc33ad04cc534b34a228757c659e9de7b27a42a985f03ce20ef5137c34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:662-667 | rust/lance-file/src/writer/structural.rs:290-295 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:662\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5c9269cfd5cf6cc86a7d4683363e04b240b6f751ecc671988d32cf553e662d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-geo/src/rtree.rs:708-713 | rust/lance-geo/src/rtree.rs:1375-1380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c96c173e74281c8f3f2cc4d2b6ed0e32623d822fa33845e20888a0b4d4b802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-geo/src/rtree/sort/hilbert_sort.rs:212-217 | rust/lance-geo/src/rtree/sort/hilbert_sort.rs:221-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/rtree/sort/hilbert_sort.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5dc8fa3f6a2960a687b3328474638f3286bcf39167d4b73e6f750550377265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:399-404 | rust/lance-index/src/scalar/fmindex.rs:905-910 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c1c04b38ca8b08c59b8b3972b9e8fefb34b3aade98e73903937b100c518031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted/builder.rs:1881-1886 | rust/lance-index/src/scalar/inverted/builder.rs:1950-1955 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/builder.rs:1881\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3da252b97e7c8c0d3cb4d3d6aa597de6f3cc1e65145167f636d5f238335df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/inverted_index.rs:392-397 | rust/lance-index/src/scalar/inverted/index/inverted_index.rs:462-467 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/inverted/index/inverted_index.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/index/inverted_index.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"0680e0ba88dad3f12caedaa191e38b067aaeaa852e7dbe7f68cc3557e22c25c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted/index/partition.rs:338-343 | rust/lance-index/src/scalar/inverted/index/partition.rs:449-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060mut\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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd448279c4d06c2cc4aafb09f65fce464e9e5ffa1dab89684ea8f5941ff2bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/json.rs:930-935 | rust/lance-index/src/scalar/json.rs:1070-1075 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12f2a91007c99782f00803c4db31f32462ce060a84cca58eda3496ab8cc4f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/label_list.rs:503-508 | rust/lance-index/src/scalar/label_list.rs:510-515 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"813535246f5983156e5b2669f19c1a89fd3829523b8a3a5fe13266535e8cdbda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/scalar/list_element.rs:385-392 | rust/lance-index/src/scalar/list_element.rs:418-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 \u0060rust/lance-index/src/scalar/list_element.rs:385\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-index/src/scalar/list_element.rs:426\u0060 calls \u0060chain\u0060, \u0060once\u0060, \u0060Value\u0060 and \u0060rust/lance-index/src/scalar/list_element.rs:393\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":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd58d8d680461d8142e9f3ae7dc73c002d67eec7e473556e60a08fb8ec2b0503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/dist_table_quant.rs:401-406 | rust/lance-index/src/vector/bq/dist_table_quant.rs:488-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/dist_table_quant.rs:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa9f936ca2e3abfad31553b9d6944c366fbd06bda7133584c1a7114c168c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/dist_table_quant.rs:436-441 | rust/lance-index/src/vector/bq/dist_table_quant.rs:529-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/dist_table_quant.rs:436\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52ab9443864e8aa0ac0242efac68f9892de86d4625c8d3dc0ebb8beb37a5213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:687-692 | rust/lance-index/src/vector/bq/ex_dot.rs:753-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:687\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"4643fc87d0831cb90c12418e2420f14aad294e170983844718efea89b120790d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:1023-1030 | rust/lance-index/src/vector/bq/ex_dot.rs:1631-1638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:1023\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f9849449bd6f6a7d8097ad7f32ddde8f254ead08488cb16c4740b1eebd47c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/ex_dot.rs:1455-1460 | rust/lance-index/src/vector/bq/ex_dot.rs:1518-1523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:1455\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9cd79fe48d499e0e58ceea39e0f5b29ae25714f5a19c9873298e8d61ae030f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:1648-1653 | rust/lance-index/src/vector/bq/storage.rs:2410-2415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/storage.rs:1648\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0c5029b66200eea24010eaa686795e97b52513b7c351dae8ed75c3c04653b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/storage.rs:2368-2373 | rust/lance-index/src/vector/bq/storage.rs:2407-2412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/storage.rs:2368\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e1b60ea3419be1bd8f0cdb9edb4a006f7c66944c3105e620bb99c8d17c72c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 4): rust/lance-index/src/vector/bq/storage.rs:2358-2360 | rust/lance-index/src/vector/bq/storage.rs:2392-2397 | rust/lance-index/src/vector/storage.rs:225-231 | rust/lance-index/src/vector/storage.rs:260-262 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/storage.rs:2392\u0060 it does not close everything it opens, so those exact 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 before the matched lines, \u0060rust/lance-index/src/vector/bq/storage.rs:2391\u0060 calls \u0060unwrap_or\u0060, \u0060into\u0060 and \u0060rust/lance-index/src/vector/bq/storage.rs:2357\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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2358}}}],"partialFingerprints":{"codehealthFindingId/v1":"634187b93bdf1067b0f3eed348e69d8a34c182dbd9bb52d8d0f21a80bbadc969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/quantizer.rs:412-417 | rust/lance-index/src/vector/sq/storage.rs:239-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/quantizer.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/quantizer.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"587e7ab3bd1bd37add97e4112cb0a175fabc3efd1644534a1760ea5ddefa8531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-jsonb/src/jsonpath/selector.rs:346-351 | rust/lance-jsonb/src/jsonpath/selector.rs:401-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/jsonpath/selector.rs:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/jsonpath/selector.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da08add6361b04aef033dd57e26b25861dde6d8d0aa307dc4b1b2cad1640e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/distance/hamming.rs:760-765 | rust/lance-linalg/src/distance/hamming.rs:835-840 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/distance/hamming.rs:760\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/hamming.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"563467e4e4fad9bb79769f474ced1f72241d250a05ed1b61bd1f649761cfaab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:622-627 | rust/lance-linalg/src/simd/dist_table.rs:631-636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01bccfbf095191bb80ce0418f0e6242db737faaf83abfca7cb92ef3bbe54a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:290-295 | rust/lance-linalg/src/simd/f64.rs:183-188 \u2014 before extracting anything, compare \u0060rust/lance-linalg/src/simd/f32.rs\u0060 and \u0060rust/lance-linalg/src/simd/f64.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:290\u0060 it does not close everything it opens, so those exact lines 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 \u0060ptr\u0060 to \u0060*mut f32\u0060 in one and \u0060*mut 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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f00a7fd78c154804def1502a98746bf6a16fd965aef9cc4c900ec7806145971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:493-498 | rust/lance-linalg/src/simd/f32.rs:1011-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7ba8216471bb5782ba7f1159e4d8b60dd0e394063ba69a45fedc1839b73098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:545-550 | rust/lance-linalg/src/simd/f32.rs:1098-1103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcaf8e4622b5f0bac0b6451cb2ac5256a06c58a63b503e7362c777dfaf26e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:343-348 | rust/lance-linalg/src/simd/f64.rs:802-807 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f64.rs:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52abb20beba776e94523c7f758de5cc5d0cbbdd015f3654ec3eedd6378bc031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:395-400 | rust/lance-linalg/src/simd/f64.rs:885-890 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f64.rs:395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0017d5fa5328c32bf9e3686d7b6f815576984a970b23e1d16f87abac299a6d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-table/src/io/commit.rs:986-992 | rust/lance-table/src/io/commit/external_manifest.rs:729-735 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-table/src/io/commit/external_manifest.rs:736\u0060 calls \u0060Err\u0060 and \u0060rust/lance-table/src/io/commit.rs:1000\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":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"011357a19aa9e8b3caafb6b1b50ad9232a669c68e087065f8d5cc6cb8b9bad2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/index/frag_reuse.rs:664-669 | rust/lance/src/index/frag_reuse.rs:2323-2328 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/index/frag_reuse.rs\u0060 and \u0060rust/lance/src/index/frag_reuse.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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"05df8469ece50a25f36fc6f7b08e040a77585af8de3003b1982972e2ce4a5585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1031-1036 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:882-887 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/builder.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:1031\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee32c418658cfa3eb4c3eb6e8bf04d317c1ce8ec770de13f6589124eea520919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/collector.rs:212-217 | rust/lance/src/dataset/mem_wal/scanner/collector.rs:240-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/collector.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d657ae0116ff3a246fe31212a1ffb86918a906399053e530d9239aeb8966bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1528-1533 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:195-200 \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 \u0060rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eff174aaf4f5bbaa4d46c1643a3317819090cfe3dcbcd4523a947f00aa938e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:2368-2373 | rust/lance/src/index/frag_reuse.rs:2431-2436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0784fa20445ef2aede3c3adcf5725281b4b31a2bc1ffae2e3d004d7163d75d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/index/vector/ivf/v2.rs:264-269 | rust/lance/src/index/vector/ivf/v2/partition_search.rs:570-575 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/index/vector/ivf/v2.rs:264\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccbafa32dd06ac90cca19a0a7fef06a984bc92292bf978f2d3f14af20466aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:401-406 | rust/lance/src/io/exec/fts/phrase.rs:328-333 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/match_query.rs:401\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/io/exec/fts/match_query.rs:408\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs:335\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":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b77fa12fe26a24c758913ab46a307580effb2a512087482b75008e4c9a1784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/io/exec/fts/match_query.rs:581-586 | rust/lance/src/io/exec/fts/phrase.rs:505-510 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/match_query.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4a51c337f12352d30f945acc075b979ed7a1e1015cad028204a6faa2164649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): rust/lance-datafusion-exec/src/udf/json.rs:493-497 | rust/lance-datafusion-exec/src/udf/json.rs:664-668 | rust/lance-datafusion-exec/src/udf/json.rs:720-724 | rust/lance-datafusion-exec/src/udf/json.rs:776-780 | rust/lance-datafusion-exec/src/udf/json.rs:934-938 \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 \u0060rust/lance-datafusion-exec/src/udf/json.rs:493\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"f364ac73ec2535de14c0e947d8594096682f01c97b097e8f9a08612de32d0a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-core/src/cache/telemetry.rs:430-434 | rust/lance-core/src/cache/telemetry.rs:531-535 | rust/lance-core/src/cache/telemetry.rs:550-554 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41376b0466c8fdeaea9db5d012d3208188325236e7c5106ad3b733069030efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-datafusion-exec/src/udf/json.rs:326-330 | rust/lance-datafusion-exec/src/udf/json.rs:555-559 | rust/lance-datafusion-exec/src/udf/json.rs:608-612 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/udf/json.rs:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/udf/json.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bbec3e5105e7d8c4ba4421525532d599c993fcc64bbe933a9bf015c2fa5dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-encoding/src/encodings/logical/list.rs:54-59 | rust/lance-encoding/src/encodings/logical/list.rs:66-70 | rust/lance-encoding/src/encodings/logical/map.rs:57-61 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/list.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bde9cd132126d8dd8d946b2bddc306cd1214f2784118a054f896dd3de50a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-encoding/src/encodings/logical/primitive/dict.rs:318-323 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2057-2062 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:2073-2078 \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 \u0060rust/lance-encoding/src/encodings/logical/primitive/dict.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. 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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a3f6e9456eb9a734a4f2e7c4aa9bf7b991b45b55df7fcf9febd4e8ae17f6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance-file/src/versions/v2_1/writer.rs:79-86 | rust/lance-file/src/versions/v2_2/writer.rs:79-86 | rust/lance-file/src/versions/v2_3/writer.rs:79-86 \u2014 \u0060rust/lance-file/src/versions/v2_1/writer.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/writer.rs\u0060 are one unit implemented once 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/writer.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e1e1daaec536442afc84bb908b76b8a391e77a7a9d02a795eaa5577b1d58d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-index/src/scalar/btree.rs:278-282 | rust/lance-index/src/scalar/btree.rs:292-296 | rust/lance-index/src/scalar/btree.rs:306-310 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c638cd62a30ed07b8d0982d2106fb018ad06490db46c8d57661b1c884148eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-index/src/scalar/json.rs:1088-1092 | rust/lance-index/src/scalar/json.rs:1109-1113 | rust/lance-index/src/scalar/json.rs:1130-1134 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/json.rs:1088\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c1192f3f754661ada3209acef677e01f0b54daa6aaab6f90522b4a1dff894c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-index/src/vector/bq/ex_dot.rs:822-827 | rust/lance-index/src/vector/bq/ex_dot.rs:876-880 | rust/lance-index/src/vector/bq/ex_dot.rs:1575-1580 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/ex_dot.rs:822\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/ex_dot.rs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5378f71b8e4b283d1355bbb1e50ad3210daf11b8c6dc5e14970af0ea69fcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance-linalg/src/simd/dist_table.rs:255-261 | rust/lance-linalg/src/simd/dist_table.rs:471-477 | rust/lance-linalg/src/simd/dist_table.rs:514-520 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/dist_table.rs:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff1b6f510225fa6d0fa7ded112fea3ea6e9a6dca809036aafb3cb74d4ebea1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance/src/io/exec/fts/combined_fields.rs:480-484 | rust/lance/src/io/exec/fts/match_query.rs:580-584 | rust/lance/src/io/exec/fts/phrase.rs:504-508 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/combined_fields.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a60b1e6435ff4fc5b3a6eb568a78f78bf653cfea55b59150a380ca846aefd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): java/lance-jni/src/blocking_blob.rs:61-65 | java/lance-jni/src/blocking_blob.rs:118-124 | java/lance-jni/src/blocking_blob.rs:153-157 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_blob.rs:61\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"java/lance-jni/src/blocking_blob.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c6c6aa587c40c63114bff8ced7b41dadacb7c7b18d0871e9b60db508428244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): java/lance-jni/src/blocking_dataset/refs.rs:212-216 | java/lance-jni/src/blocking_dataset/refs.rs:509-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 \u0060java/lance-jni/src/blocking_dataset/refs.rs:212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/refs.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6b972226b81a26e17bb834e1fbeb0c6946228be364352dd7cbeeb5e6ae0192"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): java/lance-jni/src/blocking_dataset/refs.rs:263-267 | java/lance-jni/src/blocking_dataset/refs.rs:433-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_dataset/refs.rs:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/refs.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be582c2989e1680e8401749e075adc31d860eb08041d37f5cc9dd031ce6d093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): python/src/dataset/merge_insert.rs:205-210 | python/src/dataset/merge_insert.rs:289-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/dataset/merge_insert.rs:205\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/merge_insert.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"450cbbd3a6d89b697dc7ced3c681450d4910035dd2b1574da134adf787f27f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/namespace.rs:315-321 | python/src/namespace.rs:1062-1068 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"900aaefc433c36cd30abc07fa3079469ecff0978b20dd7f907c1a511cefedb84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/namespace.rs:451-457 | python/src/namespace.rs:1198-1204 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c78a09cdceb7ad4a5f40cfeb48e9fd1a3d1a357c80deee6acb0b33a8c8fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-core/src/cache/telemetry.rs:763-767 | rust/lance-core/src/cache/telemetry.rs:786-790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/cache/telemetry.rs:763\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/telemetry.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b55083c76a4380ce502b0cde8180aba1506db9b4e4b3c4920b4bac2a3abe47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-datafusion-exec/src/expr.rs:413-420 | rust/lance-datafusion-exec/src/expr.rs:426-433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/expr.rs:413\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1617b9c4894a670f069b0f8e9e6945956f6e6ff65fa9d766943d465661aba6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-datafusion-exec/src/expr.rs:499-504 | rust/lance-datafusion-exec/src/expr.rs:512-517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a03249fe508f865b9a01375d02567fa56303ad79015bff4573ea4ffb37e8b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-datagen/src/generator.rs:2753-2757 | rust/lance-datagen/src/generator.rs:2781-2785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datagen/src/generator.rs:2753\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-datagen/src/generator.rs:2758\u0060 calls \u0060new_known_size\u0060 and \u0060rust/lance-datagen/src/generator.rs:2786\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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2753}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a5f09af51ff88007e4b0be4415ff731dfa95bf71d9392dfeae29b899f6c8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/fsst.rs:341-345 | rust/lance-encoding/src/encodings/physical/fsst.rs:348-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/fsst.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c689a5b459e7966305394f0b3c5ac4887638555d60f7a26de99f1c34af7e52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:1111-1115 | rust/lance-index/src/scalar/fmindex.rs:2175-2179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9854c5daee06420141038f9b9a4ff293ca29e36fa7b19f9646f7f0202e081fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/scalar/ngram.rs:1670-1674 | rust/lance-index/src/scalar/ngram.rs:1677-1681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12ee7e8d44a43ff137d9501629f04def6ee5a1b064f99b6e1f4d9b1b5af45b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/scalar/zonemap.rs:2746-2750 | rust/lance-index/src/scalar/zonemap.rs:3249-3253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/scalar/zonemap.rs:2746\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d299464eae0dcf4959aeb2f51a3ca227fd8580192170e20eccd91dd1643470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/bq/builder.rs:849-854 | rust/lance-index/src/vector/bq/builder.rs:935-940 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/builder.rs:849\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd048adfc5f7f304b7422c6a659ac5652ac192f95044574d63bda41d2db53c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/vector/bq/dist_table_quant.rs:398-402 | rust/lance-index/src/vector/bq/dist_table_quant.rs:433-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/dist_table_quant.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"292f4c20a1e7e8cd5504c2fbd6b07e9449a8723866d3c1e8a73bede9020de9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/vector/sq/pairwise.rs:463-468 | rust/lance-index/src/vector/sq/pairwise.rs:508-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/sq/pairwise.rs:463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/sq/pairwise.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcce8f910756d01026d71a3f28edbf15105d2de9e88d923071cf3bca7ba93dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/vector/storage.rs:238-242 | rust/lance-index/src/vector/storage.rs:277-281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/storage.rs:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/storage.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ce30530e814484dc34be39e518e51fdd2fae03ccd1e3fc8454c2d2c19c1d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-jsonb/src/core/ser.rs:100-104 | rust/lance-jsonb/src/core/ser.rs:173-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/core/ser.rs:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/ser.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eb7faae8f484aadb86c4e1c7b4fd567f25042f8cad757e14692550e132c83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-jsonb/src/core/util.rs:411-416 | rust/lance-jsonb/src/core/util.rs:418-423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-jsonb/src/core/util.rs:411\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ac66c7d5dbaf2b4fa9f11cb9b126e2de606747548c167558354c787de144c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/distance/dot.rs:149-154 | rust/lance-linalg/src/distance/l2.rs:1035-1040 \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 \u0060rust/lance-linalg/src/distance/dot.rs:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a703f4c9ab2c0fa530e2e4c18258bf29929a44c9a82c01676e58f02d282c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:889-895 | rust/lance-linalg/src/simd/dist_table.rs:900-904 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea0c30c23be7f6b6a312fde7001a059f363f9647008f5d6d5d3e3d27005d91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:437-441 | rust/lance-linalg/src/simd/f32.rs:947-951 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8a22cf0ef789bec353549463e50d9fc96ce789d3974eab8eec1e4eccedd3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f32.rs:441-446 | rust/lance-linalg/src/simd/f32.rs:953-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f32.rs:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3b23c12ab376bd030827fb14841e73c2ad637d1622cdda651816891bb1b808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:287-291 | rust/lance-linalg/src/simd/f64.rs:740-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 \u0060rust/lance-linalg/src/simd/f64.rs:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78dfb87de3fc25d2b771e7b23cbfc8d2c7740494b1bde2d687a70d38214ebdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/f64.rs:291-296 | rust/lance-linalg/src/simd/f64.rs:746-751 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-linalg/src/simd/f64.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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e758c9d05f5e497fa9473ad6335e5633363bee67c0166f26766999015ca9e51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2466-2470 | rust/lance-namespace-impls/src/dir/manifest.rs:2846-2850 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2466}}}],"partialFingerprints":{"codehealthFindingId/v1":"62690f5e63c3cd37a515729849f5df5b0ee2cdaadd2d4220e9f2eb122040c527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-select/src/mask/nullable.rs:297-301 | rust/lance-select/src/mask/nullable.rs:308-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-select/src/mask/nullable.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-select/src/mask/nullable.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"251ff53b34dcb0e7ce74e17a2909ec1f283fd021b406bb8f7ad142a6879ed982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-select/src/mask/nullable.rs:345-350 | rust/lance-select/src/mask/nullable.rs:359-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-select/src/mask/nullable.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":"rust/lance-select/src/mask/nullable.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"4891ff667ba7bfef17286f904ad29143621d0ce7afe983382b880252534ca988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-table/src/rowids/segment.rs:695-699 | rust/lance-table/src/rowids/segment.rs:734-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/rowids/segment.rs:695\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fce459cb379960693146630e2e224bb7325526788601ac6eea3d2a2079bbe79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-table/src/rowids/serde.rs:212-216 | rust/lance-table/src/rowids/serde.rs:229-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/rowids/serde.rs:212\u0060 it begins part-way through the construct above it, so those exact 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":"rust/lance-table/src/rowids/serde.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a20474296addce31506f75b8353fa58c3fafd33d1ceaf800060ec1c83c19ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset.rs:1033-1037 | rust/lance/src/dataset.rs:1065-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 \u0060rust/lance/src/dataset.rs:1033\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9ed75b8450e073b9819e63e89c925352b4a6e66ceae50266380ad511be3610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/builder.rs:923-927 | rust/lance/src/dataset/mem_wal/scanner/exec/pk_block_filter.rs:206-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/mem_wal/scanner/builder.rs:923\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/builder.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"448ccb173134a11edbc2df6769944acdf81a217e5178f03df2f322ac9a866cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1330-1337 | rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1453-1457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:1330\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77bda7edd8c19df3212efee86bdee8d4dde4f50e1f6bfca36e74e067b3ff025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/optimize/binary_copy/seed_carry.rs:67-75 | rust/lance/src/dataset/write/seeds.rs:175-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/optimize/binary_copy/seed_carry.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. 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":"rust/lance/src/dataset/optimize/binary_copy/seed_carry.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1610011ee30d3d1a06cc9b7d0faa703599abaac2e958892725252744c7a35248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/update_join.rs:280-284 | rust/lance/src/dataset/update_join.rs:360-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/update_join.rs:280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1168df4d59976f44925314f5ed9ac3617e572b2bf2cc32dc460980bb7cc8279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:297-301 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:1297-1301 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs:1302\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:302\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":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e1fe87cefbfe07c63e60046f20b0b9fb88a255f4f3014ddd9338f83953cd9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/index/loading.rs:730-735 | rust/lance/src/index/scalar.rs:1182-1186 \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 \u0060rust/lance/src/index/loading.rs:730\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ad2995fa68cb756e5c40b5982e0bbbe0bd6182714988fb0682cd785cb5fc85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:3805-3812 | rust/lance/src/index/vector/ivf.rs:6109-6113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:3805\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":3805}}}],"partialFingerprints":{"codehealthFindingId/v1":"edce01fbf69fb578492d2c67cf94f8a528a7203666d10c226e9e54cd5ffd370f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:4713-4717 | rust/lance/src/index/vector/ivf.rs:4812-4816 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:4713\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4713}}}],"partialFingerprints":{"codehealthFindingId/v1":"8407e94433546c151d4b06d0071f3e0e46d71610025bf46d04835be3e9b91dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/io/exec/fts/compound.rs:1054-1058 | rust/lance/src/io/exec/fts/compound.rs:1710-1714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f6904ddbeeb79da626e7123f593f23376751aca0c5431bed72976e3b1d20f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): rust/lance/src/io/exec/fts/combined_fields.rs:492-495 | rust/lance/src/io/exec/fts/compound.rs:1062-1066 | rust/lance/src/io/exec/fts/compound.rs:1716-1720 \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 \u0060rust/lance/src/io/exec/fts/combined_fields.rs:492\u0060 it does not close everything it opens, so those exact lines 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":"rust/lance/src/io/exec/fts/combined_fields.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd83b3b34c3c2b517f8ec4b4472e21db1d114dff439425bb133720db8ffd97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): rust/lance-index/src/vector/flat.rs:34-87 | rust/lance/src/index/vector/utils.rs:62-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-index/src/vector/flat.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07edf5e9d1e71bc302bfcd485e595838e7d6c3e42c8e3b0f9452b19f15474ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/blocking_dataset/maintenance.rs:554-563 | python/src/dataset.rs:438-447 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"java/lance-jni/src/blocking_dataset/maintenance.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d72415d5e243ab0d3c886b4866b8468b92a4b1adfcb46ee0861b053dadc169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): java/lance-jni/src/mem_wal.rs:1165-1179 | python/src/mem_wal.rs:1104-1118 \u2014 before extracting anything, compare \u0060java/lance-jni/src/mem_wal.rs\u0060 and \u0060python/src/mem_wal.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060manifest\u0060 to \u0060ShardManifest\u0060 in one and \u0060lance_index::mem_wal::ShardManifest\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":"java/lance-jni/src/mem_wal.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"13951c22bdab8f48b754dadf0df0f4bb1638b2b802773549bf67a7b74a37f02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/lance-jni/src/merge_insert.rs:268-273 | java/lance-jni/src/update.rs:94-99 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/merge_insert.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d197ffb320cbc2124a1baf3fc24130e384bbf573b3f5f088f62d3a390e362904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): java/lance-jni/src/merge_insert.rs:295-305 | java/lance-jni/src/update.rs:109-119 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/merge_insert.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":"java/lance-jni/src/merge_insert.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb76ded30520d37857c5f0715bb4f279d2851d4ffb9443b6e60ad1af61fe9089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/lance-jni/src/otel.rs:58-65 | python/src/otel.rs:88-95 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe3401decca336bb03f17515a7551617a073d5618f53e77fe7e66398ef55804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/lance-jni/src/otel.rs:121-126 | python/src/otel.rs:169-174 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbc314c7f4b799261764d38155cdbb48155c84aab9836c20619bc90a3fb12fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/lance-jni/src/otel.rs:214-219 | python/src/otel.rs:272-277 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b2b73796cec596f7bf619f5ad0fb66a051172cd3509403a088571ba947d60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): java/lance-jni/src/otel.rs:237-241 | python/src/otel.rs:295-299 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"405d167a85c3bd33a3de182f7c319315fa11df6e4e0b75f2e9cc4e25b0b3180a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/lance-jni/src/otel.rs:354-359 | java/lance-jni/src/utils.rs:722-727 \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 \u0060java/lance-jni/src/utils.rs:722\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/otel.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a6d6a350d4d19713e88170e27a8065ca6ef067378cffbf0d4e0406bba7f3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): python/src/dataset/optimize.rs:211-218 | python/src/fragment.rs:981-988 | python/src/fragment.rs:1033-1040 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset/optimize.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7f2c6e8a5475dd0f5d0b026a6fffa35cf8d1d9b848041b48533646b545a070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): python/src/dataset/optimize.rs:251-259 | python/src/dataset/optimize.rs:363-371 | python/src/fragment.rs:1008-1016 | python/src/fragment.rs:1067-1075 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060other\u0060 to \u0060PyRef\u003C\u0027_, Self\u003E\u0060 in one and \u0060Self\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":"python/src/dataset/optimize.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a09ae8dac8bd1d9af315ba9509ccee1b09e57fd3522ecb1eadf1a41886253bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-core/src/cache/backend_metrics.rs:106-110 | rust/lance-core/src/cache/diagnostics.rs:723-727 \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":"rust/lance-core/src/cache/backend_metrics.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dfc2434d0972f5c13d75669ef7cdbff681b9dfef19baddba39944782bbe505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-datafusion/src/exec.rs:618-624 | rust/lance/src/datafusion/dataframe.rs:264-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-datafusion/src/exec.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ac9e2b5434c2d5f63d31cd6ca77e04ebfa3007c1e01701d150bd54b18c2437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-file/src/reader/structural.rs:208-213 | rust/lance-file/src/versions/v1/mod.rs:86-91 | rust/lance-file/src/versions/v2_0/mod.rs:52-57 \u2014 \u0060rust/lance-file/src/versions/v1/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/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 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d7e357f4e8d49cffefaa12c88f1426f42231632f1f0f26a31224d878b72aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): rust/lance-file/src/reader/structural.rs:249-260 | rust/lance-file/src/versions/v1/mod.rs:43-54 | rust/lance-file/src/versions/v2_0/reader.rs:205-216 \u2014 before extracting anything, compare \u0060rust/lance-file/src/reader/structural.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/reader.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/reader/structural.rs:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/lance-file/src/versions/v1/mod.rs:56\u0060 calls \u0060projection_from_whole_schema\u0060, \u0060projection_from_field_ids\u0060, \u0060field_id_to_column_index\u0060 and \u0060rust/lance-file/src/reader/structural.rs:263\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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dbd5f5e15bffab30f288a0db40560d378102827ad47ce42a2c6f9bf465f1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-file/src/versions/v1/mod.rs:73-83 | rust/lance-file/src/versions/v2_0/mod.rs:39-49 \u2014 \u0060rust/lance-file/src/versions/v1/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/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 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10d99ed4098e53b9e4833d61d621d852190680b1357931774642e79a944f142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-file/src/versions/v1/mod.rs:93-100 | rust/lance-file/src/versions/v2_0/mod.rs:59-66 \u2014 \u0060rust/lance-file/src/versions/v1/mod.rs\u0060 and \u0060rust/lance-file/src/versions/v2_0/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 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/mod.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdaf704ddbbf5b77578409eb05432c81a665af62b9aa0bb26c10d1b76811ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:122-128 | rust/lance-file/src/writer/structural.rs:105-111 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2701120ae20ae27f16deb1c27f8998fe6723a66703319bcff5882d8ab4d081f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:174-181 | rust/lance-file/src/writer/structural.rs:136-143 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e2eae33966f70dbd7f40274cf6659d9362e74cf1de2a35be22d07e1395a5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-file/src/versions/v2_0/writer.rs:638-647 | rust/lance-file/src/writer/structural.rs:822-831 \u2014 before extracting anything, compare \u0060rust/lance-file/src/versions/v2_0/writer.rs\u0060 and \u0060rust/lance-file/src/writer/structural.rs\u0060 as WHOLE FILES: this scan already matched 17 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_0/writer.rs:638\u0060 it begins part-way through the construct above it, so those exact lines 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 \u0060schema\u0060 to \u0060\u0026lance_core::datatypes::Schema\u0060 in one and \u0060\u0026Schema\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":"rust/lance-file/src/versions/v2_0/writer.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfdf68cd1ea6a68fb38eaad11c1cb6fa8a93d904d7799d76cb7c008fd5c3de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-file/src/versions/v2_1/writer.rs:88-93 | rust/lance-file/src/versions/v2_2/writer.rs:88-93 | rust/lance-file/src/versions/v2_3/writer.rs:88-93 \u2014 \u0060rust/lance-file/src/versions/v2_1/writer.rs\u0060 and \u0060rust/lance-file/src/versions/v2_2/writer.rs\u0060 are one unit implemented once 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_1/writer.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe92b82d9f82191b73d46eba07d98114f8c396ee5544a8f253ba19ac7258215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-file/src/versions/v2_2/compression.rs:33-39 | rust/lance-file/src/versions/v2_3/compression.rs:35-41 \u2014 \u0060rust/lance-file/src/versions/v2_2/compression.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/compression.rs\u0060 are one unit implemented once 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 42 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v2_2/compression.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0b11210b5f78febd8cd666d986da47911d84ddae776b4414b3edd17eca0e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): rust/lance-geo/src/query.rs:49-54 | rust/lance-index/src/scalar.rs:373-378 | rust/lance-index/src/scalar.rs:444-449 | rust/lance-index/src/scalar.rs:500-505 | rust/lance-index/src/scalar.rs:579-584 | rust/lance-index/src/scalar.rs:608-613 | rust/lance-index/src/scalar/json.rs:633-638 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 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, \u0060rust/lance-geo/src/query.rs:45\u0060 calls \u0060to_expr\u0060 and \u0060rust/lance-index/src/scalar.rs:441\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":"rust/lance-geo/src/query.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b78107f34a27002733b886439c6f39ea5a87861c8846749c8dc013f156c2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-geo/src/rtree.rs:597-605 | rust/lance-index/src/scalar/bitmap.rs:782-792 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"4057867a0712e78d71d041f50b1d4a6ce2ff910b81e67b605a32d5e845c092ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-geo/src/rtree.rs:782-791 | rust/lance-index/src/scalar/btree.rs:2912-2921 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"883de120922bd307f5ab69b1be15cf2f4bc33d3e5c77c9fa2c6a8b4d36952579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-geo/src/rtree.rs:813-821 | rust/lance-index/src/scalar/btree.rs:2926-2933 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-geo/src/rtree.rs:813\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c1bff80644378356024f004e3e897d25ce373637e3b88af452988369a45832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/scalar/bitmap.rs:1327-1339 | rust/lance-index/src/scalar/btree.rs:3434-3444 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bitmap.rs\u0060 and \u0060rust/lance-index/src/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bitmap.rs:1327\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance-index/src/scalar/bitmap.rs:1341\u0060 calls \u0060results_are_row_addresses\u0060 and \u0060rust/lance-index/src/scalar/btree.rs:3446\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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ff388e98c8644a389dc1cce196af1547927b50fb8ca6ca90f62caa9f96e624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/bloomfilter.rs:502-511 | rust/lance-index/src/scalar/zonemap.rs:1103-1112 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bloomfilter.rs\u0060 and \u0060rust/lance-index/src/scalar/zonemap.rs\u0060 as WHOLE FILES: this scan already matched 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bloomfilter.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab6c452abf864c5b2a233fe60f4013938d6a2975d99af026b96f7e9fee60e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted.rs:251-256 | rust/lance-index/src/scalar/inverted/index/search.rs:19-24 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/index/search.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"229c33f1771bb801d6fc899a1bf8abbe3e7da3fa5c5950e8200efa01b9a8f1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance-index/src/scalar/inverted/compound.rs:1027-1037 | rust/lance-index/src/scalar/inverted/compound.rs:3334-3344 | rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs:508-518 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted/compound.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8802c84598beb5b1514ebf997a48f4fb1f2da3d91389f7b177ea37a29dcfecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/inverted/compound.rs:2432-2438 | rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs:407-413 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted/compound.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff5525bc795d1c15ff8ec3cc71e45d15730346b67ccd44974b18d938bad0cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted/compound.rs:2470-2475 | rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs:452-457 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted/compound.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e4a3501ad1c6268753165339c3a8200101ae1d69b9b098f113b28f8f73e8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-index/src/scalar/inverted/compound.rs:2610-2615 | rust/lance-index/src/scalar/inverted/compound.rs:2883-2888 | rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs:586-591 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/inverted/compound.rs\u0060 and \u0060rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"rust/lance-index/src/scalar/inverted/compound.rs"},"region":{"startLine":2610}}}],"partialFingerprints":{"codehealthFindingId/v1":"423665119c23943449d7cd6b70b2375da79c11367b68903c4214383889f895f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance-index/src/scalar/inverted/encoding.rs:417-423 | rust/lance-index/src/scalar/inverted/impact.rs:573-579 | rust/lance-index/src/scalar/inverted/index/posting_builder.rs:113-119 \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":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd794385b2e8b083d5897a2e5c3ff62bfe390d6b0cddfdfed80060428920d02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/inverted/query.rs:447-453 | rust/lance/src/dataset/mem_wal/index/fts.rs:659-665 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-index/src/scalar/inverted/query.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d191ff0ed11c03a4fca9652263db4e463468e2c77f515bdde6cfb617af41a65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-io/src/scheduler.rs:81-87 | rust/lance-io/src/scheduler/lite.rs:282-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33d83d8bbf0c30caec4a84020e52cd66d166bcf054f813c6f85082a5931825e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-io/src/uring/current_thread.rs:416-421 | rust/lance-io/src/uring/reader.rs:265-270 \u2014 before extracting anything, compare \u0060rust/lance-io/src/uring/current_thread.rs\u0060 and \u0060rust/lance-io/src/uring/reader.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/uring/current_thread.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9b3de67dc588aeb637b8133c799c3927599638ca6395620ee23b75cebbbb2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-linalg/src/distance/cosine_u8.rs:101-108 | rust/lance-linalg/src/distance/l2_u8.rs:72-79 \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":"rust/lance-linalg/src/distance/cosine_u8.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"751d5d1371fcaad53a41aa16425e27f095f931e459b76f136e7c3c907b847b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-namespace-impls/src/credentials/aws.rs:299-303 | rust/lance-namespace-impls/src/credentials/azure.rs:237-241 | rust/lance-namespace-impls/src/credentials/gcp.rs:757-761 \u2014 before extracting anything, compare \u0060rust/lance-namespace-impls/src/credentials/aws.rs\u0060 and \u0060rust/lance-namespace-impls/src/credentials/gcp.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/aws.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a1115eddc3de1ec98f3bcb5259c9841e8f3830a44b1089c1dcea4d8a1e655c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-select/src/mask.rs:425-430 | rust/lance-select/src/mask/nullable.rs:267-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-select/src/mask.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e4cfc1e952eb9fae864465a8efb61b7fc91cd379bf0140e48478a6cfaacee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:997-1003 | rust/lance/src/dataset/mem_wal/scanner/builder.rs:851-857 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/builder.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b330f70e19cef885d73cf352726292edf813add122ca3171411575b1bf6dd86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs:624-630 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs:369-375 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fcbcd7d3657d66952b193ec56b22634356d3a94babb0090cd6b34397614d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs:300-306 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs:736-742 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scalar_index.rs:512-518 | rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs:361-369 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs\u0060 and \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9af12377a4aa187bd24f93194ed33ae15b18c24809b386820b3b97195d48e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:4332-4338 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:618-624 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1330870a353454a852ae38e26ecc0472bb5327e556ab5ff696e863d84f36d572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): java/lance-jni/src/blocking_dataset/conversions.rs:168-181 | java/lance-jni/src/blocking_scanner.rs:825-838 | java/lance-jni/src/file_reader.rs:85-89 | java/lance-jni/src/file_writer.rs:51-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/blocking_dataset/conversions.rs:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_dataset/conversions.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3944e1f5585a14b8d11abb3d05a7a24ce9d81cb1db999b2fea11de0209309919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-datafusion/src/numeric_coercion.rs:673-682 | rust/lance-datafusion/src/signed_zero.rs:255-264 \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":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"0703dd56192adc03c6effe6d6e4e28375ef643ddb35f3ae73e2280eb92fddd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/list.rs:115-119 | rust/lance-encoding/src/encodings/logical/map.rs:107-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/list.rs:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/list.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc60f0325203dff3b9b855e5855c899f24fa66bdad86b40a85e79600bcae6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/list.rs:196-202 | rust/lance-encoding/src/encodings/logical/map.rs:163-169 \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":"rust/lance-encoding/src/encodings/logical/list.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6a885a576583c97a8972bd49065c7897a0d898afe9f656c92c8e286313c3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): rust/lance-index/src/scalar/bitmap.rs:2711-2720 | rust/lance-index/src/scalar/btree.rs:4401-4410 | rust/lance-index/src/scalar/label_list.rs:1159-1168 | rust/lance-index/src/scalar/ngram.rs:2164-2173 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bitmap.rs\u0060 and \u0060rust/lance-index/src/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bitmap.rs:2711\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":2711}}}],"partialFingerprints":{"codehealthFindingId/v1":"844578ddfd721873d9a86ac397fac2cdacabacb2a96e7c50dda27af068835eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance-index/src/scalar/bitmap.rs:2762-2768 | rust/lance-index/src/scalar/btree.rs:4455-4461 | rust/lance-index/src/scalar/label_list.rs:1211-1217 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bitmap.rs\u0060 and \u0060rust/lance-index/src/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bitmap.rs:2762\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7661ae3afadc00502c4f0c5c387e91824511e43f575a015cb203f25f058f48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-index/src/scalar/inverted/cross_column.rs:188-193 | rust/lance-index/src/scalar/inverted/wand/doc_source.rs:156-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/cross_column.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"00273f32f765ebbdce6aeea74a2859eefa999ebe2f84f42d6ee49c4d97e5a80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/vector/sq/storage.rs:178-182 | rust/lance-index/src/vector/storage.rs:1516-1520 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/sq/storage.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":"rust/lance-index/src/vector/sq/storage.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"d340605412204961b945b52af88911ed525bb4952083e691039f4f0792224123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-linalg/src/distance/dot.rs:548-552 | rust/lance-linalg/src/distance/l2.rs:589-593 \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":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"159c08b92241389aa333450b6bde2c289727b6bdda85f4e2e4ebe9f8199e3199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:1822-1832 | rust/lance/src/index/vector/ivf/v2.rs:2947-2957 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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, \u0060rust/lance/src/index/vector/ivf/v2.rs:2959\u0060 calls \u0060total_partitions\u0060, \u0060num_partitions\u0060 and \u0060rust/lance/src/index/vector/ivf.rs:1834\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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4a6faf4a58e2529152f9558dcdf67a9a2ec132a86b4f38169e51bdc9f5405b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/gcp.rs:702-728 | rust/lance-namespace-impls/src/credentials/gcp.rs:788-812 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:702\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:786\u0060 calls \u0060normalize_workload_identity_audience\u0060 and \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:700\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":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"822be636dcb53f11319db8bbf1f5043c605b4815a5edb96a2c34321aaab67e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): java/lance-jni/src/dispatcher.rs:108-124 | java/lance-jni/src/dispatcher.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 \u0060java/lance-jni/src/dispatcher.rs:108\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/dispatcher.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a21122c457873a335c229f2a3cca856ba40c02303f3d1d71867212d7c07dd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/lance-datafusion-exec/src/chunker.rs:331-346 | rust/lance-datafusion-exec/src/chunker.rs:427-442 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/chunker.rs:331\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/chunker.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"922bf1faf38d07bf735da9e1a3ed736f5acee59dc42f8ba6b704472a360383b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2489-2503 | rust/lance-namespace-impls/src/dir/manifest.rs:2867-2881 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:2489\u0060 it does not close everything it opens, so those exact 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2585671bf9c449adb0f15410b2e7671101c826729dd15ca49f8de30937b26383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/index/loading.rs:1203-1216 | rust/lance/src/index/loading.rs:1329-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/loading.rs:1203\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/loading.rs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc96373cfac6c09a42fa1445cb2697e226ddaee22947d9a1c21644c6e907b175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/gcp.rs:288-302 | rust/lance-namespace-impls/src/credentials/gcp.rs:445-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/gcp.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":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2fc465995f37ddb493721a1ca868fb2f8e83f8a8b788dd9acdead6dfa652e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/azure.rs:420-430 | rust/lance-namespace-impls/src/credentials/azure.rs:475-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/azure.rs:420\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3724315d64b61e225d085acd6b34bd8979570d816ea64a3f4988d8c6875d13df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): java/lance-jni/src/transaction.rs:1811-1824 | java/lance-jni/src/transaction.rs:1825-1838 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"5167d86d86433527113621b61695328a38a7e8a3d365df806e5bbe4879722b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance-table/src/transaction/manifest_build.rs:2240-2253 | rust/lance-table/src/transaction/manifest_build.rs:2267-2280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/transaction/manifest_build.rs:2240\u0060 it begins part-way through the construct above it, so those exact 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":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88ad25afe0502edce65ab6db1be430d070fb8cf01120eb8584ebdcb1500618e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): java/lance-jni/src/schema.rs:256-269 | java/lance-jni/src/schema.rs:284-297 | java/lance-jni/src/schema.rs:314-327 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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, \u0060java/lance-jni/src/schema.rs:300\u0060 calls \u0060unwrap_or\u0060, \u0060new_string\u0060 and \u0060java/lance-jni/src/schema.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":"java/lance-jni/src/schema.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f27b8cf45b0cb929354e66bec656b9e2e83cb45074e517ce6471f25b095359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/exec/delete.rs:148-161 | rust/lance/src/dataset/write/merge_insert/exec/write.rs:627-640 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs\u0060 and \u0060rust/lance/src/dataset/write/merge_insert/exec/write.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/write/merge_insert/exec/delete.rs:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/exec/delete.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b026a9eb1485e200efed7f62c35149732e75ec2dcc55981746810ccff3d371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-io/src/object_store/throttle.rs:416-428 | rust/lance-io/src/object_store/throttle.rs:477-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/throttle.rs:416\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbd3ca48188fdd8da73ae1d2e0013975b8dfdb0414ff0229ef8d7433eba640f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): rust/lance/src/io/exec/fts/flat_match.rs:165-177 | rust/lance/src/io/exec/fts/flat_match.rs:707-719 | rust/lance/src/io/exec/fts/match_query.rs:131-143 | rust/lance/src/io/exec/fts/phrase.rs:114-126 \u2014 before extracting anything, compare \u0060rust/lance/src/io/exec/fts/match_query.rs\u0060 and \u0060rust/lance/src/io/exec/fts/phrase.rs\u0060 as WHOLE FILES: this scan already matched 13 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/flat_match.rs:165\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/flat_match.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e44a56984bae576aba902afbe20825e1fcc1f8f3ba831905ef681eaabc4e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): rust/lance/src/dataset.rs:4621-4639 | rust/lance/src/dataset/fragment.rs:2680-2699 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset.rs:4621\u0060 it does not close everything it opens, so those exact 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":"rust/lance/src/dataset.rs"},"region":{"startLine":4621}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89548d4c5fcfbd641d2cab724332731625383fc1d7be826a049a94bd0277142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-table/src/rowids.rs:1194-1206 | rust/lance-table/src/rowids/version.rs:580-592 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-table/src/rowids.rs:1194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff7d4d62795ba3c2fdd7b748cb836028db8ad531b377998af4e8f0d7547cc61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance/src/index/append.rs:2225-2237 | rust/lance/src/index/scalar/inverted.rs:1052-1064 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/index/append.rs:2225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e2471803503ab5a6af994a07313632899bf0ee5b9d7de4c100c924d2d9bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/lance-index/src/scalar/bitmap.rs:823-835 | rust/lance-index/src/scalar/btree.rs:2761-2773 \u2014 before extracting anything, compare \u0060rust/lance-index/src/scalar/bitmap.rs\u0060 and \u0060rust/lance-index/src/scalar/btree.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060rust/lance-index/src/scalar/bitmap.rs:823\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd99b7b473aef7108d04be82b665dc168e51459f77d41af91795d68313982f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/azure.rs:403-414 | rust/lance-namespace-impls/src/credentials/azure.rs:516-527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/azure.rs:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab50b0e61765e5ea63231353ba30568e37bed20be7fa7ef3fb4f0b86e9240ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector.rs:984-995 | rust/lance/src/index/vector.rs:1421-1431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:984\u0060 it begins part-way through the construct above it, so those exact 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, \u0060rust/lance/src/index/vector.rs:1433\u0060 calls \u0060is_some\u0060 and \u0060rust/lance/src/index/vector.rs:997\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":"rust/lance/src/index/vector.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"8981a64826670819f28b55887f12f74fa32032a6523936bc58b0a5a812cce172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): rust/lance/src/io/exec/fts/compound.rs:1017-1034 | rust/lance/src/io/exec/fts/compound.rs:1670-1688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/fts/compound.rs:1017\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"644f04f308eb39ccb666b571fc5c13ec6b2442f3efffff49e7288dded886b2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): rust/lance-namespace-impls/src/credentials/azure.rs:404-415 | rust/lance-namespace-impls/src/credentials/azure.rs:461-470 | rust/lance-namespace-impls/src/credentials/azure.rs:517-528 | rust/lance-namespace-impls/src/credentials/gcp.rs:1107-1115 \u2014 before extracting anything, compare \u0060rust/lance-namespace-impls/src/credentials/azure.rs\u0060 and \u0060rust/lance-namespace-impls/src/credentials/gcp.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/azure.rs:404\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc785a7f20aaddf952ad883e5836555da98694d4080bdcbd01b61b79815efb27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-io/src/object_store/providers/oss.rs:139-150 | rust/lance-io/src/object_store/providers/tos.rs:145-156 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/oss.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/tos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/oss.rs:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecec20b9f31cbc760a6d2ecde5ec5095efb4c4e7366c9229d4a16930b672a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/overlay.rs:593-601 | rust/lance/src/dataset/overlay.rs:635-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/overlay.rs:593\u0060 it begins part-way through the construct above it, so those exact lines 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":"rust/lance/src/dataset/overlay.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28057346cd324aeb0a97cbf5e88132da98bdece985cc58b1da2980e930d9ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/lance/src/io/exec/fts/compound.rs:1025-1035 | rust/lance/src/io/exec/fts/compound.rs:1678-1689 | rust/lance/src/io/exec/minhash.rs:193-203 \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 \u0060rust/lance/src/io/exec/fts/compound.rs:1025\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it 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, \u0060rust/lance/src/io/exec/minhash.rs:205\u0060 calls \u0060clone\u0060 and \u0060rust/lance/src/io/exec/fts/compound.rs:1036\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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11583d9c3bfef9a53a82d73c534aa6e6c00fbac709a20919d812b56329e8987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance-table/src/io/commit/dynamodb.rs:552-563 | rust/lance-table/src/io/commit/dynamodb.rs:582-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-table/src/io/commit/dynamodb.rs:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit/dynamodb.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fc30d70fae9d0da2fb616d7829bc056c6b31e8c4bb1eaa4303e62668e926dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:62-71 | rust/lance-encoding/src/encodings/physical/alp/restore.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4645c23365dd45207ac53a131378984e671cfd92228ed3763f50496bf43ce50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:375-384 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:386-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:375\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bff6642d4d6775119351d1ed8ac4f7aa1940572b3c79ffa43dabb40506c108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/dataset/scanner/fts.rs:715-725 | rust/lance/src/dataset/scanner/fts.rs:756-766 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/scanner/fts.rs:715\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96bb537e904366a63a9c3d713843ede4c5e3756126933498950e7cfef0fe9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/append.rs:2231-2241 | rust/lance/src/index/scalar/label_list.rs:162-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/append.rs:2231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/append.rs"},"region":{"startLine":2231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd41838ce208996cf6fed029023f7e7735b767500bc08af882051fe77232f73e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/gcp.rs:740-747 | rust/lance-namespace-impls/src/credentials/gcp.rs:821-831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/gcp.rs:740\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/gcp.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d1e1a610ff1067b8732fef28e3df391eadd5b5f8bcfd0e5c7f016b4778c36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance-index/src/vector/pca.rs:376-386 | rust/lance-index/src/vector/pca.rs:387-397 \u2014 both copies are in the same file, so extract the block 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, \u0060rust/lance-index/src/vector/pca.rs:374\u0060 calls \u0060decode_f32_tensor\u0060 and \u0060rust/lance-index/src/vector/pca.rs:386\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pca.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7c9f93591ebe14f2b1c2e075479b7ec6bcbfcc2474290a39ba4f43dba5e84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:4730-4740 | rust/lance/src/index/vector/ivf.rs:4787-4797 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:4730\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be21a1a4a52e7c9d5197b47fb4b120e39d8875d201376a1ad02f1b24e2dc1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:2097-2105 | rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:2256-2266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse.rs:2097\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse.rs"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcb1a6025d6035d7ab97f8e3569ee0db19890948e6186d8c46b4d28fcc22895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/lance-jni/src/namespace.rs:329-339 | java/lance-jni/src/namespace.rs:548-557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:329\u0060 it begins part-way through the construct above it, so those exact lines 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":"java/lance-jni/src/namespace.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"114d6e809d8d3b57c2af7e4d3f65805f9a1af83525f90fb6488ece06d31cb0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/vector.rs:1055-1065 | rust/lance/src/index/vector.rs:1543-1552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1055\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c748de18278a2ba9c53cd255538b13bc767edd7aa8954854015de132fb1b697a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-core/src/cache/mod.rs:1003-1012 | rust/lance-core/src/cache/mod.rs:1150-1159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-core/src/cache/mod.rs:1003\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/mod.rs"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d17feb5891d0405f8908d3d63196d358b7943aa6f31547d6ced63c0006b86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): java/lance-jni/src/namespace.rs:268-277 | java/lance-jni/src/namespace.rs:313-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 \u0060java/lance-jni/src/namespace.rs:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"51954ad5849b4b7b5bc357d8c74db9084563666abe6762e6c8dd22ae0477752c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/vector/pq/storage.rs:450-459 | rust/lance-index/src/vector/sq/storage.rs:231-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10e8b41bb207dd1e8258db6ed5399d1cf9eba6ecb8fccf2e9608d0c7559c8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance/src/index/frag_reuse.rs:1448-1457 | rust/lance/src/index/frag_reuse.rs:1995-2004 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/frag_reuse.rs:1448\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/index/frag_reuse.rs:2006\u0060 calls \u0060Some\u0060 and \u0060rust/lance/src/index/frag_reuse.rs:1459\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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa5036771d22ca064a881184d86570412fdf50ab07398ee5a0e3b28c0cd375f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-index/src/scalar/inverted/encoding.rs:367-376 | rust/lance-index/src/scalar/inverted/encoding.rs:454-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/encoding.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfc536d330a0fa83b6edc392d8f062b2c1e546239e359cd5010430e7111a117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp/restore.rs:209-216 | rust/lance-encoding/src/encodings/physical/alp/restore.rs:259-268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/alp/restore.rs:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp/restore.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b96920bb53293bb2b916453ebf81f6b6570c9a1365af0999801817d40479c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-namespace-impls/src/credentials/aws.rs:213-222 | rust/lance-namespace-impls/src/credentials/gcp.rs:549-558 \u2014 before extracting anything, compare \u0060rust/lance-namespace-impls/src/credentials/aws.rs\u0060 and \u0060rust/lance-namespace-impls/src/credentials/gcp.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/credentials/aws.rs:213\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/aws.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e775b4869ac5f4b9d77964a96eb0101b1426d755f6c17814a9bb8678cc76e515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/delta.rs:201-210 | rust/lance-encoding/src/encodings/physical/delta.rs:217-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/delta.rs:201\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/delta.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a34d891311e5af4cf4576155a9d39fd0698fca50ddd67e75c227537541fb622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-encoding/src/compression.rs:1479-1488 | rust/lance-encoding/src/compression.rs:1969-1973 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/compression.rs:1479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e6e17d491d4073c310e4e3b61cd1a414966ea06d204b1dde76bb10bf27c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): python/src/namespace.rs:154-163 | python/src/namespace.rs:901-910 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/namespace.rs:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3809c8e2b86bb0d6febf77aa8e2eaab0e095dd96199d289196c31cf386d76ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/io/exec/knn.rs:1682-1690 | rust/lance/src/io/exec/knn.rs:1696-1704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/io/exec/knn.rs:1682\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fce0865d036bad885a16fffa0fb4a246698ee1ab8d0a66c9e791dd3797b24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-io/src/object_store/providers/oss.rs:30-38 | rust/lance-io/src/object_store/providers/tencent.rs:30-37 \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 \u0060rust/lance-io/src/object_store/providers/oss.rs:30\u0060 it begins part-way through the construct above it, so those exact lines 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 \u0060base_path\u0060 to \u0060\u0026Url\u0060 in one and \u0060Url\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":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5114961ac02f5ebda398989b80c52df0e967bde2505da30fc5e735a94717a8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): java/lance-jni/src/index_progress.rs:53-61 | java/lance-jni/src/index_progress.rs:104-112 | java/lance-jni/src/index_progress.rs:128-136 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/index_progress.rs:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/index_progress.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b16e7f18c6a6c114ab5e59a317b48cf6a6fac7cf2561f6a08d36ee4fa4a011d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance/src/dataset/update_join.rs:1269-1277 | rust/lance/src/dataset/update_join.rs:1342-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. 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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2306a6289a68177c38cb3be6d6ef6fda385e2d79a703cbe7f6a5d97a72897b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/blob.rs:495-502 | rust/lance/src/dataset/blob/write.rs:1229-1237 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/blob.rs:495\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/blob.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25346fffdea0257274a6fa25848ab74d6fd91fad7b997705198d4df0114826b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-io/src/object_store/providers/oss.rs:117-125 | rust/lance-io/src/object_store/providers/tos.rs:123-131 \u2014 before extracting anything, compare \u0060rust/lance-io/src/object_store/providers/oss.rs\u0060 and \u0060rust/lance-io/src/object_store/providers/tos.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/oss.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":"rust/lance-io/src/object_store/providers/oss.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"551acf16692754e0bc9353c0b855dd733beac8472192cbbdc4b5dd634af8df16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-io/src/object_store/providers/aws.rs:192-200 | rust/lance-io/src/object_store/providers/gcp.rs:218-226 \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 \u0060rust/lance-io/src/object_store/providers/aws.rs:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/providers/aws.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e409ebaf8ed1fbef0b70679a5a5f1b7092df5d29a6f6e0259a604636ff457d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): java/lance-jni/src/namespace.rs:1575-1583 | java/lance-jni/src/namespace.rs:2527-2535 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/lance-jni/src/namespace.rs:1575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/namespace.rs"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"4045853007113e41af3fc98ba0dcd4329bef9ad48a55ec00c0bdea13e9b11151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/lance-datafusion/src/udf/element.rs:75-83 | rust/lance-index/src/scalar/list_element.rs:649-657 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-datafusion/src/udf/element.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion/src/udf/element.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eb28ee8aea1437c9100221029438a384606b53cd020726f46fc594072ce435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/update_join.rs:293-299 | rust/lance/src/dataset/update_join.rs:311-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/update_join.rs:293\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a3414633dd7a8b0b972f8ad592bfa542e2d4847b00a4a5b38f5128411acb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/vector.rs:1143-1150 | rust/lance/src/index/vector.rs:1622-1629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b1fcc24700fc26d105b32a067f5b2557803f2419d2c22627a63fa125a7b643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:529-536 | rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:538-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2cd5a18bd892dd3e5f22ce09fc687af2e8597d295fea1b8d309914b1f449cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/bq/pairwise.rs:617-624 | rust/lance-index/src/vector/bq/pairwise.rs:704-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"31afddb60103f70ee7f3892ab69a2da6fe09fad117163d67d336592e6bc04dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:354-361 | rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:391-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs:354\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d385ecdf41bf6c3a0a01d8ad8ccc4a22087f1c696c25e49f8ccd2df7444f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/mem_wal/wal.rs:1051-1058 | rust/lance/src/dataset/mem_wal/wal.rs:1733-1738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/wal.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d6313aec7d47dd35587204b0a94c2b5f0b0509ecb27f393a865a19a16f460d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2854-2861 | rust/lance-namespace-impls/src/dir/manifest.rs:3188-3195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:2854\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2854}}}],"partialFingerprints":{"codehealthFindingId/v1":"498983211aad1cf0034fe20ab9a59af5207971fa25f76e3158a28a4adf78f7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-file/src/versions/v2_2/reader.rs:117-124 | rust/lance-file/src/versions/v2_3/reader.rs:238-245 \u2014 \u0060rust/lance-file/src/versions/v2_2/reader.rs\u0060 and \u0060rust/lance-file/src/versions/v2_3/reader.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v2_2/reader.rs:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060layout\u0060 to \u0060\u0026pb21::PageLayout\u0060 in one and \u0060\u0026metadata::PageLayout\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":"rust/lance-file/src/versions/v2_2/reader.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96a07a400661713192bc9f2eebabf3cd8d1d2f603f5abb6f5a3a9167b4321f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/vector.rs:1104-1111 | rust/lance/src/index/vector.rs:1592-1599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector.rs:1104\u0060 it does not close everything it opens, so those exact 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":"rust/lance/src/index/vector.rs"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a911adceb6d06be178952718cdf1f5eb5921a994491c353085a3bc89196e19d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-namespace-impls/src/rest.rs:1409-1416 | rust/lance-namespace-impls/src/rest.rs:1466-1473 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060DescribeTableIndexStatsRequest\u0060 in one and \u0060DropTableIndexRequest\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0325a916a7ee4eaa153de084c6725fa5dd8b9d900036653bc9ad5d6f1e6ed61e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-namespace-impls/src/dir/manifest.rs:2704-2711 | rust/lance-namespace-impls/src/dir/manifest.rs:3783-3790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-namespace-impls/src/dir/manifest.rs:2704\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2704}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d3eee1de600db50628944c9566dde73f01d938e379e697b3901aa12d287163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): python/src/dataset/write.rs:399-406 | python/src/dataset/write.rs:416-423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/dataset/write.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":"python/src/dataset/write.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"4935d1cad5e5b858af063dcc40a1f5fdcc12302c74c7e293c4af3e0e2b6fa85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:5220-5227 | rust/lance/src/index/vector/ivf.rs:5527-5534 \u2014 both copies are in the same file, so extract the block 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5220}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bef3c6b747085fccc2d80a0e611ea815f8b216652d00db2be7f4a7b0f62b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index-core/src/remapping.rs:203-210 | rust/lance-index/src/scalar/inverted/compound.rs:4301-4308 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index-core/src/remapping.rs:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index-core/src/remapping.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"910329ae8e4f43eeb02b48eccd9f68048b4b86c0c31dd84ec0a439c555382211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/lance/src/dataset.rs:1259-1266 | rust/lance/src/dataset.rs:1319-1326 | rust/lance/src/dataset/builder.rs:151-158 \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 \u0060rust/lance/src/dataset.rs:1259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"557974381f4a6f6d5bf135a6662aa98b486555ddb4a8a2050cbb26dc15b72446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/lance-index/src/vector/bq/builder.rs:1099-1106 | rust/lance-index/src/vector/sq.rs:206-213 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance-index/src/vector/bq/builder.rs:1099\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/builder.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"930484bab53378995546d43572a6225c08baf7853177efef61700b04049884c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-namespace-impls/src/dir/builder.rs:272-278 | rust/lance-namespace-impls/src/dir/builder.rs:319-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/dir/builder.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fbe790704ae06a138e45c150b4bd7e76dd697c7332139e7311a824b898ecdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance/src/dataset/blob/rewrite.rs:469-475 | rust/lance/src/dataset/blob/rewrite.rs:486-492 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/blob/rewrite.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9b4a1cb12088be6b504068d30c593985e6187642d8f80afa7742fc3b67ecc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance-arrow/src/lib.rs:1123-1129 | rust/lance-arrow/src/lib.rs:1145-1151 | rust/lance-arrow/src/lib.rs:1167-1173 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-arrow/src/lib.rs:1123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00c905d684ae5fa6eec40688b72fcb438f2e7371c53c80d4069ac4eddc29a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/fmindex.rs:1494-1500 | rust/lance-index/src/scalar/fmindex.rs:1505-1511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ef05828e240e5669a2b38caa1b4f53e783bebbfba5db8914b9e82be49f22d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/lance/src/dataset/index/frag_reuse.rs:684-690 | rust/lance/src/index/frag_reuse.rs:2339-2345 | rust/lance/src/index/frag_reuse.rs:2383-2389 \u2014 before extracting anything, compare \u0060rust/lance/src/dataset/index/frag_reuse.rs\u0060 and \u0060rust/lance/src/index/frag_reuse.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. 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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f344697b57b21ad15e8509de9d551d158c71b101da570ac7bc74f9464b6bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-namespace-impls/src/dir/manifest.rs:2438-2444 | rust/lance-namespace-impls/src/dir/manifest.rs:2471-2477 | rust/lance-namespace-impls/src/dir/manifest.rs:2851-2856 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it 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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedf9efd4a340dc72b341ab45ef93f3a3dcf4af541b62bbe9dd30f6819e160ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-arrow/src/schema.rs:147-153 | rust/lance-arrow/src/schema.rs:164-170 \u2014 both copies are in the same file, so extract the block 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":"rust/lance-arrow/src/schema.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6183216c18474e4b1fe5832c39087c108894375364feb4b9fea07e42caa96b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/dataset/optimize.rs:271-276 | python/src/dataset/optimize.rs:395-401 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/src/dataset/optimize.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":"python/src/dataset/optimize.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"032908998a96a614fa776ee4d7182769b70bc15e683ce6845df12010064bca40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:319-324 | rust/lance/src/dataset/mem_wal/scanner/fts_search.rs:206-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs:319\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"340bc129ca463ef099899bc920b2f93b1819b9c737f30b935ed1159ddfb9904c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert/job.rs:584-589 | rust/lance/src/dataset/write/merge_insert/job.rs:1081-1086 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"8059019d8b3d226ddc0ab8e4ea718b9570c13a034708a99e854bab42e596f0e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-namespace-impls/src/rest.rs:976-981 | rust/lance-namespace-impls/src/rest.rs:998-1003 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060AlterTableBackfillColumnsRequest\u0060 in one and \u0060RefreshMaterializedViewRequest\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d468644a6e839533decfe3ef757cb583ed3d57904d675f75e35b404a13a4a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-io/src/object_store/local_staging.rs:161-166 | rust/lance-io/src/object_store/local_staging.rs:185-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/local_staging.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbec5330b056dc707331b2046cffd86689df3fb2660d2ceba276e358314faf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/index/vector/ivf/streaming_hamming.rs:505-510 | rust/lance/src/index/vector/ivf/streaming_hamming.rs:537-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 \u0060rust/lance/src/index/vector/ivf/streaming_hamming.rs:505\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/streaming_hamming.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"872fa0ddbfcbe5611069ff9d71403ee76a7a284f2c14d40e75545c6a67f96816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/compression/fsst/src/fsst.rs:290-295 | rust/compression/fsst/src/fsst.rs:305-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/compression/fsst/src/fsst.rs:290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b777e9a481bc0376a787799ac532e3ed4d8a680d5ba9db7a99da517f9b21b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-io/src/object_store/providers/aws.rs:227-231 | rust/lance-io/src/object_store/providers/gcp.rs:236-240 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-io/src/object_store/providers/aws.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":"rust/lance-io/src/object_store/providers/aws.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a40d4313d6cef1563feed9374cee85054202169d6d72f26ed427e7e30b037d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): rust/lance-namespace-impls/src/rest.rs:1016-1020 | rust/lance-namespace-impls/src/rest.rs:1082-1086 | rust/lance-namespace-impls/src/rest.rs:1107-1111 | rust/lance-namespace-impls/src/rest.rs:1189-1193 | rust/lance-namespace-impls/src/rest.rs:1530-1534 | rust/lance-namespace-impls/src/rest.rs:1774-1778 | rust/lance-namespace-impls/src/rest.rs:1862-1866 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ListNamespacesRequest\u0060 in one and \u0060ListTablesRequest\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf841237f922ea1c8ba2686822d2a83f56ce30dfcf1b2c3c6f8f6fbd297ba3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-namespace-impls/src/rest.rs:1246-1250 | rust/lance-namespace-impls/src/rest.rs:1628-1632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060InsertIntoTableRequest\u0060 in one and \u0060UpdateTableSchemaMetadataRequest\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":"rust/lance-namespace-impls/src/rest.rs"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e629da8ab466ab26834d72c696517d471523a2f19b0d3735c269e4cde8b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): java/lance-jni/src/otel.rs:202-212 | python/src/otel.rs:257-267 \u2014 before extracting anything, compare \u0060java/lance-jni/src/otel.rs\u0060 and \u0060python/src/otel.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"java/lance-jni/src/otel.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"23710dd4d02c2e8524e3303e7d7a8ed808d85c9827a4783f538593942f94f4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/dataset.rs:2370-2376 | python/src/dataset.rs:2422-2428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/dataset.rs"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2f14a34bd5adaf6bb96a8c79174ade9abc9dfafdaf0a932357f292abf39366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): python/src/namespace.rs:465-471 | python/src/namespace.rs:1212-1218 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"835d585fea4574bf99773dc9d681f11a430d95e8d1aee95fa82b888c428f4518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:212-217 | python/src/namespace.rs:959-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf32500a73174f6dcf0641b85cb125dbb4c30656122ae127bed9e746217795d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:224-229 | python/src/namespace.rs:971-976 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07a3b5dd2d74e571828c3c1f5abffa1bd078551f6c3243c8a07d03778795866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:246-251 | python/src/namespace.rs:993-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4a206019dd8cdb8796ca651661f93cf04d864f093b918cd25407648a9d20fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:258-263 | python/src/namespace.rs:1005-1010 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cc676cee4a27c51c5da0e1b9e9e87f44a0bcc560bdb973ed5665e16cb475f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:270-275 | python/src/namespace.rs:1017-1022 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e2a366d2a7ab358581278f3d15c07902e2bf4b4f5af6a733682de01403d754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:290-295 | python/src/namespace.rs:1037-1042 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57ec5f4a0203e2af5acfba85046c3d0f32c671f46e075157ed489793cf92715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:302-307 | python/src/namespace.rs:1049-1054 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"0426c895a4281c905c9d09c8f261dcbbee84e6b852034ba60925e979814493f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:354-359 | python/src/namespace.rs:1101-1106 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"791193a5fb8d353d1c0f78c7b083d99bcd1e659a8f24f96fda9b7f01c73e9dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:366-371 | python/src/namespace.rs:1113-1118 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1f773beaefc4acd4ab2b28fb157a14284f173a7ced0590e895dea6752144b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:378-383 | python/src/namespace.rs:1125-1130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8134518d381f97359e1ba04edc9c1b247ad91a8604de32da508f7b1c703f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:390-395 | python/src/namespace.rs:1137-1142 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8db93cb82afbcdc9e38d05fcc0c5ac2cb7790c1afaba8ebb872c8e8d883aabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:404-409 | python/src/namespace.rs:1151-1156 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b825e7a8f1a69acbd23d15836a37bfa0661c51bdaaeb79e95b9d16689c9ee74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:416-421 | python/src/namespace.rs:1163-1168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"8093e8eed1c90eecedf8d00d0ffb94ca54cbc490f96d3ac13e82a3e0a2ea75e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:428-433 | python/src/namespace.rs:1175-1180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b73c455f0ddce135a33e7fb9dabc88f9be04b7028eaf8cbbb19857b44207d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:478-483 | python/src/namespace.rs:1225-1230 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a8a3b0023ca98756611717b729bef4a3c891e921a8cefd1ce6ff8227b2acf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:490-495 | python/src/namespace.rs:1237-1242 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf868f2d77b2de24f8e0edcd18b9be8f5556e1d574b975c78b9974aeb902cabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:516-521 | python/src/namespace.rs:1263-1268 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea2dbbc1f7f25470eab830a761f292fbeb3cf964772c717777d82a835551bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:528-533 | python/src/namespace.rs:1275-1280 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2fc25a9a2c6ca8894e676856f5eff0382fb069aa4a555f9d1847c5ced6b0a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:540-545 | python/src/namespace.rs:1287-1292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0144058e160cadca326bbeaa12b269ec04478c87e21dd467a69ffdaf89510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:554-559 | python/src/namespace.rs:1301-1306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"40753109ad3913893e38ffc44ba14373bce807506cf66f14783b7ad274afa5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:566-571 | python/src/namespace.rs:1313-1318 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"633e78091d49030dc7faabb6e7cd9de540efb36c20a5da86e4735c95d813f492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:580-585 | python/src/namespace.rs:1327-1332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"364963869356e9c0ae00e303e18fb169ba0bd52767b517af35bb0bdab176d392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:592-597 | python/src/namespace.rs:1339-1344 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"34adc1f9cbdc8aa4f6503ae1d0933582e17a046d3ce19c1e7247b49cb94c0ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:606-611 | python/src/namespace.rs:1353-1358 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ce1a1110480e58ca7595cb365b257f5d18350b26fa11b23b3807dcfb9fe2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:618-623 | python/src/namespace.rs:1365-1370 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cf44a6afc2c1c1532b477e0a8ddc3d96c3eeee7ff74860a2d172f32dca48f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:630-635 | python/src/namespace.rs:1377-1382 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"8059b485950e460df031edfd3296d23c6221df90724c5a18baeffe235b82514f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:642-647 | python/src/namespace.rs:1389-1394 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83b9e9437c00fa1be460d9d2d0b0cf3cc8a0abd46b54a271cc9acef9fdf6955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:674-679 | python/src/namespace.rs:1421-1426 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4192f6902851ac285ea6302765eab89a1148f7f711ed6cf06dc36a7fbe07fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:686-691 | python/src/namespace.rs:1433-1438 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf009e9472697bb6bd862be0706846b38d7c078bebdd04f6a0852c78d8ec76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:698-703 | python/src/namespace.rs:1445-1450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f58e659df3ae2444943b2a8deb0dc26f3152e45d58330fbe0d8b9115d573d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:734-739 | python/src/namespace.rs:1490-1495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"38df32c603635a818f27a386007575b93c91dff985985c4c939ee894d6a1e53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:748-753 | python/src/namespace.rs:1504-1509 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"85aa3ad7c04257c73f1de5e64ddf24e20f7c4a5e60477e741dfa106a612ac2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:760-765 | python/src/namespace.rs:1516-1521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3c289712d1d82899cb121ecfa07049dcd3c1c922ae379c566cd453109b11c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:772-777 | python/src/namespace.rs:1528-1533 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e47c2e1911bf527db2ee8b16b62fadebf0cd0b397b3b484960c720ab5552e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:784-789 | python/src/namespace.rs:1540-1545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/namespace.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d2e473a2458d0f473e2bc7928a09b50afb76c41cdd67639b59c95bef699d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): python/src/namespace.rs:796-801 | python/src/namespace.rs:1552-1557 \u2014 both copies are in the same file, so extract the block 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":"python/src/namespace.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ddf7ce8cb6a137fde74d5a2417fd25c1181ce6701c8595858c26ab661935e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-arrow/src/json.rs:626-632 | rust/lance-arrow/src/json.rs:656-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-arrow/src/json.rs:626\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/json.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a906243d9bff505c8a46cfc8d3bb9b8fa747eae60b671a363da959c348dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-datafusion-exec/src/expr.rs:130-134 | rust/lance-datafusion-exec/src/expr.rs:156-160 | rust/lance-datafusion-exec/src/expr.rs:184-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-datafusion-exec/src/expr.rs:130\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance-datafusion-exec/src/expr.rs:155\u0060 calls \u0060Int32\u0060, \u0060Some\u0060, \u0060from\u0060 and \u0060rust/lance-datafusion-exec/src/expr.rs:183\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"525faf6514ae532738a77ac30dfba4620e55aef7b10eec84c906352b4449ecd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): rust/lance-datafusion-exec/src/expr.rs:143-149 | rust/lance-datafusion-exec/src/expr.rs:169-175 | rust/lance-datafusion-exec/src/expr.rs:260-266 | rust/lance-datafusion-exec/src/expr.rs:282-288 \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 \u0060rust/lance-datafusion-exec/src/expr.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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"17463f3f1dac1808361e50d3f171ea52c62ffc179b1a80a4bc76db454d3434b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): rust/lance-datafusion-exec/src/expr.rs:177-182 | rust/lance-datafusion-exec/src/expr.rs:208-213 | rust/lance-datafusion-exec/src/expr.rs:268-273 | rust/lance-datafusion-exec/src/expr.rs:290-295 | rust/lance-datafusion-exec/src/expr.rs:317-322 \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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b887bf3751504cdbd32e340d6017f92d430c4d2a65629e641be87406bb7464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): rust/lance-datafusion-exec/src/expr.rs:200-204 | rust/lance-datafusion-exec/src/expr.rs:231-235 | rust/lance-datafusion-exec/src/expr.rs:309-313 | rust/lance-datafusion-exec/src/expr.rs:340-344 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance-datafusion-exec/src/expr.rs:307\u0060 calls \u0060UInt64\u0060, \u0060Some\u0060, \u0060from\u0060 and \u0060rust/lance-datafusion-exec/src/expr.rs:338\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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6308842699014fe9ece00b36c42a06526810497fac4d41a56c068e074dc8fce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1047-1051 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1088-1092 | rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs:1106-1110 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fa14d067dd4d41b17d2b6b1de603edbd55269f9c5812f90605a80b4d4aa5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/alp.rs:541-545 | rust/lance-encoding/src/encodings/physical/alp.rs:614-618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5b9ccea539586e8e40d67492b6f1717813956aa7f7456a63950a289e1c7a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:449-455 | rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:541-547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-encoding/src/encodings/physical/byte_stream_split.rs:449\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bd80257e89ee7bf74f90b83220272613661206d2ba4ac0e3c2927201d4dabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-file/src/versions/v1/encoding/binary.rs:422-428 | rust/lance-file/src/versions/v1/encoding/plain.rs:433-439 \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 \u0060rust/lance-file/src/versions/v1/encoding/binary.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":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d32161fa9d20329cf240a1f1ae500d42e800e70930b688ad6e05455f8c2bf9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/lance-file/src/versions/v1/writer/mod.rs:419-424 | rust/lance-file/src/versions/v1/writer/mod.rs:436-441 | rust/lance-file/src/versions/v1/writer/mod.rs:455-460 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-file/src/versions/v1/writer/mod.rs:419\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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, \u0060rust/lance-file/src/versions/v1/writer/mod.rs:415\u0060 calls \u0060is_empty\u0060, \u0060data_type\u0060 and \u0060rust/lance-file/src/versions/v1/writer/mod.rs:451\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":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae2b12d409028378f0926e411ab663c419409ce77ee7a8418b86dfaaf182cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/lance-index/src/scalar/label_list.rs:388-394 | rust/lance-index/src/scalar/label_list.rs:396-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/label_list.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"73940ce088de27d3b142adf10c5a1cd4a16b90bedb7ffb5c9970ca73de9124cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/vector/bq/pairwise.rs:627-631 | rust/lance-index/src/vector/bq/pairwise.rs:713-717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/bq/pairwise.rs:627\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/bq/pairwise.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3b442c9e3177f070548ad71751c9e58f40401a5fc6f2a792f2b9d2c57fbfa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-index/src/vector/pq/pairwise.rs:463-467 | rust/lance-index/src/vector/pq/pairwise.rs:517-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance-index/src/vector/pq/pairwise.rs:463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/pairwise.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"933027933840f5c5951417f3309f0b957f44bbbe5b675b73c745629c8d4754c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance-jsonb/src/core/util.rs:424-428 | rust/lance-jsonb/src/core/util.rs:431-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/core/util.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eecd9719ebb9af7ed2c98c2c6aec67ed910dcf35549ba61583ddf7bd952ffbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance-linalg/src/simd/dist_table.rs:661-666 | rust/lance-linalg/src/simd/dist_table.rs:670-675 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/dist_table.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"233442ff26cd486c505a1abe6a265e7b399b235c3e98c0fabf38ff81c6868046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/bin/fm_contains_bench.rs:211-215 | rust/lance/src/bin/fm_index_tool.rs:65-69 \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 \u0060rust/lance/src/bin/fm_contains_bench.rs:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/bin/fm_contains_bench.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"679575802bf1573f1eb2d90957b84bd864b5d97edbcb2af816063ac10aa73342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs:385-389 | rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs:402-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs:385\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/index/arena_skiplist.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d72b26f4027a48a70b08dfc278a1b70a456843c588aad9cd5cf155d48732659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:1040-1044 | rust/lance/src/dataset/mem_wal/scanner/projection.rs:323-327 \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 \u0060rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:1040\u0060 it does not close everything it opens, so those exact 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, \u0060rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs:1039\u0060 calls \u0060carry_schema\u0060 and \u0060rust/lance/src/dataset/mem_wal/scanner/projection.rs:322\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":"rust/lance/src/dataset/mem_wal/scanner/point_lookup.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"14024ba18f356b9fb090dc71ae71da1c66a951725ed5a04422a0cc60d9a0dc96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/lance/src/dataset/write/merge_insert.rs:709-713 | rust/lance/src/dataset/write/merge_insert/job.rs:2683-2687 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"rust/lance/src/dataset/write/merge_insert.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3c948569b6d2ed88a4f29605ae40474080187436940ec37635e356cc1550da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/lance/src/index/vector/ivf.rs:4707-4712 | rust/lance/src/index/vector/ivf.rs:4755-4760 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/lance/src/index/vector/ivf.rs:4707\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":4707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1c050ee697d0d7c68123b214cf11e6c05833d2c1288a0175054fa61f60c611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:875-920 | java/src/main/java/org/lance/namespace/RestNamespace.java:782-827 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f56e813877e1598bd522748fdf203d54a43885cba6ac4cfc3c5acd301e1a63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): java/src/main/java/org/lance/ipc/AsyncScanner.java:70-95 | java/src/main/java/org/lance/ipc/LanceScanner.java:66-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060java/src/main/java/org/lance/ipc/LanceScanner.java:92\u0060 calls \u0060isCollectStats\u0060 and \u0060java/src/main/java/org/lance/ipc/AsyncScanner.java:96\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":"java/src/main/java/org/lance/ipc/AsyncScanner.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd8aa4954cac1082b16b004fe9149483d93e3b4452075a4c199178ab3cb39b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): java/src/main/java/org/lance/Fragment.java:327-342 | java/src/main/java/org/lance/Fragment.java:350-365 | java/src/main/java/org/lance/Fragment.java:401-416 | java/src/main/java/org/lance/Fragment.java:423-438 \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":"java/src/main/java/org/lance/Fragment.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f868014f34f943eb464ab46d449c7a7336ff16ec229daa06d23e11b1678d3ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): java/src/main/java/org/lance/Dataset.java:169-183 | java/src/main/java/org/lance/Dataset.java:311-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ec71b3ef9a89def65baf23967b2d2508b8c254da51a3d3e7a30cbdddde9c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): java/src/main/java/org/lance/WriteDatasetBuilder.java:493-507 | java/src/main/java/org/lance/WriteDatasetBuilder.java:532-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/WriteDatasetBuilder.java:493\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/WriteDatasetBuilder.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"798d682dce977a185446d600869ceb6c8d4b5af9f6a7204b944414e8819b56f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:279-292 | java/src/main/java/org/lance/namespace/RestNamespace.java:193-206 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a0291f3ffb3f95ffdad1fd5cae7cdf39cef7f3dad5e690929f0aa33d3c723e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): java/src/main/java/org/lance/memwal/ShardingEvaluator.java:52-64 | java/src/main/java/org/lance/memwal/ShardingEvaluator.java:82-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/memwal/ShardingEvaluator.java:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/ShardingEvaluator.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca906a70fdf440f531c8243044d8e0479f73e5a14c759aa957ee3ef1af9d834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): java/src/main/java/org/lance/Dataset.java:880-891 | java/src/main/java/org/lance/Dataset.java:909-920 | java/src/main/java/org/lance/Dataset.java:992-1003 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/Dataset.java:880\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3c967f5f00c838500b534a6ef56462d868b9f9c215268e5007abd6d49be005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): java/src/main/java/org/lance/OpenDatasetBuilder.java:178-188 | java/src/main/java/org/lance/WriteDatasetBuilder.java:397-406 \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 \u0060java/src/main/java/org/lance/OpenDatasetBuilder.java:178\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/OpenDatasetBuilder.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d06b20355ae1d8e0a5ea5c6e6cb59c60009d22ac8c39a7b1a660f64c31e210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/src/main/java/org/lance/compaction/Compaction.java:43-52 | java/src/main/java/org/lance/compaction/Compaction.java:70-79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060java/src/main/java/org/lance/compaction/Compaction.java:42\u0060 calls \u0060getMinBytesPerFile\u0060 and \u0060java/src/main/java/org/lance/compaction/Compaction.java: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":"java/src/main/java/org/lance/compaction/Compaction.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"681b4bdf7c4dc9e9dae172cd3a8ff3da9954d745d3eaab611d19e83e1d7b8dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): java/src/main/java/org/lance/ipc/FullTextQuery.java:383-390 | java/src/main/java/org/lance/ipc/FullTextQuery.java:476-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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under 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":"java/src/main/java/org/lance/ipc/FullTextQuery.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ce4251e20bbfe813d9f6a55b33c323dc46238528b66bdcd7bd577462a7d191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/src/main/java/org/lance/Dataset.java:1339-1346 | java/src/main/java/org/lance/Dataset.java:1350-1357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1314751ba473431ecab6711c8e5c18e537de02dc75c80828513c715b6338a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:924-931 | java/src/main/java/org/lance/namespace/RestNamespace.java:831-838 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d3d37216259e1186207b91c267f6f0aadad79730937d78b9b7e85a897128f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/src/main/java/org/lance/operation/UpdateConfig.java:143-152 | java/src/main/java/org/lance/operation/UpdateConfig.java:381-390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/operation/UpdateConfig.java:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060java/src/main/java/org/lance/operation/UpdateConfig.java:155\u0060 calls \u0060configUpdates\u0060 and \u0060java/src/main/java/org/lance/operation/UpdateConfig.java:391\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":"java/src/main/java/org/lance/operation/UpdateConfig.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee97b1396ddccf18faeebb628845f93d525b57662009b3f5f00a94a796566ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): java/src/main/java/org/lance/Dataset.java:1584-1589 | java/src/main/java/org/lance/Dataset.java:1625-1630 | java/src/main/java/org/lance/Dataset.java:2279-2284 | java/src/main/java/org/lance/Dataset.java:2401-2406 \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 \u0060java/src/main/java/org/lance/Dataset.java:1584\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d56a2b8f5976ed8e423fb4c399a46d3ee149e032da089cfe7ad291e371feb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/src/main/java/org/lance/index/vector/VectorTrainer.java:63-68 | java/src/main/java/org/lance/index/vector/VectorTrainer.java:99-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/index/vector/VectorTrainer.java:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060IvfBuildParams\u0060 in one and \u0060PQBuildParams\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":"java/src/main/java/org/lance/index/vector/VectorTrainer.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7619d4ec02137256b1aff531f9b9add6e5d15e1a2b377434ee5811a2d4e88f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/src/main/java/org/lance/operation/UpdateConfig.java:187-192 | java/src/main/java/org/lance/operation/UpdateConfig.java:224-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 \u0060java/src/main/java/org/lance/operation/UpdateConfig.java:187\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/operation/UpdateConfig.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d25e61392098d0dcd553f37456884b4976f385ecb6fb84d382c812bbd331aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): java/src/main/java/org/lance/memwal/ShardWriter.java:93-97 | java/src/main/java/org/lance/memwal/ShardWriter.java:121-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/memwal/ShardWriter.java:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/ShardWriter.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a73193e6da4b7fc91db4621058eaedc6d63c754f7460435a3a4b7be4f00836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): java/src/main/java/org/lance/SourcedTransaction.java:131-138 | java/src/main/java/org/lance/Transaction.java:160-167 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/SourcedTransaction.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2ca3e19a79fa59f0b8564b35b96b32ae2fdbd546b298c970acd7a6f294abb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:745-751 | java/src/main/java/org/lance/namespace/RestNamespace.java:652-658 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a219fb3941eaeb75fad789804c508a25d03406ceb70d7771578621ff7a78dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 26): java/src/main/java/org/lance/Dataset.java:1040-1045 | java/src/main/java/org/lance/Dataset.java:1063-1068 | java/src/main/java/org/lance/Dataset.java:1077-1082 | java/src/main/java/org/lance/Dataset.java:1128-1133 | java/src/main/java/org/lance/Dataset.java:1140-1145 | java/src/main/java/org/lance/Dataset.java:1157-1162 | java/src/main/java/org/lance/Dataset.java:1176-1181 | java/src/main/java/org/lance/Dataset.java:1691-1696 | java/src/main/java/org/lance/Dataset.java:1710-1715 | java/src/main/java/org/lance/Dataset.java:1728-1733 | java/src/main/java/org/lance/Dataset.java:1759-1764 | java/src/main/java/org/lance/Dataset.java:1800-1805 | java/src/main/java/org/lance/Dataset.java:1814-1819 | java/src/main/java/org/lance/Dataset.java:2024-2029 | java/src/main/java/org/lance/Dataset.java:2043-2048 | java/src/main/java/org/lance/Dataset.java:2075-2080 | java/src/main/java/org/lance/Dataset.java:2520-2525 | java/src/main/java/org/lance/Dataset.java:2628-2633 | java/src/main/java/org/lance/Dataset.java:2670-2675 | java/src/main/java/org/lance/delta/DatasetDelta.java:57-62 | java/src/main/java/org/lance/ipc/LanceScanner.java:255-260 | java/src/main/java/org/lance/memwal/ExecutionPlan.java:71-76 | java/src/main/java/org/lance/memwal/LsmScanner.java:168-173 | java/src/main/java/org/lance/memwal/ShardWriter.java:78-83 | java/src/main/java/org/lance/memwal/ShardWriter.java:134-139 | java/src/main/java/org/lance/memwal/ShardWriter.java:144-149 \u2014 there are 26 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 26 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dff38915ade4cb726d08057a09881a8d000c1d412e3878252c4e9866ed51282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): java/src/main/java/org/lance/Dataset.java:1773-1778 | java/src/main/java/org/lance/Dataset.java:2059-2064 | java/src/main/java/org/lance/Dataset.java:2853-2858 | java/src/main/java/org/lance/ipc/LanceScanner.java:271-276 \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":"java/src/main/java/org/lance/Dataset.java"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ea928541d769b0ec9232cd8177ac794a9d93c744aa613bdbc0e63aaf420387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): java/src/main/java/org/lance/delta/DatasetDelta.java:113-120 | java/src/main/java/org/lance/ipc/LanceScanner.java:140-147 | java/src/main/java/org/lance/memwal/ExecutionPlan.java:98-105 | java/src/main/java/org/lance/memwal/LsmPointLookupPlanner.java:109-116 | java/src/main/java/org/lance/memwal/LsmScanner.java:182-189 | java/src/main/java/org/lance/memwal/LsmVectorSearchPlanner.java:221-228 | java/src/main/java/org/lance/memwal/ShardWriter.java:184-191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/delta/DatasetDelta.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bf0dc40e32982ec76a50c0a2c50dd75a9eee86f297eee89307c659478ffb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): java/src/main/java/org/lance/fragment/RowIdMeta.java:55-64 | java/src/main/java/org/lance/fragment/VersionMeta.java:42-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/fragment/RowIdMeta.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"13299b457de9747da2a376767123897c8dc977b438ac3d021290bd7288b9ab72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 74): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:306-311 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:314-319 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:322-327 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:330-335 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:346-351 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:354-359 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:362-367 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:378-383 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:386-391 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:411-416 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:419-424 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:447-452 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:455-460 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:471-476 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:479-484 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:488-494 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:497-502 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:505-510 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:515-520 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:523-528 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:531-536 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:540-546 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:549-554 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:557-562 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:565-570 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:573-578 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:582-588 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:591-596 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:613-618 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:622-627 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:630-635 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:638-643 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:646-651 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:654-659 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:662-667 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:670-675 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:679-684 | java/src/main/java/org/lance/namespace/RestNamespace.java:220-225 | java/src/main/java/org/lance/namespace/RestNamespace.java:228-233 | java/src/main/java/org/lance/namespace/RestNamespace.java:236-241 | java/src/main/java/org/lance/namespace/RestNamespace.java:244-249 | java/src/main/java/org/lance/namespace/RestNamespace.java:260-265 | java/src/main/java/org/lance/namespace/RestNamespace.java:268-273 | java/src/main/java/org/lance/namespace/RestNamespace.java:276-281 | java/src/main/java/org/lance/namespace/RestNamespace.java:292-297 | java/src/main/java/org/lance/namespace/RestNamespace.java:300-305 | java/src/main/java/org/lance/namespace/RestNamespace.java:324-329 | java/src/main/java/org/lance/namespace/RestNamespace.java:332-337 | java/src/main/java/org/lance/namespace/RestNamespace.java:360-365 | java/src/main/java/org/lance/namespace/RestNamespace.java:368-373 | java/src/main/java/org/lance/namespace/RestNamespace.java:384-389 | java/src/main/java/org/lance/namespace/RestNamespace.java:392-397 | java/src/main/java/org/lance/namespace/RestNamespace.java:401-406 | java/src/main/java/org/lance/namespace/RestNamespace.java:409-414 | java/src/main/java/org/lance/namespace/RestNamespace.java:417-422 | java/src/main/java/org/lance/namespace/RestNamespace.java:425-430 | java/src/main/java/org/lance/namespace/RestNamespace.java:433-438 | java/src/main/java/org/lance/namespace/RestNamespace.java:441-446 | java/src/main/java/org/lance/namespace/RestNamespace.java:450-455 | java/src/main/java/org/lance/namespace/RestNamespace.java:458-463 | java/src/main/java/org/lance/namespace/RestNamespace.java:466-471 | java/src/main/java/org/lance/namespace/RestNamespace.java:474-479 | java/src/main/java/org/lance/namespace/RestNamespace.java:482-487 | java/src/main/java/org/lance/namespace/RestNamespace.java:491-496 | java/src/main/java/org/lance/namespace/RestNamespace.java:499-504 | java/src/main/java/org/lance/namespace/RestNamespace.java:521-526 | java/src/main/java/org/lance/namespace/RestNamespace.java:530-535 | java/src/main/java/org/lance/namespace/RestNamespace.java:538-543 | java/src/main/java/org/lance/namespace/RestNamespace.java:546-551 | java/src/main/java/org/lance/namespace/RestNamespace.java:554-559 | java/src/main/java/org/lance/namespace/RestNamespace.java:562-567 | java/src/main/java/org/lance/namespace/RestNamespace.java:570-575 | java/src/main/java/org/lance/namespace/RestNamespace.java:578-583 | java/src/main/java/org/lance/namespace/RestNamespace.java:587-592 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java:488\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ListNamespacesRequest\u0060 in one and \u0060DescribeNamespaceRequest\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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc724fff41c4617bfe1bd9f85566c2d09833fa5b269b25355509454ed7f8158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:394-399 | java/src/main/java/org/lance/namespace/RestNamespace.java:308-313 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b757b119ed2fd6c3e240ec1bb48e4fdfefbebf5402b7268edcdda319a17d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:402-408 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:428-434 | java/src/main/java/org/lance/namespace/DirectoryNamespace.java:438-444 | java/src/main/java/org/lance/namespace/RestNamespace.java:316-321 | java/src/main/java/org/lance/namespace/RestNamespace.java:341-347 | java/src/main/java/org/lance/namespace/RestNamespace.java:351-357 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java:428\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060CreateTableRequest\u0060 in one and \u0060InsertIntoTableRequest\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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e76a8ddca46ec0138f512c15324a074e2b7f27466ba649a13ef43710465c247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): java/src/main/java/org/lance/namespace/DirectoryNamespace.java:463-468 | java/src/main/java/org/lance/namespace/RestNamespace.java:376-381 \u2014 before extracting anything, compare \u0060java/src/main/java/org/lance/namespace/DirectoryNamespace.java\u0060 and \u0060java/src/main/java/org/lance/namespace/RestNamespace.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd988f3650ced68fd8b5c3419f2d1c6a1c19c8a383550ecb4c2796865c65b052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74\u2013121 lines \u00D7 2): python/python/lance/dataset.py:4665-4785 | python/python/lance/dataset.py:4869-4942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":4665}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a0230ab9c098d865b246536ffd9697e90e16cde783eeba165b3926a14b6315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201339 lines \u00D7 2): python/python/lance/vector.py:442-480 | python/python/lance/vector.py:652-677 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/python/lance/vector.py:442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/vector.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e6ac938813d380b6433a14e0b6473f7af38187873a8803a3b4c4f84a74a150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): python/python/lance/dataset.py:1041-1168 | python/python/lance/dataset.py:1210-1239 | python/python/lance/dataset.py:1648-1672 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/python/lance/dataset.py:1041\u0060 it does not close everything it opens, so those exact 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":"python/python/lance/dataset.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d20da62fca9ef1d14b1548138e3e69c249984f5a811449e3645bdcb7df2f51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): ci/new_contributors.py:159-180 | ci/review_stats.py:112-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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/new_contributors.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8da275da5a95a782e0ec34e99c3b1f57bbe105c7aa2156f644a6e171497a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): python/python/lance/vector.py:570-583 | python/python/lance/vector.py:755-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 \u0060python/python/lance/vector.py:570\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/vector.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dbd8e3f6e57d6448e61627e92e1b03bacdecf224635e5ae74dca5705c1c714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): python/python/lance/dataset.py:4328-4343 | python/python/lance/dataset.py:4475-4490 | python/python/lance/fragment.py:1791-1806 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/dataset.py"},"region":{"startLine":4328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1071087be18f88c39ce561413b22231ae6a2e95c99dde72c993856b1f0778d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): python/python/lance/_dataset/scanner.py:1191-1205 | python/python/lance/dataset.py:5578-5592 | python/python/lance/fragment.py:1798-1812 \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 \u0060python/python/lance/_dataset/scanner.py:1191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"893d824098eee1b1628cd976a180686c4e988db7acd1381e7e98d2a1ac80f603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): python/python/lance/dataset.py:1155-1168 | python/python/lance/dataset.py:1226-1239 | python/python/lance/dataset.py:1659-1672 | python/python/lance/fragment.py:746-759 | python/python/lance/fragment.py:786-799 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/python/lance/dataset.py:1155\u0060 it does not close everything it opens, so those exact 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":"python/python/lance/dataset.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d09e9c3c7316974561527c983c41d38fcab4e8aa02c51179cbadeccc072237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ci/new_contributors.py:30-37 | ci/review_stats.py:22-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/new_contributors.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e990c466f9190ecc285c265d79ba4dfc4bd43a7e180ff82b22605fb871193f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ci/new_contributors.py:41-47 | ci/review_stats.py:33-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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060dict[str, str]\u0060 in one and \u0060dict\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":"ci/new_contributors.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"de10fa8b15b4e8963424e89f49ecd7326f3a5a3e76cff1ceaad2e22de2c07d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): memtest/python/memtest/__init__.py:170-182 | python/python/ci_benchmarks/benchmark.py:64-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"memtest/python/memtest/__init__.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1859f685b029112f5c116b4e21b7a3dfe4603f2e7bbaf9028b8ba09d67f7c3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): python/python/lance/file.py:613-625 | python/python/lance/fragment.py:1490-1502 \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":"python/python/lance/file.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71ad3f95d2c7add89ff4b89dce3e36112ac5c73fb7af5f74ead61545c25d4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/lance-file/test_data/exact_versions/datagen.rs:106-131 | rust/lance-file/test_data/exact_versions/datagen.rs:133-156 \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":"rust/lance-file/test_data/exact_versions/datagen.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64fdc73b6037a21b591306037090b41b417844ef9ba0349fc37879af7489bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:239-255 | rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:260-283 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"71acd63badb48b09fb7ab753d7790181f32049b86f7425f9315e232f28d7ed7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:244-255 | rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:272-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:271\u0060 calls \u0060train\u0060 and \u0060rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py:243\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":"rust/lance/benches/mem_wal/vector/hnsw/disk_ann_compare.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc55d7441bd9026a28d97ed3f84f22df649e17012b188fb68666977d8f875db"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project lance-geo: lance-geo has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2bca75dfc08f1629914967b8b48a75ed0cf10d869f871eefb374feecb31ad786"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: fsst: fsst: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"42f70b8319dfc304d9907d8b46ba6f264f5a284770b93d0c14836fd992479448"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lance-arrow-scalar: lance-arrow-scalar: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e283bf143a3edc2217c54ac09f35f512f67873e9522329f18f31f3983b7ccfe1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lance-jsonb: lance-jsonb: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"041e6827c30d7c539ee4b9ed1aa2bc881a0c30e9f5fedb1e46d64fae9f3c5e0d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lance-datagen: lance-datagen: abstractness 0.05, instability 0.00, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6ffad03b2777ed6ae78dd1897126eddc6cfd259fb71830977d410d72d50066c8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lance-core (Cargo): lance-core (Cargo): abstractness 0.15, instability 0.11, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 17 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a89a474f78e56c60cf64915d8599251d419c28f67af19021ed9c7763032c12ca"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lance-io: lance-io: abstractness 0.11, instability 0.17, distance 0.73 \u2014 zone of pain \u2014 concrete and depended on by 10 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"498066b5e2df9e246f504db2ed743965a0e87fa8f3c6213d74be1131286f7d2b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Dataset (LCOM4 22): Dataset\u0027s methods fall into 22 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 22 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":"rust/lance/src/dataset.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25b68b8d15a11a58ccbd91efcb793de85e84b92758973a956433000c1459bab"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShardWriterConfig (LCOM4 19): ShardWriterConfig\u0027s methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write/config.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19b390d17b707fc61b79b5b7249eda2442ac4d2a06ce04ea4853fced294639c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FilteredReadOptions (LCOM4 10): FilteredReadOptions\u0027s methods fall into 10 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 10 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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd275f119d2984a0b27d26b4f6ba55b3aeec89d61176bec27c513501d21d808"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RowAddrTreeMap (LCOM4 8): RowAddrTreeMap\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":"rust/lance-select/src/mask.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2575fd684d2baa890173ce5cfad3ab51766277b8ee699f061c2a2cf1ab5b5d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MatchQuery (LCOM4 7): MatchQuery\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/inverted/query.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2e0a949368da46300c702b070bedfd0456e61b7221ae2ab2730af0051ee0b2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RawJsonb (LCOM4 7): RawJsonb\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-jsonb/src/raw.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2cf7f1012d7d41533059ccffcb0318ab27d563aebf39273bccfc73a15945e3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CleanupOperation (LCOM4 5): CleanupOperation\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f90955cfade53dda72de89b8ac061c7f32cae6b846e98118fb2abee5224313"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: IVFIndex (LCOM4 5): IVFIndex\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/ivf/v2.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8cc2b1e4ff86c1833fd0656884f632254c97116aa4848614d625b5020dcd73"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FtsQuery (LCOM4 4): FtsQuery\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4456fd06eddeece19d3e0693cc49866ce6f29b9b0d431a4b8dd0f74bcd7b77d2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ListRetryStream (LCOM4 4): ListRetryStream\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/list_retry.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6469894fa6c5cf9c1de039927261db5901ddb82a47188896e89be4ea480db58a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RowIdSequence (LCOM4 4): RowIdSequence\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/rowids.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd87b98d8e128beb343bbdf256d4204baa934ceefb697b8e9e9f759dc84c7ab0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/manifest_build.rs: rust/lance-table/src/transaction/manifest_build.rs changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 200 in Transaction::build_manifest_prepared at line 747. 27 of those changes were fix/bug commits, and the other 29 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/manifest_build.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":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa222896156d999d8ef8ae3998166f43f81990182db536422aa9250b15180350"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/python/lance/dataset.py: python/python/lance/dataset.py changed 83 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in LanceDataset._create_index_impl at line 3667. 30 of those changes were fix/bug commits, and the other 53 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/python/lance/dataset.py\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":"python/python/lance/dataset.py"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e467f913e2050426e1aafd667ae92d332cb5b28a0a885c5f6ca7b4c39702bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/src/dataset.rs: python/src/dataset.rs changed 53 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in Dataset::scanner at line 943. 9 of those changes were fix/bug commits, and the other 44 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/src/dataset.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":"python/src/dataset.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"724e61d920a08888a85f4eee942758b98c218a92d64fedb21c5411a541812598"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/append.rs: rust/lance/src/index/append.rs changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in lance::index::append::merge_indices_with_unindexed_frags at line 1696. 19 of those changes were fix/bug commits, and the other 25 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/append.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":"rust/lance/src/index/append.rs"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"c966cfb613e18bf44c8c7ebc3ca51a9b6f0dfea76b2a6f98eb9269c795a3c651"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/commit.rs: rust/lance/src/io/commit.rs changed 52 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in lance::io::commit::commit_transaction at line 1777. 26 of those changes were fix/bug commits, and the other 26 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/commit.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":"rust/lance/src/io/commit.rs"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fd91917fc235a5d086ba5f711ac2754703dc8d1a6b820f210d7e6666f17b96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/cleanup.rs: rust/lance/src/dataset/cleanup.rs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in CleanupTask::cleanup_file_if_not_referenced at line 2278. 19 of those changes were fix/bug commits, and the other 20 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/cleanup.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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"92066495f2fd3fa2bcdfb0b6677e43bead8d2c35f7e1713ca58cdf9c854431c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/scanner.rs: rust/lance/src/dataset/scanner.rs changed 83 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Dataset::count_indexed_rows at line 687. 34 of those changes were fix/bug commits, and the other 49 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/scanner.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":"rust/lance/src/dataset/scanner.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb993ec2da715921d1c6be42a49299f94e6eb6506b0aa2635e44a196c1efae8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset.rs: rust/lance/src/dataset.rs changed 90 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Dataset::load_manifest at line 913. 37 of those changes were fix/bug commits, and the other 53 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset.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":"rust/lance/src/dataset.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf3b3bb852011d08e0dd94210f76a1419c9934e86b7d97e2613717f39eb6077"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/create.rs: rust/lance/src/index/create.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in CreateIndexBuilder::execute_uncommitted_impl at line 221. 14 of those changes were fix/bug commits, and the other 15 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/create.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":"rust/lance/src/index/create.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82a9432647aeec9d813dd8ba5441a6d51602f577f78b8fd7816a203022f2ba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/scalar/zonemap.rs: rust/lance-index/src/scalar/zonemap.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 70 in ZoneMapIndex::evaluate_zone_against_query at line 539. 5 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/zonemap.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":"rust/lance-index/src/scalar/zonemap.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46c277d15cbdc3baf9d7644f029ec11018c562e1f7cbc22078c4d92f75c5866"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-datafusion/src/planner.rs: rust/lance-datafusion/src/planner.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in Planner::parse_sql_expr at line 840. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-datafusion/src/planner.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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"6512c3375c35f4c1ebe93570e72d1ccee39f9d0edaa8be0db984fe1cd4a39b43"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/fragment.rs: rust/lance/src/dataset/fragment.rs changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in FileFragment::validate at line 2112. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/fragment.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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247e7cf76db704677052d806a703130abed58d3c10af98e2953080545854a05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/frag_reuse.rs: rust/lance/src/index/frag_reuse.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in lance::index::frag_reuse::build_frag_reuse_rewrite_entry at line 1720. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/frag_reuse.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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a0cd91cae4fb684394e3aaa23e3df3ff64fdb5d6b6d257e723d800be4c4f16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write.rs: rust/lance/src/dataset/write.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in lance::dataset::write::do_write_fragments_impl at line 938. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write.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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff990e1bc97d6334718f8f99c8bd0fc8766ffd90bceb278127ed220d411a6b50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/conflicts.rs: rust/lance-table/src/transaction/conflicts.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 241 in Operation::eq at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/conflicts.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":"rust/lance-table/src/transaction/conflicts.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"266314ec65de72d90e9d861b4de6fdb5f69467f2c2fd7c13ae956278a85f1148"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/vector/ivf.rs: rust/lance/src/index/vector/ivf.rs changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in lance::index::vector::ivf::train_weighted_hierarchical_kmeans at line 5518. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/vector/ivf.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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":5518}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4a01e654246886112ea1ce9a4909a97d1cfc00be72bd28c65321ff85e8042d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/schema_evolution.rs: rust/lance/src/dataset/schema_evolution.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in lance::dataset::schema_evolution::alter_columns at line 1107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/schema_evolution.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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a1def9c52e0850e0549b0e99c6bdd6eca21c181d37505e72a16521e2e14e4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-datafusion-exec/src/expr.rs: rust/lance-datafusion-exec/src/expr.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 211 in lance_datafusion_exec::expr::safe_coerce_scalar at line 112. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-datafusion-exec/src/expr.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":"rust/lance-datafusion-exec/src/expr.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d460431870338fd9525ed2ce9a413cb149c05d2f4a1337cee285b0cc32991f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/filtered_read.rs: rust/lance/src/io/exec/filtered_read.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in FilteredReadStream::plan_scan at line 902. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/filtered_read.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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"4546bba912c408243caef0fac9290a5ec85d6aac687652c50400ffff8e44be35"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/vector.rs: rust/lance/src/index/vector.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in lance::index::vector::build_vector_index_impl at line 1341. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/vector.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":"rust/lance/src/index/vector.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"96acd946ee1b3d528fac0e611ca4bd3368789b32590a97abf50906c52a75ef7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/compression.rs: rust/lance-encoding/src/compression.rs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in lance_encoding::compression::create_fixed_width_block_decompressor_inner at line 1828. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/compression.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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0f100381173507f265c96a110a47f18c95bb7f9e2d8f8c76df640845e2a391"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/vector/distributed/index_merger.rs: rust/lance-index/src/vector/distributed/index_merger.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 127 in lance_index::vector::distributed::index_merger::merge_partial_vector_auxiliary_files_inner at line 868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/vector/distributed/index_merger.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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c6da94ca0aba090903e7fcea83a3ef4a99bb7276c40aa9e2fcfd25efe2c39a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/scalar.rs: rust/lance/src/index/scalar.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in lance::index::scalar::index_matches_criteria at line 1122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/scalar.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":"rust/lance/src/index/scalar.rs"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad621566cc62483c78445eb665cc1f40e195441bbea4d3b48bc480d38663ead1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write/commit.rs: rust/lance/src/dataset/write/commit.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in CommitBuilder::execute_inner at line 378. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/commit.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":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a6d23366d8d4b68ef7783eff4a128c85fb5a0f5b0a13ad59abf21719ecf15b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/scalar/inverted/wand.rs: rust/lance-index/src/scalar/inverted/wand.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Wand::search at line 554. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/inverted/wand.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":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"79505f3e1e6e341d860eb87bbff2d305d45443726f62bdaf65fdf8e05eb7180d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/vector/builder.rs: rust/lance/src/index/vector/builder.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in lance::index::vector::builder::merge_partitions at line 1832. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/vector/builder.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7a5084ffdacd5a0b0a16645d7c9f3b05190a30c01f89cdcc9457b5f09b42cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs: rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in DecodeMiniBlockTask::decode at line 938. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2cfc6f93225cd538442b6fe58940287231ff770fb4a5418333cba7bd0dcead"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/scanner/vector_search.rs: rust/lance/src/dataset/mem_wal/scanner/vector_search.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LsmVectorSearchPlanner::build_knn_plan at line 605. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/scanner/vector_search.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":"rust/lance/src/dataset/mem_wal/scanner/vector_search.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"36714c4edb66010c3f216a374a14dc949f9347a3f15006c1afd326f13bafd074"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/feature_flags.rs: rust/lance-table/src/feature_flags.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in lance_table::feature_flags::apply_feature_flags at line 284. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/feature_flags.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":"rust/lance-table/src/feature_flags.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6891ab8111250a6f7b50c37b6f7fb286a034a2468cac7587bd8476c8ed63d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/scalar/inverted/index/partition.rs: rust/lance-index/src/scalar/inverted/index/partition.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in FetchedPostings::into_loaded at line 1706. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/inverted/index/partition.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":"rust/lance-index/src/scalar/inverted/index/partition.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa645dcffdbafe3b43715de0acc5a3061711706e58036e2c1de7c6a44406529"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/src/fragment.rs: python/src/fragment.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in FileFragment::scanner at line 302. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/src/fragment.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":"python/src/fragment.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"615293254da8a0a7c77d34c2b57edf4f4c256c60b435372669f0506fb80a7534"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/index/frag_reuse.rs: rust/lance/src/dataset/index/frag_reuse.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in lance::dataset::index::frag_reuse::compute_tagged_retention at line 761. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/index/frag_reuse.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":"rust/lance/src/dataset/index/frag_reuse.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"7491b5684771a979dc2e4e506f81e24b4af5ab4cfbf1e3eb2487bebb5eae45f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-namespace-impls/src/dir/manifest.rs: rust/lance-namespace-impls/src/dir/manifest.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ManifestNamespace::create_table at line 3398. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-namespace-impls/src/dir/manifest.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":"rust/lance-namespace-impls/src/dir/manifest.rs"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5c62a177cd30568476daf3ff56b12045d9125546c3b0d67e7a2cc2e4749aed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/index_maintenance.rs: rust/lance-table/src/transaction/index_maintenance.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Transaction::withdraw_coverage at line 379. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/index_maintenance.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":"rust/lance-table/src/transaction/index_maintenance.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4959c3000d7bffd485a459f6060f2e83f370d19bf0549a0f7f51ceb2f71260a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/scalar/btree.rs: rust/lance-index/src/scalar/btree.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in BTreeIndex::search_with_options at line 3207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/btree.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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3207}}}],"partialFingerprints":{"codehealthFindingId/v1":"10aad63623dd0d8fe0938d58f5a61b3b3619df1bf209a6f44e9a0c6726ca1eed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/refs.rs: rust/lance/src/dataset/refs.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Branches::cleanup_branch_directories at line 654. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/refs.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":"rust/lance/src/dataset/refs.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"126f7345eb7807d3d2e82935a5cc38db6659ab1eaf8fd61e9e4e2a168c55fb79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/scanner/vector.rs: rust/lance/src/dataset/scanner/vector.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in Scanner::vector_search at line 145. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/scanner/vector.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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5ce7e2b728af5893518d13f409842858a7970f71dea2eb4f23a72f3560cf2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write/update.rs: rust/lance/src/dataset/write/update.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UpdateJob::execute_impl at line 407. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/update.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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d7a3619529878b0438cd180239601222b7d9d2a13cf4e40c86b68d0e5ec704"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/scanner/fts_search.rs: rust/lance/src/dataset/mem_wal/scanner/fts_search.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in LsmFtsSearchPlanner::build_source_plan at line 1232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/scanner/fts_search.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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4b6d90736af6c986d64f3a0097821c39e0d1c3ecbeb5b1d6c3c1e7c1af9a52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/data.rs: rust/lance-encoding/src/data.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DataBlock::from_arrays_impl at line 2676. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/data.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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaf229c43d13e70692b3fb9d2cd12ecdbde348b7585f8d4dba4608f81b6e42a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: java/lance-jni/src/transaction.rs: java/lance-jni/src/transaction.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in lance_jni::transaction::convert_to_rust_operation at line 1761. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- java/lance-jni/src/transaction.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":"java/lance-jni/src/transaction.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24547cd21569845fd19a76f4ad9c36b9a6275ce020b45ec9e169e3c690c4462"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs: rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in PrimitiveStructuralEncoder::encode_dense_page at line 2206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f430d95d85754f0d54e5eb3b7bffe668bef1caf06b4a8d2f854d821f9c8425af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/optimize/remapping.rs: rust/lance/src/dataset/optimize/remapping.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in lance::dataset::optimize::remapping::remap_index at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/optimize/remapping.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":"rust/lance/src/dataset/optimize/remapping.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"216db94c835ed64558a3e5134251ace23a3bcc9af3171cbaa17ec296914e6f50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: java/lance-jni/src/blocking_scanner.rs: java/lance-jni/src/blocking_scanner.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in lance_jni::blocking_scanner::build_scanner_with_options at line 353. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- java/lance-jni/src/blocking_scanner.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":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7764373c6f047d9444f05bb1748555e8b0d58e1119c01260615c99773e5a62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/filtered_read_proto.rs: rust/lance/src/io/exec/filtered_read_proto.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in lance::io::exec::filtered_read_proto::fr_options_from_proto at line 381. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/filtered_read_proto.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":"rust/lance/src/io/exec/filtered_read_proto.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c213eb5beeec880d1b6278b6e935c84aa48b605a4fcb1e86f1d0d7cfb6ede6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/vector/pq/storage.rs: rust/lance-index/src/vector/pq/storage.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in PQDistCalculator::accumulate_topk_with_scratch at line 1200. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/vector/pq/storage.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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e13a49f19ca3ea4dbf9d561a3d7f411848365607451de743a7a62e1eda4704"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/proto.rs: rust/lance-table/src/transaction/proto.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Transaction::try_from at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/proto.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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d3534aabe3c80f6f43f22329f95ef893f62123367ab5661f497820832d44ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/optimize/planning.rs: rust/lance/src/dataset/optimize/planning.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in DefaultCompactionPlanner::plan_groups_with_budget at line 954. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/optimize/planning.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":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c02eb3f0c4a25ac2405ad5a45ee9db816df97043eb83c2d85f3ab982998fc37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/src/transaction.rs: python/src/transaction.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in PyLance::into_pyobject at line 1005. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/src/transaction.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":"python/src/transaction.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e69b28fca0ae04f2f9aa6b611e6ff7cc41e95d075fab73dd005febae4bce7f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-datafusion/src/substrait.rs: rust/lance-datafusion/src/substrait.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in lance_datafusion::substrait::normalize_expr at line 395. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-datafusion/src/substrait.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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"53efea8341c8deaa6c620ea6ee2d4504f09a74b9830fba2155544dc1b5d67c3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/rowids.rs: rust/lance-table/src/rowids.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in RowIdSequence::mask_to_offset_ranges at line 658. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/rowids.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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dfcf5ad52ff2fff299791da7467e3bd874ca75515c284e15e643b1d8849e01"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/physical/binary.rs: rust/lance-encoding/src/encodings/physical/binary.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in lance_encoding::encodings::physical::binary::decode_generic_binary_miniblock_range at line 692. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/physical/binary.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":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b44e822013adf02d0001ff2fb900ae810a6dda326bc620bc5c7b635e69d1989"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/physical/rle.rs: rust/lance-encoding/src/encodings/physical/rle.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in RleEncoder::encode_chunk_rolling_slice at line 776. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/physical/rle.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":"rust/lance-encoding/src/encodings/physical/rle.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3b8f3d6013edffb82f0dc6af04cde8b184a609a9785257721a588890f69471"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/scalar/inverted/index/flat_search.rs: rust/lance-index/src/scalar/inverted/index/flat_search.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in lance_index::scalar::inverted::index::flat_search::tokenize_and_count at line 234. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/inverted/index/flat_search.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":"rust/lance-index/src/scalar/inverted/index/flat_search.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3b23da743505dc7f4876ff7a822e8273cb2bc13186857011df9945f6c74c38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/utils/stream.rs: rust/lance-table/src/utils/stream.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in lance_table::utils::stream::apply_row_id_and_deletes_with_system_columns at line 478. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/utils/stream.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":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2cb8b708e6c66a87fa1aaa5d5171531e5c2ddffce903e29e0bda05629fbc8c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in FtsIndexExec::materialize_rows_sorted at line 332. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/fts.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f836cb1a14ef0b4f1ffcdfef9dcfb2916fea1650d262e5c7ee8dfcd6d4858363"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/take.rs: rust/lance/src/dataset/take.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in lance::dataset::take::do_take_rows at line 134. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/take.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":"rust/lance/src/dataset/take.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1964c38b55ebe32b95af310ec1156678e87b257fef5cb8a838c9b02d67a3a19b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/take.rs: rust/lance/src/io/exec/take.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in TakeStream::map_batch at line 255. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/take.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":"rust/lance/src/io/exec/take.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d42f21c5f086ac3980ae6e8de456ab8380ecef08099227ae6c163fd988c896"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/scanner/planner.rs: rust/lance/src/dataset/mem_wal/scanner/planner.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in LsmScanPlanner::plan_scan at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/scanner/planner.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":"rust/lance/src/dataset/mem_wal/scanner/planner.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"486f40605694489cda1901a2d0eb9239bc9e65d4f6d840d4594d2a14231aa9b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs: rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in VariableFullZipDecoder::unzip at line 1138. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.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":"rust/lance-encoding/src/encodings/logical/primitive/fullzip_decode.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5dd7f9983460316bd2dd746b4f860e48691eedb28ea2cc9228280587fe12ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/builder.rs: rust/lance/src/dataset/builder.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in DatasetBuilder::load_impl at line 692. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/builder.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/builder.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdb194b25ed79e00426f43d5ac4618a223f9567a8831d5220ecd3f6aa2697c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/system_index/frag_reuse/gate.rs: rust/lance-table/src/system_index/frag_reuse/gate.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in lance_table::system_index::frag_reuse::gate::classify at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/system_index/frag_reuse/gate.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":"rust/lance-table/src/system_index/frag_reuse/gate.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9ed93c134661ea21c22ae46d7040b277dbd6f08503a129263b7227fe8375a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-file/src/versions/v2_3/reader.rs: rust/lance-file/src/versions/v2_3/reader.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in lance_file::versions::v2_3::reader::validate_compressive_encoding at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-file/src/versions/v2_3/reader.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":"rust/lance-file/src/versions/v2_3/reader.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ce2c2f5850e5e5889e4924f340272c68a58e23313c578ec837c3eada385f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-core/src/datatypes/schema.rs: rust/lance-core/src/datatypes/schema.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Schema::do_project at line 267. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-core/src/datatypes/schema.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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3050439d50b1a51fe4d5660db0f52a009872952de4ef5c35804e438010544e9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/optimize.rs: rust/lance/src/index/optimize.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in lance::index::optimize::commit_optimize_indices at line 1527. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/optimize.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":"rust/lance/src/index/optimize.rs"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"1398c78733c837c205ca4c2b45986abf69363f371b139b953ba4121a50046640"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/scan.rs: rust/lance/src/io/exec/scan.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in LanceStream::try_new_v2 at line 184. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/scan.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":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d6ddf381a4db79eabf0752e538c55fa62e6d9f440c3ae7f4e918359eeb0537"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs: rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in lance_encoding::encodings::logical::primitive::sparse::planar::encode at line 249. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.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":"rust/lance-encoding/src/encodings/logical/primitive/sparse/planar.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ec3f0c92257a65bf039031aaf690bd59b4aecf87a9b4f620e6debc253af8ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/scanner/fts.rs: rust/lance/src/dataset/scanner/fts.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Scanner::plan_corpus_query at line 1835. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/scanner/fts.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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"d943f18bc682c5ebdda062217fecaf21950c307e8413cbb71f2131f7fa71dcbe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/src/dataset/optimize.rs: python/src/dataset/optimize.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in pylance::dataset::optimize::parse_compaction_options at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/src/dataset/optimize.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":"python/src/dataset/optimize.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"624d05216644c567b592c90bb7532dad7e8ccfad2ef028b4cad9ff1a93b5c381"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: java/lance-jni/src/utils.rs: java/lance-jni/src/utils.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in lance_jni::utils::build_compaction_options at line 203. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- java/lance-jni/src/utils.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":"java/lance-jni/src/utils.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bb73b9681fb0b750ace5829a50182f9ff739749a4a58695a3f90909e4b57fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/loading.rs: rust/lance/src/index/loading.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Dataset::open_vector_index_from_metadata_with_plan at line 1007. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/loading.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":"rust/lance/src/index/loading.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"c569e516b081a1f105f33c9abb67998d7a0f326d15981ad7c6ae3bb1fa4bbadf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/python/lance/_dataset/scanner.py: python/python/lance/_dataset/scanner.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in scanner._build_vector_search_query at line 472. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/python/lance/_dataset/scanner.py\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":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"993a319ea344f8c9aa9bb01c2e2a9bf5fab1f50f1da2a4147c9ffeb4c56faf50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/physical/packed.rs: rust/lance-encoding/src/encodings/physical/packed.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in PackedStructVariablePerValueDecompressor::decompress at line 642. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/physical/packed.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":"rust/lance-encoding/src/encodings/physical/packed.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf42aa231587daf51c0d618514f5e0f562172855bc710fdc10c7938d012ec15e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-namespace-impls/src/dir/namespace.rs: rust/lance-namespace-impls/src/dir/namespace.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in DirectoryNamespace::query_table at line 2207. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-namespace-impls/src/dir/namespace.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":"rust/lance-namespace-impls/src/dir/namespace.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b6c494a871fd385e11c234b6112d2e372f61451ff34f97721875fc250e2227"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/validate.rs: rust/lance-table/src/transaction/validate.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in lance_table::transaction::validate::merge_schema_valid at line 899. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/validate.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":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c5ec30e969471b6a0a0ec0e61f015cb20e55f01c38b574a173b123f184d1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/updater.rs: rust/lance/src/dataset/updater.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Updater::update_batches at line 314. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/updater.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":"rust/lance/src/dataset/updater.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9539a92662be6d9cb2dbaf7e88326035bd34f05bb52912f84d4e20b635bdad33"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: java/lance-jni/src/index.rs: java/lance-jni/src/index.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in lance_jni::index::determine_index_type at line 267. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- java/lance-jni/src/index.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":"java/lance-jni/src/index.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a002bde23a90649f8239ae31ba8cc019932b66e3b84e8087b8e894e589ac00a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/count_pushdown.rs: rust/lance/src/io/exec/count_pushdown.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in lance::io::exec::count_pushdown::try_rewrite at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/count_pushdown.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":"rust/lance/src/io/exec/count_pushdown.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e023ae9fd742ce5a1ba39ad532ad66e3af131b3c6e14463a0ae3e6a9c1c8a4a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/delta.rs: rust/lance/src/dataset/delta.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DatasetDelta::scan_rows at line 553. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/delta.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":"rust/lance/src/dataset/delta.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39d831aa940953afbfa95137171dc619c2b84d8495a674ae307ae4de699038e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MemTableBruteForceVectorExec::compute_topk at line 363. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"95be7712fea2f9186c04ab757512a8c0c54ce07ecd5f1361138f1b7dd22433f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write/merge_insert/job.rs: rust/lance/src/dataset/write/merge_insert/job.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MergeInsertJob::execute_uncommitted_impl at line 1458. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/merge_insert/job.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":"rust/lance/src/dataset/write/merge_insert/job.rs"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"023efca9deebfa1f6a3e5fff223d7116b3e2ab047318047197ccf5c4c83634e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-datafusion/src/logical_expr.rs: rust/lance-datafusion/src/logical_expr.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in lance_datafusion::logical_expr::resolve_expr at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-datafusion/src/logical_expr.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":"rust/lance-datafusion/src/logical_expr.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54cdea54182720f3357b0f8a15b847d5e6daa7734d9843d32ac9bb3796fb619"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-core/src/datatypes/field.rs: rust/lance-core/src/datatypes/field.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Field::try_from at line 1245. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-core/src/datatypes/field.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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4f3fc3eda761d3a3fcbb67fd8904de76194c49dc450aa20062a827fe5846cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/blob/write.rs: rust/lance/src/dataset/blob/write.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in BlobPreprocessor::preprocess_field at line 949. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/blob/write.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":"rust/lance/src/dataset/blob/write.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da382c566ed5c7092c6853e59cf0b24e13e7f98148057e7b804a95bda49b4d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MemTableScanExec::execute at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/scan.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22cbbd1abcddb8c0a65719390f74a7d77935f09e06054c75ce604e88d9133bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/vector/graph.rs: rust/lance-index/src/vector/graph.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in lance_index::vector::graph::beam_search_acorn at line 590. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/vector/graph.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d6f565379defa6957a1e583bb3395201c1e92827985a45feed9508cacd9a6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs: rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MemTableDedupScanExec::execute at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/dedup_scan.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ec966776bce1ce173eba454d62113455a20cf3d9b4cc9846331aa89a8094c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/commit/conflict_resolver/finish.rs: rust/lance/src/io/commit/conflict_resolver/finish.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in TransactionRebase::finish_create_index at line 303. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/commit/conflict_resolver/finish.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":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16aee9e7552a95c324efc75fb22d323c33ee18d513230e792395c1d3162d965"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/io/exec/topk_late_materialization.rs: rust/lance/src/io/exec/topk_late_materialization.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in TopKLateMaterialization::rewrite at line 145. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/exec/topk_late_materialization.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":"rust/lance/src/io/exec/topk_late_materialization.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b39cd83cf89ace917ec618ee2e26bd68f638a6f0cc1de9e025049d4d35d2ead"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-table/src/transaction/row_version.rs: rust/lance-table/src/transaction/row_version.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in lance_table::transaction::row_version::resolve_update_version_metadata at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/row_version.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":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f64c7c6211f6f680e2aea428d916bebe1e3f6fd4d0e633aa0e38f2a951b928"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-encoding/src/encodings/logical/primitive/dict.rs: rust/lance-encoding/src/encodings/logical/primitive/dict.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in lance_encoding::encodings::logical::primitive::dict::dict_encode_variable_width at line 267. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/dict.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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"001e40e60759886db933ab4f641d9c1eeeddd9b5792f92958051e9f010dfe0a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write/merge_insert/update_fragments.rs: rust/lance/src/dataset/write/merge_insert/update_fragments.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in MergeInsertJob::update_fragments at line 146. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/merge_insert/update_fragments.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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b73c17e7e2328c75255cfee9b0de92f67e10d2f7b26da88475b6af1e5c93640"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/optimize/binary_copy.rs: rust/lance/src/dataset/optimize/binary_copy.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in lance::dataset::optimize::binary_copy::rewrite_files_binary_copy at line 135. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/optimize/binary_copy.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":"rust/lance/src/dataset/optimize/binary_copy.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4843478f26715efb600476a2e112bddfe52db8fbbfdb3bfe0cb2e9905960a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/compression/fsst/src/fsst.rs: rust/compression/fsst/src/fsst.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in fsst::fsst::decompress_bulk at line 1064. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/compression/fsst/src/fsst.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":"rust/compression/fsst/src/fsst.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"0903fbc37358d0550ecb5e34e6ccc0252aa381a3dfd641ea66f90aa255f65b6b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/dataset/write/seeds.rs: rust/lance/src/dataset/write/seeds.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in lance::dataset::write::seeds::seed_writers_for at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/seeds.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":"rust/lance/src/dataset/write/seeds.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c038dc87333a4c9fd2c614463433f1523ac711b015562758736e97a993c4e403"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/provenance.rs: rust/lance/src/index/provenance.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in lance::index::provenance::fresh_fragments at line 651. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/provenance.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":"rust/lance/src/index/provenance.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4a6e93fbbe0b83162e579973e93d8e3d1ed11a2a432118be5fe2524058240a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-io/src/uring/thread.rs: rust/lance-io/src/uring/thread.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in lance_io::uring::thread::run_uring_thread at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-io/src/uring/thread.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":"rust/lance-io/src/uring/thread.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c62216e929566c8647368f1bbb53019dc3956f95adf5a786227c0df473b4c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java: java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Builder.tokenizerParams at line 483. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java\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":"java/src/main/java/org/lance/index/scalar/InvertedIndexParams.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"7372d7d8a1c79705d99b9a3d607b83556a0ceb22155047e38ca05ecbe9fd2656"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance-index/src/vector/bq/transform.rs: rust/lance-index/src/vector/bq/transform.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RQTransformer::transform at line 446. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/vector/bq/transform.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":"rust/lance-index/src/vector/bq/transform.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c762a1263d675551acd455b3b56f5cd7a8809f9af527a8517a9fff0deeb78c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/lance/src/index/optimize/consolidate.rs: rust/lance/src/index/optimize/consolidate.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in lance::index::optimize::consolidate::validate_commit at line 288. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/index/optimize/consolidate.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":"rust/lance/src/index/optimize/consolidate.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d91dc45dfee75d993ab3f0d87ac5dc15ce542b4cfe0cad2fd395c3a9faab4c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/io/commit/conflict_resolver.rs: rust/lance/src/io/commit/conflict_resolver.rs changed 43 times in last 90 days and 27 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is UntaggedReuse::withdraw_folded_overlays at line 430), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(index): use read snapshot for cleanup coverage checks (#10916)\u201D; \u201Cfix(clustering): restore brings back the target\u0027s definitions, keeping only the allocation mark (#10629)\u201D; \u201Cfix(index): withdraw stale coverage after transaction cleanup (#10663)\u201D; \u201Cfix: reject primary-key inserts with missing transaction history (#10665)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/io/commit/conflict_resolver.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":"rust/lance/src/io/commit/conflict_resolver.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4abe9ddd9003db670dcf1c6876f2e66e939ac3c4712cf14b04dd056ffec59cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-index/src/scalar/expression.rs: rust/lance-index/src/scalar/expression.rs changed 17 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is LabelListQueryParser::visit_scalar_function at line 976), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(index): keep FM substring queries correct for NUL and space patterns (#10794)\u201D; \u201Cfix(index): recheck contains_tokens rows from an FTS index and skip queries it cannot narrow (#10571)\u201D; \u201Cfix: ignore zero and NaN sign bits in filters\u201D; \u201Cfix: return every non-null row for contains(col, \u0027\u0027) with an FM index (#10275)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/expression.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":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11db6203b127f459dca5ca84f56d6860e0e9ccd7a6a9bc2308c7a28ebc90320"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-linalg/src/distance.rs: rust/lance-linalg/src/distance.rs changed 14 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is lance_linalg::distance::half_backend at line 117), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(linalg): unify Arrow distance dispatch (#10085)\u201D; \u201Cfix(linalg): point length-contract panics at the distance function (#8864)\u201D; \u201Cfix(linalg): preserve half-kernel fallback on AVX-512 hosts (#8877)\u201D; \u201Cfix(linalg): reject a null Int8 query instead of panicking (#8884)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-linalg/src/distance.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":"rust/lance-linalg/src/distance.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03ef462196d4841812864bae417ec2293124f900ae60f3f00fcff886e841f7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/fragment/write.rs: rust/lance/src/dataset/fragment/write.rs changed 11 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is lance::dataset::fragment::write::generate_random_filename at line 46), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(compaction): avoid materializing blob payload batches (#10696)\u201D; \u201Cfix(blob): promote legacy blob input to v2 on fragment and update writes (#10586)\u201D; \u201Cfix: start a new data file before a dictionary outgrows its key type (#10368)\u201D; \u201Cfix: delete files written by merge_insert analyze_plan (#9869)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/fragment/write.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":"rust/lance/src/dataset/fragment/write.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99baa63b111e0e9a9683b0892211ad754c6046945039431368efab84cacf0e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/encodings/logical/struct.rs: rust/lance-encoding/src/encodings/logical/struct.rs changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is StructuralStructDecoder::field_to_decoder at line 265), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(encoding): count validity per list, not per item, when a batch spans pages (#10338)\u201D; \u201Cfix(encoding): auto-batch top-level primitive and struct dictionaries\u201D; \u201Cfix(dataset): validate nested schema names and stored system columns (#9499)\u201D; \u201Cfix: write nullable structs that contain a Null-typed field (#9579)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/struct.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":"rust/lance-encoding/src/encodings/logical/struct.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"312501a7dabfd001ff6baf71c9dfd9ffd0408a1c0173f04e1da3ed91938d1226"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-io/src/object_writer.rs: rust/lance-io/src/object_writer.rs changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is ObjectWriter::poll_tasks at line 400), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(io): add optional local fsync and identify corrupt files (#9609)\u201D; \u201Cfix(io): remove dependency on unreleased object_store (#10363)\u201D; \u201Cfix(io): avoid hanging and spurious Pending in ObjectWriter::poll_write (#9996)\u201D; \u201Cfix(io): reject zero multipart upload concurrency (#9756)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-io/src/object_writer.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":"rust/lance-io/src/object_writer.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bd9db56ecb439b939ae46c4804637d291e651aefca5f2bda5ece4b0dead4a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-tokenizer/src/stop_word_filter.rs: rust/lance-tokenizer/src/stop_word_filter.rs changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is StopWordFilterStream::advance at line 188), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(fts): preserve Greek content and polarity (#10050)\u201D; \u201Cfix(fts): preserve Korean content and numeric tokens (#10048)\u201D; \u201Cfix(fts): preserve Tamil content and numeric terms (#10052)\u201D; \u201Cfix(fts): preserve Russian content and numeric terms (#10051)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-tokenizer/src/stop_word_filter.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":"rust/lance-tokenizer/src/stop_word_filter.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e9ddd034dbd9ffb431ccece7941c6c6b42634c364a6cce54f607d589c628af"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-table/src/transaction/operation.rs: rust/lance-table/src/transaction/operation.rs changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is RewriteGroup::eq at line 422), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: prevent metadata loss from concurrent column projections (#10512)\u201D; \u201Cfix: move inline transaction to a new manifest field (#9482)\u201D; \u201Cfix: assign fragment and row ids to new fragments in Merge commits (#7706)\u201D; \u201Cfix: preserve fragment reuse mappings across concurrent maintenance (#9620)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/transaction/operation.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":"rust/lance-table/src/transaction/operation.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57ff8a0da68c01f80ab027b72478e9ec3abc1653129ee6067e39efa4752da14"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/encodings/logical/primitive/field.rs: rust/lance-encoding/src/encodings/logical/primitive/field.rs changed 10 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is lance_encoding::encodings::logical::primitive::field::for_each_page_range at line 581), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(file): return errors instead of panicking on malformed files (#10334)\u201D; \u201Cfix(encoding): auto-batch top-level primitive and struct dictionaries\u201D; \u201Cfix(encoding): restore 2.0 scan speed by sending indirect reads early (#9903)\u201D; \u201Cfix(encoding): sort a lone unsorted batched read (#10036)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encodings/logical/primitive/field.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":"rust/lance-encoding/src/encodings/logical/primitive/field.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"9411f3fdc5ba52fe027f43065b49501770dad18f095d2c4bc0c0aab71db1f296"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-index/src/scalar/inverted/query.rs: rust/lance-index/src/scalar/inverted/query.rs changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is lance_index::scalar::inverted::query::fill_fts_query_column at line 1302), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(fts): require all ngrams in AND queries (#10476)\u201D; \u201Cfix: make MultiMatchQuery serde lossless (#9753)\u201D; \u201Cfix(fts): prevent overflow for unordered token positions (#9017)\u201D; \u201Cfix(fts): validate JSON index queries and targets (#8813)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/scalar/inverted/query.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":"rust/lance-index/src/scalar/inverted/query.rs"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"971bde734f8ab3e7e6ad9486f099ecc0e4ceb46df507461ad2e2a7b13e206d08"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-io/src/object_store/providers/local.rs: rust/lance-io/src/object_store/providers/local.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is lance_io::object_store::providers::local::windows::extract_unc_path at line 76), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cleanup): remove orphaned local staging files (#10591)\u201D; \u201Cfix(dataset): clean deleted branches from shared directories (#10489)\u201D; \u201Cfix(io): add optional local fsync and identify corrupt files (#9609)\u201D; \u201Cfix(io): remove dependency on unreleased object_store (#10363)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-io/src/object_store/providers/local.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":"rust/lance-io/src/object_store/providers/local.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9338c8b3f3d40ba65cb42b2ef94c79f5f3a29df02eaa4a101877ede2d3ead56"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-linalg/src/distance/cosine.rs: rust/lance-linalg/src/distance/cosine.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is lance_linalg::distance::cosine::cosine_batch_f32_portable at line 345), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(scanner): support fragment-scoped vector search with postfilters\u201D; \u201Cfix(linalg): unify Arrow distance dispatch (#10085)\u201D; \u201Cfix(linalg): preserve half-kernel fallback on AVX-512 hosts (#8877)\u201D; \u201Cfix(linalg): reject a null Int8 query instead of panicking (#8884)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-linalg/src/distance/cosine.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":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fea5c577acc44833df11f1d5ad6c343761da19e05e704132144b2b96ba186a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/write/insert.rs: rust/lance/src/dataset/write/insert.rs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is InsertBuilder::validate_write at line 340), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(compaction): avoid materializing blob payload batches (#10696)\u201D; \u201Cfix: start a new data file before a dictionary outgrows its key type (#10368)\u201D; \u201Cfix: delete files written by merge_insert analyze_plan (#9869)\u201D; \u201Cfix(dataset): validate nested schema names and stored system columns (#9499)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/write/insert.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":"rust/lance/src/dataset/write/insert.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ec6630f347d7c0cd467af8ad7ec1a154ac584a7548875ff3e18a58121539a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/array_encoding/logical/primitive.rs: rust/lance-encoding/src/array_encoding/logical/primitive.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is PrimitiveFieldDecoder::max_rows_to_drain at line 380), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(encoding): account for compacted slices in page buffers (#10344)\u201D; \u201Cfix(encoding): auto-batch top-level primitive and struct dictionaries\u201D; \u201Cfix(encoding): restore 2.0 scan speed by sending indirect reads early (#9903)\u201D; \u201Cfix(encoding): split legacy decode batches before i32 offset overflow (#9225)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/array_encoding/logical/primitive.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":"rust/lance-encoding/src/array_encoding/logical/primitive.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c9cb2b9bfd00882b8f247f7de378d3b22e1e9b8962188800f1706e47c290ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/mem_wal/hnsw/graph.rs: rust/lance/src/dataset/mem_wal/hnsw/graph.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is HnswGraph::visit_published_neighbors at line 1023), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: align mem-wal HNSW construction (#8238)\u201D; \u201Cfix(mem_wal): give the memtable graph the beam a refined search gives a flushed generation (#10185)\u201D; \u201Cfix(mem_wal): keep repeated vectors reachable in the memtable HNSW graph (#10186)\u201D; \u201Cfix(hnsw): make a persisted HNSW cover its rows and reject invalid ones (#8834)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/hnsw/graph.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/hnsw/graph.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a084a3f209c9e96b03fbe148cb042b87a900e492bc0cd46e996023b620f6e56d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/encoder.rs: rust/lance-encoding/src/encoder.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is lance_encoding::encoder::encode_batch at line 416), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(encoding): reject fixed-size lists of strings and binaries instead of panicking (#10460)\u201D; \u201Cfix(encoding): account for compacted slices in page buffers (#10344)\u201D; \u201Cfix: reject lossy null structs in v2.0 (#8507)\u201D; \u201Cfix(encoding): validate variable-width Arrow offsets (#8382)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/encoder.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":"rust/lance-encoding/src/encoder.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5aba9a179afc621fda798baf83d99f304879fcb70021b81d2121565d54f2b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-linalg/src/simd/i32.rs: rust/lance-linalg/src/simd/i32.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is i32x8::find at line 232), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(linalg): make SIMD slice conversions baseline-safe (#8874)\u201D; \u201Cfix(linalg): build on architectures without SIMD kernels (#9446)\u201D; \u201Cfix(linalg): use a lane-wise intrinsic for i32x8 multiplication on x86 (#8579)\u201D; \u201Cfix(linalg): validate slice lengths before SIMD loads (#8593)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-linalg/src/simd/i32.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":"rust/lance-linalg/src/simd/i32.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1791523a325cc093ba4cfb57c2dd61d0513ac0dbb58c8608bbae32a50e04ff3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/metadata.rs: rust/lance/src/dataset/metadata.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is UpdateMetadataBuilder::into_future at line 73), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: apply chained field metadata updates for one field in order (#11033)\u201D; \u201Cfix(table): detect schema-metadata conflicts per key (#9975)\u201D; \u201Cfix: validate primary key nullability on every path that can change it (#8101)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/metadata.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/metadata.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"399c14c40fcde678688d61cd9fd4c2912fc7c7161095a270c94fde4cc6282d30"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/array_encoding/logical/list.rs: rust/lance-encoding/src/array_encoding/logical/list.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is lance_encoding::array_encoding::logical::list::decode_offsets at line 214), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(encoding): restore 2.0 scan speed by sending indirect reads early (#9903)\u201D; \u201Cfix: return actionable errors for binary/string offset overflow (#9403)\u201D; \u201Cfix(encoding): split legacy decode batches before i32 offset overflow (#9225)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/array_encoding/logical/list.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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad559407905006d0aacf0985706b262b60860a68febabc5ffb9305badc18cd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-table/src/format/overlay/staleness.rs: rust/lance-table/src/format/overlay/staleness.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is lance_table::format::overlay::staleness::overlay_exclusion_offsets at line 35), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(index): unify snapshot-scoped overlay visibility\u201D; \u201Cfix(index): include covering fields in index dependency checks (#10345)\u201D; \u201Cfix(commit): let a deferred rewrite exempt a reindex across processes on untagged FRI tables (#9808)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-table/src/format/overlay/staleness.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":"rust/lance-table/src/format/overlay/staleness.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c3bb1b49f16013035be1f844497c376f18e2316ec820867c7dddbf800aaa4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: python/python/lance/sampler.py: python/python/lance/sampler.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is sampler._filtered_efficient_sample at line 117), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(python): correct sampling and bound selection memory (#10845)\u201D; \u201Cfix(python): honor set_epoch in sharded samplers (#9636)\u201D; \u201Cfix(python): make maybe_sample return the requested number of rows (#9637)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/python/lance/sampler.py\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":"python/python/lance/sampler.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"293c2f25b9723dab0e0c9c780295d9454ca9c889a947a883a6d4b243d174b10f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/hash_joiner.rs: rust/lance/src/dataset/hash_joiner.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is HashJoiner::try_new_impl at line 60), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: reject a merge or update whose right side has only the join key (#11030)\u201D; \u201Cfix(dataset): reject duplicate right-side merge keys\u201D; \u201Cfix: reject unsupported nulls in the \u0060add_columns\u0060 stream path (#9239)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/hash_joiner.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":"rust/lance/src/dataset/hash_joiner.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"863b852d4fd33a3742babd7a02332643b1caf3957b2768e2d91421ec1dd00cd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-index/src/vector/ivf/shuffler.rs: rust/lance-index/src/vector/ivf/shuffler.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is IvfShuffler::shuffle_to_partitions at line 655), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(index): reject a zero target partition size and out-of-range precomputed partition ids (#10322)\u201D; \u201Cfix(index): keep the trailing rows when shuffling a v2 buffer (#9246)\u201D; \u201Cfix(index): make IVF buffer setter safe (#8602)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-index/src/vector/ivf/shuffler.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":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"d838f42d2e91a5ab23b599d3ed054eb00996ab0e1032f71308c98f6e06edd8dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-namespace-impls/src/dir/resolve.rs: rust/lance-namespace-impls/src/dir/resolve.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is DirectoryNamespace::apply_pagination at line 131), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: stop opening a damaged manifest as an empty dataset (#10585)\u201D; \u201Cfix(dataset): reserve branch names before cloning\u201D; \u201Cfix(namespace): honor the requested branch in directory table operations\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-namespace-impls/src/dir/resolve.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":"rust/lance-namespace-impls/src/dir/resolve.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ab3b5bc28ed8999dbe28c6d123df0579699ce3544b8e3d9f5bae15b87a327c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-encoding/src/array_encoding/logical/struct.rs: rust/lance-encoding/src/array_encoding/logical/struct.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is ChildState::max_rows_to_drain at line 433), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(encoding): auto-batch top-level primitive and struct dictionaries\u201D; \u201Cfix(encoding): merge page dictionaries exactly when a batch spans pages (#10286)\u201D; \u201Cfix(encoding): split legacy decode batches before i32 offset overflow (#9225)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-encoding/src/array_encoding/logical/struct.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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54b21435e74574020f6c52f9d4bd93b04604a4d02873751c4d8ce07b417152c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: python/python/lance/mem_wal.py: python/python/lance/mem_wal.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is LsmVectorSearchPlanner.plan_search at line 573), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mem_wal): read frozen memtables in ShardWriter.lsm_scanner (#9687)\u201D; \u201Cfix(mem_wal): sync MemWAL type stubs with the binding signatures (#9701)\u201D; \u201Cfix(mem_wal): rank every vector search arm on one distance scale (#9849)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- python/python/lance/mem_wal.py\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":"python/python/lance/mem_wal.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b190d81c4cc04c3b9390b69d9aedcb6bca264ad76d9478fe49806d7251abe43"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/mem_wal/hnsw/storage.rs: rust/lance/src/dataset/mem_wal/hnsw/storage.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ArrowFixedSizeListVectorStore::append_batch at line 241), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mem_wal): keep repeated vectors reachable in the memtable HNSW graph (#10186)\u201D; \u201Cfix(mem_wal): rank a dot-product memtable index by distance, not by product (#9689)\u201D; \u201Cfix: make MemWAL HNSW snapshots publication-consistent (#8591)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/mem_wal/hnsw/storage.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":"rust/lance/src/dataset/mem_wal/hnsw/storage.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1195ebeadf5d9811b9c220d1f186e5eff69e2d41049f72c45dc249aa7c5b2a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-linalg/src/simd/f32.rs: rust/lance-linalg/src/simd/f32.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is f32x8::find at line 392), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(linalg): make SIMD slice conversions baseline-safe (#8874)\u201D; \u201Cfix(linalg): build on architectures without SIMD kernels (#9446)\u201D; \u201Cfix(linalg): validate slice lengths before SIMD loads (#8593)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-linalg/src/simd/f32.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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7eeee53fe7716bd89f7962e61bd098be818bfd2d5592c148356277e94136ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance-linalg/src/simd/f64.rs: rust/lance-linalg/src/simd/f64.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is f64x4::find at line 271), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(linalg): make SIMD slice conversions baseline-safe (#8874)\u201D; \u201Cfix(linalg): build on architectures without SIMD kernels (#9446)\u201D; \u201Cfix(linalg): validate slice lengths before SIMD loads (#8593)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance-linalg/src/simd/f64.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":"rust/lance-linalg/src/simd/f64.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b837985788aa76dbac920e61d04f85472fead8a6ee98815bb96f070dbc2062"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/lance/src/dataset/overlay/writer.rs: rust/lance/src/dataset/overlay/writer.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is OverlayWriter::finish at line 373), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: mask required struct children when splicing overlay values (#11029)\u201D; \u201Cfix(blob): promote legacy blob input to v2 on fragment and update writes (#10586)\u201D; \u201Cfix: resolve struct validity from data overlays (#9092)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:27:54 \u002B01:00\u0027 --until=\u00272026-11-14 18:27:54 \u002B01:00\u0027 --full-history --no-merges -- rust/lance/src/dataset/overlay/writer.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":"rust/lance/src/dataset/overlay/writer.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee07a7e82732a60d44eea9ebf0f302db0a7ccb815ab6473da43d98802ad371c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 28 significant file(s) lose their only recent owner: rust/lance-encoding/src/encodings/logical/primitive/sparse/writer.rs, rust/lance-arrow/src/json.rs, rust/lance-encoding/src/encodings/physical/sequence.rs, rust/lance/src/dataset/blob/locate.rs, rust/lance-io/src/object_store/read_dir.rs, rust/lance-file/src/versions/mod.rs, ci/format_vote_gate.py, python/python/ci_benchmarks/datagen/merge_insert.py (\u002B20 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f26f1ad7ee50128f6b44545656a8a245166d1895ad2c38759f57951ca82b4edd"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 11 significant file(s) lose their only recent owner: rust/lance-index/src/vector/bq/ex_dot.rs, rust/lance-index/src/vector/sq/pairwise.rs, rust/lance/src/index/vector/bounded_partition_stream.rs, rust/lance-index/src/vector/bq/prune.rs, rust/lance-index/src/scalar/inverted/compound/should_maxscore.rs, benchmarks/auto-ivf-dot/measure.py, rust/lance-index/src/scalar/inverted/index/search_candidates.rs, benchmarks/auto-ivf-dot/calibrate.py (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f18b2e096550b8cb9cae5ebca46ddb1c0846b42f9709bae14b5ead3d267c46b1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 7 significant file(s) lose their only recent owner: rust/lance-index/src/frag_reuse/row_map.rs, rust/lance-table/src/system_index/frag_reuse/ledger.rs, rust/lance-index-core/src/remapping.rs, rust/lance-index/src/frag_reuse/stable_partition.rs, rust/lance/src/index/frag_reuse_reader/cache.rs, ci/arrow_upgrade.py, rust/lance-core/src/utils/fragment_reuse.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f7011f6c6e7852d6ab54150ed41304a3111a181ecf64a8c3eacb9f4d588c25df"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 4 significant file(s) lose their only recent owner: rust/lance/src/dataset/mem_wal/index/tests.rs, rust/lance/src/dataset/mem_wal/index/plugin.rs, rust/lance/src/dataset/mem_wal/index/query.rs, rust/lance/src/dataset/mem_wal/index/test_plugin.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"74eb120375fc11d8f81a43f0f5e28889782674e6a6ed5f72b7a0f5a06d95e27b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 4 significant file(s) lose their only recent owner: rust/lance/src/index/vector/ivf/streaming_hamming/counter.rs, rust/lance/src/index/vector/ivf/coreset_algo/float_coreset.rs, rust/lance/src/index/vector/ivf/coreset_algo/hamming_coreset.rs, rust/lance/src/index/vector/ivf/coreset_algo/mod.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"82437d0969244f75945c49f384dbc5428274695f294bfcacc2107939fd6fb912"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 3 significant file(s) lose their only recent owner: java/src/main/java/org/lance/Branch.java, java/src/main/java/org/lance/Tag.java, java/src/main/java/org/lance/Ref.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5a977760efe14a65f32a042eceaba320edfe5e7a58838787ea16eeac3011c5d2"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 12 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 (72 single-owned of 1127 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; 1127 of the 1363 production source files in this repository met that bar). They are anonymized user #7 (2 file(s)), anonymized user #8 (2 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)) (\u002B6 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: rust/lance-index/src/scalar/inverted/combined/stats.rs, rust/lance-index/src/scalar/inverted/combined.rs, ci/new_contributors.py, ci/review_stats.py, rust/lance/benches/mem_wal/fts/LuceneFtsBench.java, rust/lance-table/src/rowids/runs.rs, rust/lance-arrow/src/list.rs, java/src/main/java/org/lance/namespace/RestAdapter.java (\u002B6 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace this with Arrow BooleanBuffer. \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a0f0ce449dad3806a74c016f7a741794b1edce140efe69c391140a4a001c89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add other optimizations, such as combining two RangeWithHoles. \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ff304e29468516d766b360e207e5666ca8eacc5ba997e410f7a6c90e87cf46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could probably optimize the sorted array case to be O(N) instead of O(N log N) \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"991bd6dafaf4278a002bc77258b8a09bf6e4f016df2ba57289cf4b3a7217d0c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Optimize this so we don\u0027t have to use skip \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e97b96167f5a286815166595034ee116b94ec2de684f820eb3cef935bedc1a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: return an iterator. (with a good size hint?) \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":"rust/lance-table/src/rowids.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cb6763b32b18a1d70e834a9f3810884319bd5ff809a60eb831d61cba819227"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we can make it so the vecs are always constructed in order. \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":"rust/lance-table/src/transaction/conflicts.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"43edbe374bdba9b2d1f04f1112b0cb4f488c76612f81a1675ba88baa78e456f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(rmeng): check new file and fragment are the same length \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":"rust/lance-table/src/transaction/manifest_build.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafa4799f4a7d9fd11d036f475de0119a6072648cf6879e74100b1c9ce7da31a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle metadata \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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c49dad76f0881fe09386d07fbeba857cc9ff9ae53e5bc5e99047508313d7b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle metadata \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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"07077c86b75c9f4e0b8715dab797b79a9ebbd6eee4e673f2fc6797ac0f0fde80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle metadata \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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ffd32d046e977516f71ab2ab40b8d4c96d7845c3c98a51cc8c6dde872005b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle metadata \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":"rust/lance-table/src/transaction/proto.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f62cf4e1a7cc99caa078b996fb5c911a9f4d2a81b6bfa45faf4813328d1925"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: write to a separate file if large. Possibly share a file with other fragments. \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":"rust/lance-table/src/transaction/row_version.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbc950953a319c3d4eb5ba5f534dca2485e25fd08faad83dad4a4eae2392218"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add additional validation. Consider consolidating with various \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":"rust/lance-table/src/transaction/validate.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bf7cb0c03787aacd10f2f83a377a4c7ac2b1cb83a7e7b3b8a32b994d8c189b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could write a more optimal version of 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":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8407bfbe3a5c9325352589f50e4aea97bd275a56cb6319460a3a856074ce5e27"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: can we enforce these assumptions? or make them safer? \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":"rust/lance-table/src/rowids/segment.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"317d90d044ab2885b63d22e4cedba52c28c6cbb314314e52913de7cc201e07ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: why non-exhaustive? \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":"rust/lance-table/src/rowids/serde.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7780ec60658d719e5d29adb046d63e336ab6760afd6022891a38303ec2d136"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: shouldn\u0027t this enum be non-exhaustive? \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":"rust/lance-table/src/rowids/serde.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02777b702d727bf1f77e255d952cf0db56d14ece229cab7c01ec2a159641c5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab8f1811219ce1cf070ff44cfde2760773f484fa9da1896b23fb418c3fce856"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-table/src/format/fragment.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"44db6373d2fa4977a103db07e7138a562fb9586e3feb80b068a01557f713956c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-io/src/utils.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cef0bc794d41d952ff1392f57703c38209790a44a143bd7a195669d777062b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-index/src/vector/pq/utils.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aac239b9fd07a2505ee3bdb22322ce0b50894babe64b4618ba0a737eb64f500"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-file/src/versions/v1/format/metadata.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42ebe77364e8b953961b46abbfb4e88e62e6b63da0588c0db8aaa8448b804d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-file/src/versions/v1/format/metadata.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c165d62153625b8341723e47c5493e2aa4769d669f3698cb7ba8721b6660e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf9783ff4496dfa20e9ae03e7e55f3a01e328814051ae0bdf53795f48430764"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f03cacb4afaffaf79719ceb607b20a192fea1c44d0904276c37e4e670135d11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b1aa7f53a506c8abee0d7011769c6d2839c4889d557ff3ccb3ab35bbdf45d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pub(crate) \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"899f1a78a676d525bed4ae68093d00fb4ca0b207d1b2843839207befe9f31a80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add isolation_level \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":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d14798d6543d9fb6d7e0a7a7253b1dbc229c6db65070490a6da2cf991146043"}},{"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":"rust/lance-table/benches/row_id_index.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e22cd1d5e0bcbf42b0954b4193ad686a481f115aae3a29923c90b5dc5c8f28e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should compare tombstoned vs compacted. We don\u0027t mind 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":"rust/lance-table/benches/row_id_index.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48e9d023ca4a2f46c0dab2f46b07e92c19ea88a4e6cc129f2f5bf2383d31e12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: collect size of sequences when serialized \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":"rust/lance-table/benches/row_id_index.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18da64051c44f1f10eb65cabd4b7f2c3e72f6a15368cbac971415964abe2bb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: also show building a BTreeMap and HashMap \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":"rust/lance-table/benches/row_id_index.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58f5a85326ca4a8eade327dbf2b36ec09e9c8d73af616959e1a01c9999f80be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: SIMD needs generic specialization \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":"rust/lance-linalg/benches/dot.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edf5e049d7d1f490de6ddc2b621a9168b7a36ae012440cb9f0c20d965d96622"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once we re-use this logic for S3, we can instead use tests against \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":"rust/lance-io/tests/gcs_integration.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7381487a8f1ea87a57ea043f028de663a147ca314054c6327807ac02c294add0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Clean up windows/unix stuff \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":"rust/lance-io/src/local.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd958cd7b1e9ebc92d437eb4ae436ab804a04fe3e7d988f39d8bde26038c95ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use constant size to support R2 \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":"rust/lance-io/src/object_writer.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b4a8b2cfb7c423aad30dc5001635bfc829a2e8975b9194ba5373894f4277af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make max concurrency configurable from storage options. \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":"rust/lance-io/src/object_writer.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"258af5e6e2691d2ba835fc6b1e8671592b8fd3e2d2d2d732f552b001be026675"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: At some point it would be nice if we can optimize this away but \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":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2fb281732ca8e363a74d012124340f05e13a568a83f49abf3197e3724aa5a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: At some point it would be nice if we can optimize this away but \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":"rust/lance-io/src/scheduler/lite.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"314712ece16d7fd9e57e048d488e9cc8701564e62ed334df5c6b8e14e0570a57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: change to read_at()? \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":"rust/lance-io/src/traits.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a83c38b047bf0a7dab3316ffca281ee377b9f8ffec28cd58c1c5aac2d9d002"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve CosConfig in opendal and add more storage_option 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":"rust/lance-io/src/object_store/providers/tencent.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"450dbbdc54fa8e5603ed8c4f33ccf5716c25d52bf153befd14c79e91accfbef1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: In the future we should be able to do case-insensitive contains \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":"rust/lance-index/src/scalar.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cd38b3bfc5f7317737e680cdeeb9b3f727ab939f823b08104559c4311d307e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make these crate private once the migration from lance to lance-index is done. \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":"rust/lance-index/src/vector.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee9d30935749aa65aef01fc1840f18f01c3f9303794c2037d400351ffdaacda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: should we support fraction / float number 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":"rust/lance-index/src/vector.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98dbae5972df3dba8161c24d9f6f8035d93ee5b5106fec186c3fd628187c9b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: This isn\u0027t actually beam search, function should probably be renamed \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":"rust/lance-index/src/vector/graph.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e49b3b4b265ed2a0e918a1cf9eb1860b198a35ef1b65eda035da27442fc40d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use heap to just keep nprobes smallest values. \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":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"877f317f10deb53ca3c7e94e4d76cbb713aa0e5abd9b46dddeac4dc754549efa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use heap to just keep nprobes smallest values. \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":"rust/lance-index/src/vector/kmeans.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21e83d01c443000ff8907894fc20b30a86d16b2a9db969623fa71168b711256"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Bf16 is not supported yet. \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":"rust/lance-index/src/vector/residual.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d559b93d60edc950b641c19629cc94b825e541d1535457ead020adb0ab10f084"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: move this to be pub(crate) once we have a better way to test it. \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":"rust/lance-index/src/vector/sq.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"47354b612b2cb2c466a554e44591e54211d181baea472f7dd3424a9ab3c87925"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support SQ4 \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":"rust/lance-index/src/vector/sq.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd044709861ccbcb73870700038e9e0bf5f4d117ea3b2b84c99d52d03b0788e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: should we rename this to \u0022VectorDistance\u0022?; \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":"rust/lance-index/src/vector/storage.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea397e40948704653304401bd1d483d3f4f4fb7778de5dc0bec90c43745b715"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use rust intrinsics instead of x86 intrinsics \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":"rust/lance-index/src/vector/utils.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4916a2eb1a57dadc9cfc524a4b0096ffc3de5f434d08c58e628b2afe5c816af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use chunked storage \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":"rust/lance-index/src/vector/sq/storage.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"067c2701e0dd3648454a1818cd320e9c6b6af7b80623e663e46815551ae4d32a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use chunked storage \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee775ff9a8e2cd1ef77fcb4c80ad267bc757558c6e9e934fdda4ac8d357498b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use chunked storage \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf561977eca9eb2654ab7c29c64a6bcfe63f7fb12d27e414a31db6009dfd111a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support bf16 later. \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":"rust/lance-index/src/vector/pq/builder.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"402b89b010903a81aba135ff26fcc4458060d56bdf0c126d025504d7bfe339e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support lazy loading later. \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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"aded8a8a67e970ce6bd45ed6161de1c8e4f00c7c96fd4b6c8f46787e5128bdb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make it 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":"rust/lance-index/src/vector/pq/storage.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a765d6c7791cde8e357cd9a7d06a54a7088e2f50b254df857406b74e6064ef3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Upstream an append_many to FSL builder \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":"rust/lance-index/src/vector/ivf/shuffler.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4099c19d8608c750514c00cd35cebef5a6f62faa935c9c4efbbf929ab1057df7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use datafusion execute? \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":"rust/lance-index/src/vector/ivf/transform.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8793f658d2e2b53cb762b8c0840747926c221f4b132180dda4f470966d7da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: move these into IVFIndex after the refactor is complete \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":"rust/lance-index/src/vector/hnsw/index.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3416ed162dded2c79c6fde277d73254ff047293fa123652bac9bb2c524bea87b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: HNSW can (and should) support pre-warming \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":"rust/lance-index/src/vector/hnsw/index.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d8c38e520b49fc4052eeafc093ebe4bc89ab056a0337c072fcb5c2b83f18bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: to support other data types other than \u0060f32\u0060, make FlatDistanceCal a generic struct. \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":"rust/lance-index/src/vector/flat/storage.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d62313cc384ebcd85bddc9d3f5b2eb4814ca99d2c96af2120184bacf062de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider upstreaming 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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94b45f83e1ce44a5190b472940cafe0cefc728c1c6bf75f5c18c07d67fc4bfa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // \u0060Matches::Some\u0060. Refining this for low-cardinality data is the TODO in \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fe62d498b7917412c9617b2f3b38816a156dc218a7f28662af04484c3bd90c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could potentially parallelize this across parts, unclear it would be worth it \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff204e97f01a67c6214435f9723ecf36cdd299d632e1aa7c41b9256fe7e7e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the lookup batch retains a per-page \u0060null_count\u0060. A fully-covered \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62030a94237e31e2d1006d28f6f197f62b9b29274fb951eee29ec70eed12ee5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: benchmark whether value-ordered pages, searched by binary \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":"rust/lance-index/src/scalar/btree.rs"},"region":{"startLine":3375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd149ccc95891bb29516be492f9cc3bd5f5786eede16102aa0e3ea6416603f71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(low-priority): This is maybe not quite right.  We should filter down the list of parsers based \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":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"869b86b6c00b05169ea6655fc36f959ca9677a5a56bed45894fee37d66e0f5db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: We could potentially try and be smarter about reusing loaded indices 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":"rust/lance-index/src/scalar/expression.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ae81bd452d1110bdf76208557ce195cf8344a6b0dabd3365e2408cb5843475"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This causes the index to appear as btree in list_indices call.  Need better logic \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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbba5a1513889d334e21fc88840aadf4430b4204c7931f7279d99334d30a632"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do we really need to wrap the query or could we just return the target query 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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aa34aaf74c6268a2ef64d4a5f14d6baf4ae65e943657e3bfba20686db06093"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe we should address it by https://github.com/lance-format/lance/issues/4624"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b4f112a63f706decfae43026c94e84ac06048e4c79a97304a2e24f81c04bbf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to lookup target plugin via details to figure this out correctly \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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a438ed9e1cc5f953913b1d0a5a67af5562761fb10266f24934c49a3ed9914357"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Allow return Result 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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8354a831badcc276dc6b8f58170b0c96ebf107e585137362c86eb2d71a150685"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use something like ${index_name}_${path} for the index name?  Don\u0027t have access to path here tho \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":"rust/lance-index/src/scalar/json.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc9bdb8eee7a520e889cefdb28b6d27f2c40acdfdf7b542fcbde671547129dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: size the pool for the exploded rows. A prototype build over 100M \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":"rust/lance-index/src/scalar/list_element.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b26ce8b7fbf52940ce8b61145402f6e744fc0edd033faf4bcc1b2f4a0d03845"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support IS NULL queries \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":"rust/lance-index/src/scalar/ngram.rs"},"region":{"startLine":2892}}}],"partialFingerprints":{"codehealthFindingId/v1":"63aac32bbaf5e72d168084d63365861ffe12a4cff7e9dd23ae788f6c8cabe5eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Test search functionality \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":"rust/lance-index/src/scalar/zonemap/tests.rs"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f27d7fcc41d32dde9ba7c36df316c7f124ef81cc0071bef6f72bb6ea5fca7c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider read_chunk_size before submitting requests. \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":"rust/lance-file/src/io.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7354feca68420834198138c57d9e3e0cbcb7ebba6268c494632b23e0e7d511"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Caching \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0492fe8b1e070c009bddb04afb5a694325946e7af53d39db1062da14360fdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once we have coalesced I/O we should only read the column metadatas that we need \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"73caf8ad7cf072e483bb115ee022a50a2a5ea65cabcbeac7a297ba544ca526a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add V2_1 (currently fails) \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":"rust/lance-file/src/reader.rs"},"region":{"startLine":4240}}}],"partialFingerprints":{"codehealthFindingId/v1":"58407e61279cacd2a8bc48b96e84a9a35f1d36bfc4afb65fa83dd08865f47340"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use tokio to make the reads in parallel. \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":"rust/lance-file/src/versions/v1/reader.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c6b014a8d420c27da2733a556769041e5e85b3dfe6693324332dd3409a9244"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: read them in parallel. \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":"rust/lance-file/src/versions/v1/reader.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"124551d9d9224069d43b45a0f0690bb79ba749d24f01eb5dcc687e495006f349"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: these max values shouldn\u0027t be incremented \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":"rust/lance-file/src/versions/v1/writer/mod.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e75838e6b725929382d42f4e620c82a81509326c924f4159a65698546a70f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Decimal256 \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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"7734090b7d72d5484f437fbb02f8d58612e8bab52bf4556fe23954d697f7cb90"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Decimal256 \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":"rust/lance-file/src/versions/v1/writer/statistics.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e551153acc1059c39f6632868360aa3245b72d5a4d022a4db5d83b5dbbcf563"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make min batch size 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":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd681ed8fcb1cef88986446d3cff619cc5c1c11193dc50d3f48c2af94bee282"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make reading positions in chunks 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":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bd848bda52a2bbf8057ec1ab27763dd0afca3d7b575a6aacfc3bde969d0095"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// This is actually a _third_ compression strategy used in a few corner cases today (TODO: remove?) \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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae400e612be0c36c4c8bb6d0867d08b6dbc2f768bcafacf919cb1ab0737b90a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If the dictionaries differ, we can possibly do something cheaper than concatenating \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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22295e757e55598a3318d2a69de5179f87e727b617245c4233b708dd02712a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we just always normalize indices to u32?  That would make logic simpler \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":"rust/lance-encoding/src/data.rs"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b496d0f0fa79ef9316cba312f126d315c665d76024df4507e9adb8bfb5aedeee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Implement backpressure \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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4b7f5e9968c2d35a800b7451b431bd73373be6692122d41e18b046235f7492"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We only support keys_sorted=false 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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3a0e32fd98660125b3f164c11d9c88789ea54305214805353d49fa32e6eae1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We only support keys_sorted=false 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":"rust/lance-core/src/datatypes.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cf0edaf08f1cf560dd763a74b70d232f5a79c8e931693a42a8da90f42acb38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We only support keys_sorted=false 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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0550d8ea6c087e041fcb393b165f567d88da0b0619587dac21be07148e070139"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Still need support for RLE \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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67253605dcc8226c3baa63362e827913d666cc010fb42128adc0c9dc9c48454"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:  Is there another way to create the root field without forcing a trip through arrow? \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":"rust/lance-encoding/src/decoder.rs"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb802eeb6cde178b20c2f55465e6198d610738ec1f52655988b6127ee1acf387"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: All of this logic will need some changing when we compress rep/def levels. \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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fb7bfe6b090816eee4fab87e12acfa970133fc30aba71bafcd4a48a4144354"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: In the future, we may concatenate and serialize at the same time? \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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15908dbe7fc8547bd93c57b8491c278d9a812c50740fa4ad24aae955821fe7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // right now how many items we have and not how many rows.  (TODO: Shouldn\u0027t we know the # of rows?) \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":"rust/lance-encoding/src/repdef.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7201a34d0de277c64825f7ed288db878a0295fad80b5abd2dc75aa10188a6a20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (https://github.com/lance-format/lance/issues/4783)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/physical/binary.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fe4bdb043c7f1f88f8f3eb39928c8eca9fde9da826f1fb5953df2253edf6e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could potentially compress the data 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":"rust/lance-encoding/src/encodings/physical/bitpacking.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0264e2fd6cdfa5bd45b0257b5fb8ecabbc825fcfabfafc96ae404fb96a7379e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support setting the level \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":"rust/lance-encoding/src/encodings/physical/block.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5334911e380813039f223b7f767d81dca39681b99dec83bd91e1cded8a78198"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support underlying compression of data (e.g. defer to binary encoding for offset bitpacking) \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":"rust/lance-encoding/src/encodings/physical/block.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bd0f3b10451a1d9647ad1eb6926e14fcb2d12040469af8633a156925839f8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should support underlying compression \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":"rust/lance-encoding/src/encodings/physical/byte_stream_split.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed36124e1c2980cc3912caa288798d914b86ac507d95f17f5f185ecab54a6ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: This seems to be potentially limiting.  Perhaps we should create one symbol \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":"rust/lance-encoding/src/encodings/physical/fsst.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2d3a3ef2a5172544ae5d2ddd712135bcff37de66badd86d94fbf0d82e8772b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Early exit when schedulers are exhausted prematurely (TODO: does this still happen?) \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":"rust/lance-encoding/src/encodings/logical/struct.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1b5e4b73584965e1901d0db6a500e7e52eaf94addf0d76b6b2403d235afbf9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Right now we just load the entire rep/def at initialization time and cache it.  This is a touch \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":"rust/lance-encoding/src/encodings/logical/primitive/all_null.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25c23e58346904eea571b52a5d9a552f699c49849972d8d141b1b6b35d0a636"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fast path when there is only one null index? (common case) \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":"rust/lance-encoding/src/encodings/logical/primitive/dict.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"992434259855a730d49c6e28ecab8e9742d248db6ce44c459296b85322df809a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: In the future we may allow metadata buffers \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":"rust/lance-encoding/src/encodings/logical/primitive/fullzip.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bc5bae3307691af693ff18728a9f58fe30a63819b43e794c4a00515815db3b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// the decoding of the block. (TODO: test this theory) \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":"rust/lance-encoding/src/encodings/logical/primitive/miniblock_decode.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bdbc4a75148bcebf513fac37c9f9c6c61521670416a0903cc787b73fe19ff4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: We should concatenate metadata buffers from all pages into a single buffer \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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a3d4c03170ce4c8c21838ad4448731ee5036b9756a112b2650b6bdd74fcbc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a heuristic we may need to tune 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff126e68cd3cb281b4eaaa725d61fd8bf8bcd8f08548da0d72bf52fbe77f1803"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Can use unchecked 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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f259156ee11603ba66b288e1d1b01f1ceeeb08fb5c0d50730f4a6a0e0c9eb318"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Parquet sparsely encodes values here.  We could do the same but \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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"97eb6f0134c74280e76db08b90dd37e34929aba0e3bafd04aae050b8eb3f3cb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: byte pack the item lengths with varint encoding \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":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"666276c6c99ca18bf3288f0b58acc8426f29a22b0d10bb5053b74f52c25f9ea8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/lancedb/lance/issues/4809"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encodings/logical/primitive/structural_encoder.rs"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6acd73fd9f59b32ff562c4e9efb7611fafa4456afa06c2249b8ac8851f4319"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for signed integers, I intend to make it a cascaded encoding, a sparse array for the negative values and very wide(bit-width) values, \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":"rust/lance-encoding/src/array_encoding/strategy.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"337fc7be3961ba6653c815f4e3c1b7fc162fe9aee6471fd9f1c091f3be00c296"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support/tests for primitive nulls \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":"rust/lance-encoding/src/array_encoding/physical/basic.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a781fafe32b558053d328265992b0b5b8ab451505f772e9e6aff75ac29580d34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add tests for the all-null case \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":"rust/lance-encoding/src/array_encoding/physical/basic.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"49963e8070cefe93e7d3cb3d4372527282253f6758b9aa0e6fcf8a1895324bd0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Normalize and cast (TODO: could fuse these into one pass for micro-optimization) \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":"rust/lance-encoding/src/array_encoding/physical/binary.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a26fd2499db1b93d079cfd4e304000b57f783743bbe0cc7a644279d017795c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This copy should not be needed \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":"rust/lance-encoding/src/array_encoding/physical/bitpack.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a84382e069124a11896a57165ea8c9431f145e265a0ad47a684a4e8ad6aa21d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do we really support values greater than 2^32 bytes per value? \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":"rust/lance-encoding/src/array_encoding/physical/value.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"81051edbf3fd07f07bf8fc76605056201be0dfbb23b118592c8928e775b53149"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This logic relies on row_ranges being ordered and may be a problem when we \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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a9c11feb9a8f69d355a3b642bb5dd0f8a31732bfe978734350fcc2a69d94e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Maybe consider writing whether there are nulls or not as part of 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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"718627883b85d564f61c15d8e2b6749b12c78664320feb8f8299fc8c9e1efce4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Test the case where a single list page has multiple items pages \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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec005f823069cc5cc25f6c26ee67f6820b06b4e98e02e275afec0402a73c2ed3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This could be slow.  Maybe faster to start from zero or do binary search.  Investigate when \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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"a358a1e110cab88226b93bfe737f8deca68fb3c723cdcbd9f2b1c071bdb239ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// as well. (TODO: Test and enable large lists) \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":"rust/lance-encoding/src/array_encoding/logical/list.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"436c3e8d1906ba3b97c08a0a93377a6b4a77f3ac349db097ca83af09499bd2e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could potentially use filter to simplify decode, something of a micro-optimization probably \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":"rust/lance-encoding/src/array_encoding/logical/primitive.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1aa293c22e15bd976a5b079bc05594becdaae999598d0e6c936825b4e18fd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: In the future, at some point, we may consider partially waiting for primitive pages by \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":"rust/lance-encoding/src/array_encoding/logical/primitive.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac564efeae535c84f24c980662e57bb9998d852fb6a595ce573323bb8a59467d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could check here if there are any jumbo parts in the mix that need splitting \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":"rust/lance-encoding/src/array_encoding/logical/primitive.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06ab8ab015bc0aa454409906d07589af668e5ceb844f836e3923d40e9339007"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It may be a minor perf optimization, in some rare cases, if we have a separate \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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a0618472f6c0317885ea6bb6edf3e25990a618ed55cc01ff1cf0e1fc20ef46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Test this case \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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf50443f889a0380b759219b6e8754ad2dec169e5ca4713fb4e57a7459c78a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If this is a primitive column we should be able to avoid 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":"rust/lance-encoding/src/array_encoding/logical/struct.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"678f446afa661351e40c359a4cc35b0685e8333dda2617f36563ffa29b1275b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe faster to build the vec and then repeat it into \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"7616bd6b854831896e1abb4b11728fca5424737499d1fa1a8f6c607d5eda7c9a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is pretty lazy and could be optimized \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":"rust/lance-datagen/src/generator.rs"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d79cd0d12dd0a583254a9db554d5323696f6e82cb12e83720ce23c0a82c2e75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support multiple \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":"rust/lance-datafusion/src/dataframe.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7437b70b6e5df247a88afc3e67692c5866eb47d8cb74a5a4f86a966dfb09485"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: test the stream more. \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":"rust/lance-datafusion/src/dataframe.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a28ead0734f9da52c8a2669d969bf61acd02a2b5269bdbf8f82d2cb1e440e0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(tsaucer) I chose SUMMARY here but do we also want DEV? \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":"rust/lance-datafusion/src/exec.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2055b2d645debc87bc271bdfc41742cd6e6deb8be098acdc9089d190fad1aa1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: cast should go thru CAST syntax instead of UDF \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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d0df80c1ed74e693d67505191ed23f60eb5e911c09faf3c6880acd2f3d587e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: use SqlToRel from Datafusion 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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8526f327d9751ff9dc537c08d47f59f858bd13cd8e17aadf2c087509bd4e3c9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should work, but sqlparser doesn\u0027t recognize anything \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":"rust/lance-datafusion/src/planner.rs"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c5c19731baafbf3100ab98fc30ac3b32217a70843f093399b2c988ca1a506b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to allow == as equals \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":"rust/lance-datafusion/src/sql.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b64312f34127e3d331e0f4fa87b08c183aa4d2db3dfdccf50c9a690707c9ad4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this logic doesn\u0027t catch user defined fields inside of struct fields \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":"rust/lance-datafusion/src/substrait.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e631754e2420f310b4478fb06a4243f9122b158cff8c07b1bf1fa3273aa003b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: once Lance pins a geodatafusion release that includes \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":"rust/lance-datafusion/src/udf/geo.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbf71ac2e93db2a27f5faeadf10652da29532fb7a4ea1d1e560fbcab4f29265"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Benchmark to find a better value. \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":"rust/lance-core/src/utils/deletion.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed034f32d31fce589aa1a41fe5ff9c3b907642bc0b5e88f1a948654b6a16eb49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: impl methods for DeletionVector \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":"rust/lance-core/src/utils/deletion.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ad934653b0a7b07b91a68181a361f82587c4561316434d9702ff4066bfd03e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //! FIXME: Make the upstream SBBF implementation public so that this file could be \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":"rust/lance-core/src/utils/bloomfilter/sbbf.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c5c6f2b7ec804362ec8c220b3782fa6cf7d87af6f8328eb76104f6f3851afb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Find way to move these next three fields to private \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":"rust/lance-core/src/datatypes/field.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f207ba59a552943521a7effe748b4b022853d887ffa4f08057f5ecb00cf6e86d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is not a public API, change to pub(crate) after refactor is done. \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":"rust/lance-core/src/datatypes/schema.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2c2793d7773e7ca4bc9348e94dde4b5fd6e637b689bcf0322a8b53789f6951"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Use Arrow extension mechanism instead? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f433dbc0c54cb74283204d53481ab4454431a9295f825ccdbebc5cab8e35383b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: add merge nested fields 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":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"958afa84832a3fcc708ab56bb45a50e735b65c69d78287ee2d8a507a187eaaac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO handle list-of-struct and other types \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":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b3d847b7aed1c082b022cb2118f1063d6ed85fea65dd9f71809299e8856f31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when possible, make indices cover a portion of rows and not be \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":"rust/lance/tests/utils/mod.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2123c5725be2b77dba7e51b9020c57c5c247358122921bff3439f4de38e2fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix bug with bitmap and btree https://github.com/lancedb/lance/issues/4756"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e01f74c1e2945ec2eefa28d7ef0b430447c88abe66cb4ddb087006beedc7b00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix bug with zone map https://github.com/lancedb/lance/issues/4758"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b4218af1db0b07a36b7829d3875c2e41328ed957dbc94ce31a763dbb36cd42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add boolean to bloom filter supported types https://github.com/lancedb/lance/issues/4757"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0629ae93c9f4691432c1f23e2cc67a112271997eeeafd4145890e689fd3f1763"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // #[case::string_view(DataType::Utf8View)] // TODO: https://github.com/lancedb/lance/issues/5172"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd66e3b6197475ce25ca55050b44166fd7177d33350b7d46d11b7c28a16ee7b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // #[case::binary_view(DataType::BinaryView)] // TODO: https://github.com/lancedb/lance/issues/5172"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9624afe2d09f1d12677a20470d49c40acadb6adeb29319755205ea6f1459fb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add Decimal32 and Decimal64 https://github.com/lancedb/lance/issues/5174"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/tests/query/primitives.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fb1e75c57497f820c0bb656f6fca1e05071dd909fe3e920f85635b4c4577d0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: HNSW results are very flakey. \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":"rust/lance/tests/query/vectors.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5af1fa5e52c6b3de946ae86a67095308f3200c95f6d4f7cc11896345221400f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consolidate the count_rows into Scanner plan. \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":"rust/lance/src/dataset.rs"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12ee85877ef67f66b773445170eaaef76b829d0a678bd130aa65475faf74b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix scan plan to not require row_id for count_rows. \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":"rust/lance/src/dataset.rs"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ef206612532251f3faccbd8d25ad8206158a3c8fd3083d4b1eca5352c0bcb2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this shouldn\u0027t exist, as upcasting should be well defined \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":"rust/lance/src/session/index_extension.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f321e6ad21d007e276da729e247ebe28570a992ff27ae11a73c79915a3ca356"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement this trait and wire it in \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":"rust/lance/src/session/index_extension.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3c9f4d927fc81024ea359c9283f2c7684d3a0162f0279281f62f6868711b39"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Allow Append or Overwrite mode to retry using \u0060commit_transaction\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":"rust/lance/src/io/commit.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2e926860bb12675e93cfa836dde476aea030d64b533c25f79e9fdfdf6c7d37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(refined-pushdown). \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfcb427e0a9f23bfd2b1e295d5170f6a1eb4cc291d43209a031b6333aef677c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Modify the \u0022read task\u0022 concept to have a way of marking when \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe6404ed73f756999e55d6ca456f795057068d39bec3070ffe375d89d89c9d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support multi partition \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":2795}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c7ed33bdc64796637843acde5b1d711622ba9b34e0e62ce0b166c276fba591"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support multiple partitions in the future by coordinating limits across partitions \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":"rust/lance/src/io/exec/filtered_read.rs"},"region":{"startLine":4114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8128afa98e8ececd3b30d6dbe12bddcd49ca118d52d37c97260b4153b1e1d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: We may want to search the partitions once instead of once per delta index \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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5957c7a103df8da75e3d50be5adf9bde882681a3bcc49cb60344d69b438c4467"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: In the future, if we can know that a filter will be highly selective (through cost estimation or \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":"rust/lance/src/io/exec/knn.rs"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8630f00f9597c2b27e15e27ed802a1a78f6c166215e7f58e172e5724d5828c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could try to coalesce consecutive projections, something for later \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":"rust/lance/src/io/exec/optimizer.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"67227cd5fca349b7071d308bb36979ac7f4516cc4ff5f6afce8fd296b2474252"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this logs on each iteration, but maybe should should \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":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91c4ab59258db2a7c8aadec8ceeb60ff32e901636ecf345b93193ec977b2364"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: test pushdown with nested column once https://github.com/apache/arrow-datafusion/pull/8256"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe365fd775b74d64cc96e335b5b8266fe567dde11e74dda5b225244d1919c641"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I think there\u0027s something wrong with how we handle nulls with dictionaries. \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":"rust/lance/src/io/exec/pushdown_scan.rs"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b52a990ec36e757b04341057dc8767e72f48cd64e71bf6da5aff393a4b66d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Ideally this will eventually get tied into datafusion as a # of partitions.  This will let \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":"rust/lance/src/io/exec/scan.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45128b97938edb09a4f60ab17133ffc4ce3699e5e4bc82f4a3859036a997673"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these tests are copied from super::external_manifest::test \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":"rust/lance/src/io/commit/dynamodb.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b189a800ce4f5740cf6466e4abb8781f405afa65afd9e8beb76facbf83bdb77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix 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":"rust/lance/src/io/commit/external_manifest.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8f84539e10de945876387987ff3e4c8744732887a4be56e895b454c05cc245"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we can reduce this by implementing a specialized CommitHandler::list_manifest_locations() \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":"rust/lance/src/io/commit/s3_test.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c561dd4629d216fb2a2556c0080ca81eb82b7262fa62cf0efb2fe3f52fbb11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We could potentially just drop the fragments being replaced 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":"rust/lance/src/io/commit/conflict_resolver/check.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df9c3122c113d75b40673f38b357103fa47018cdec69bedaaf0aeb80104e5cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: also cleanup the old deletion file. \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":"rust/lance/src/io/commit/conflict_resolver/finish.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"158f6ebf1fd02c2d9fe93f842ffd64ef7a7d59dee5b372765ccaa51cdfc07004"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The old deletion file should be gone. \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":"rust/lance/src/io/commit/conflict_resolver/tests/rebase.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e4f589a25733ab1acf8ee2969ff787704b1530ed9316073984d79f05ac8261"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this will change with stable row ids. \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":"rust/lance/src/io/commit/conflict_resolver/check/create_index.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf3051032d0c5925b09dc6cac34ec7bd947c80c5f1912b02e5c01bf3afffa81"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix after https://github.com/rust-lang/rust/issues/51114"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/create.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8e7db61ff21c698581388b536d01fd40190851b9b8f8fd7080924f60fa2eba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(row-map totals): also validate the transition\u0027s row-map label \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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"77333319ce9a56a4e90a75bc534bffab2ac1092eae9fce34c8c740c3f7b478c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support deferred remapping for all index types. \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":"rust/lance/src/index/frag_reuse.rs"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb9f5e2c820453fb5a43ef3bb630812028c75af7c207b94ec40e6016cb4994a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: At some point we should just fail if the index details are missing and ask the user to \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":"rust/lance/src/index/lifecycle.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"01323afb7214fcb7770a9277b6264d154e2b06049e18430744923f299f3dacc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we need to change the legacy IVF_PQ to be in lance format \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":"rust/lance/src/index/loading.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae8c2ea377131fe620a16e57a1655090da50f34bbe60ca5cc5a450109bea96d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support deriving all the original parameters \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"495af0f3843608a8a99516afa250f8256eba27af9a89825b2aae97196ea807fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support consistently deriving all the original parameters \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a6b93c9faa00d1759e4235f4814c0b7b9dcc85a5f41d0c6acdebd9b861075a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support consistently deriving all the original parameters \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a6e477cecc0f651db5bb9bcef36fc573c4ef50ff1c6505d77572dd2a343933"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support consistently deriving all the original parameters \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2499}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d434b8f7a91e30220f725a73a9119bd14656b55b0f90fcb00950492fa33b7d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: support consistently deriving all the original parameters \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":"rust/lance/src/index/vector.rs"},"region":{"startLine":2510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8838540e79198df98ade4a15549509fa7dcde22f4da2c3a59b04875031eac65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: don\u0027t read vectors here, just read row ids \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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f09a2194d3f120a0a73426f0cd974956297c29713be8a8415fd62602a20a61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: wire into a general \u0060Dataset::rebuild_index\u0060 method so users can \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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ecb7b4192938ac4d77a0604605ad1f18f6e47327084771c05db8153465c155"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: wire into a general \u0060Dataset::rebuild_index\u0060 method so users can \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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f8c04cfd0bfade4a829f5168e352c5237515a427136e77b76498e4e32be084"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: move to \u0060lance-index\u0060 crate. \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341b6b962a6fb36671927039567d239b70cac8794d499e4067e28deaeeb8d07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: merge \u0060lance::vector::ivf::IVF\u0060 and \u0060lance-index::vector::ivf::Ivf\u0060\u0060 implementations. \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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f22acec6a6e58363185644b071665ad5d5e888448788093e0b17b5fe2a70b5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for now the IVF_PQ index file format hasn\u0027t been updated, so keep the old 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"995c5b9656aa1c0aa6a232494cfb90fa87824e98a01fb88d66666e0098e0cb73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for now the IVF_PQ index file format hasn\u0027t been updated, so keep the old 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d418a08fb75a679b66139970fce09489e4f123facde2ffd51c633ca99d5cde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for now the IVF_PQ index file format hasn\u0027t been updated, so keep the old 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":"rust/lance/src/index/vector/ivf.rs"},"region":{"startLine":2842}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1aaf38dc5bdea513620287d32aaee7ee5cdda7895ef44d77caaf599e67a1f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consolidate IVF models to \u0060lance_index\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":"rust/lance/src/index/vector/pq.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ad2573b89e90a5a38572b68d948f6b5347d7db31aa1222fcf50a0ace2cc4cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support auto-remap with frag_reuse_index for HNSW \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":"rust/lance/src/index/vector/pq.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f68e5625ba93c4caa00be364e51503b258325d516e3f73bd45238fdd1435fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make it configurable, limit by the number of CPU cores \u0026 memory \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":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc447a4a587a3cb56b41d1d5940d60c5ee4630516add4213e879b79be2722129"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: migrate this function to \u0060lance-index\u0060 crate. \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":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6521411cf0cec2f2e1a8223bd46be48ae6f44ff4017403c556c8e2fbf4508548"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: extract heap sort to a separate function. \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":"rust/lance/src/index/vector/ivf/io.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c9e6e299e0502acfc3e09b3d1e540016be2536902cc0da4172b54282631643"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once metrics are working on FTS queries, we can check 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":"rust/lance/src/index/tests/create.rs"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"60378b03b2af17b84a67964eab657e8844bf20495402327162f98e536116f0f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Evaluate cache size accuracy versus latency impact. \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":"rust/lance/src/index/frag_reuse_reader/cache.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf23b7634a9beb99a77db44bb7f95181baf05b2b426bf0be9f589fae3342322"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We can\u0027t cleanup invalid manifests.  There is no way to distinguish \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":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1505726ba5d56acdf36326b2c3f238ee5498033bab989a734fb1c5d08a79de"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME, change this method to streams \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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8748482592ef4dce35a64d9e24eccb56a7ef21346d97a0d9b26aa71e62d74c9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(overlay perf): this could be avoided by teaching \u0060ReadBatchParams\u0060 to \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":"rust/lance/src/dataset/fragment.rs"},"region":{"startLine":3924}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d83a61a687c677367a994bc971e4e99eeea04571d40a29b4133e2442f21ad3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the structure of the updater prevents batch-level parallelism 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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e65fcb1d9b145a0f7519185f49e58753667fd0794f9d1ccd3cca7b94ea59e47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make it possible to alter blob columns \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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"af706d0356b58e9055275034901d75fb00fdc9a988e24b108ed9578f47830a59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: adjust the indices here for the new schema \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":"rust/lance/src/dataset/schema_evolution.rs"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1b9df598652806f1426527db066bc5c547618b74078f03d712923100d16ca1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove this once the bug is fixed. \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":"rust/lance/src/dataset/take.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb0c89e678d8c1fe270ee84b8a65eff20398ae0339b63998175faceb6d21a79"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Parallelize the key sorts and sort-merge join, then merge their output into 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":"rust/lance/src/dataset/update_join.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef17aa3ffd731ee5bf1ad7eca2c7a5bf16f0b3244c257bdcca219d296e7d08bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: In the future, we can develop different strategies for selecting target bases \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":"rust/lance/src/dataset/write.rs"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c6b8da92af0f89a266fa80188f53dbbf73a90a78dc9637b9ee3172ac8ae963"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reject conflicts that need to be retried. \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":"rust/lance/src/dataset/write/commit.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee8963a255850b0b54545efdc093d53011d11dd46fdb50f5dbad182a2a2fe53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make these parameters a part of the builder, and add specific methods. \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":"rust/lance/src/dataset/write/insert.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e1a6f36cbf3d4a637943848372672cfc388f6797b5b6c9f39b21b16378dd3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should be able to split the data up based on max_rows_per_file \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":"rust/lance/src/dataset/write/insert.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ce0159432c8ef67c896968199c9ad45a766750905ab1a4347d1ba57d5c22de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: choose per fragment inside the write sink, where the matched row \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":"rust/lance/src/dataset/write/merge_insert.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c0580076e5e2de6cfd594e944d87c192d646d03f483483bbb56036cd9e059f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support nested column references. This is mostly blocked on 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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a428d76525cc1d2cc194af1c8bcb68e854d64b11535b7e4d4dfa054f692b6711"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: set write params \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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c25a07bea4d67e92f5414a005a6d03b2d63afac104c3765a88f78c2e3a05fbd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support distributed operation. \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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef21b050396996ee19569c7286c068f6ba0c821d50d32dcfc2d3a55e498c747"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support multiple bases for update \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":"rust/lance/src/dataset/write/update.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d215f4c67ac3ab988fba17e0c3374838327fe570963395a5112c2809720ccf5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could skip scanning row addresses we don\u0027t need. \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":"rust/lance/src/dataset/write/merge_insert/update_fragments.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46a7b01b5cf5b4d5203bae67dcfd41bd837dc5d53358a8516dfebb3386512b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: provide alternative default than null. \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":"rust/lance/src/dataset/tests/dataset_merge_update.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"04977adfbc300db94898a0e0cf79feb339e2b914a75ffce2e9593dacc640e090"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(stable-row-id optimization): merge_insert treats the whole schema as modified \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":"rust/lance/src/dataset/tests/dataset_merge_update.rs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"128d4bf2e4946ba98dd0c594c22cf9bfb85b44be5aba962c32da0035a26a3209"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could write an optimizer rule to eliminate the last Projection \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":"rust/lance/src/dataset/tests/dataset_scanner_plans.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e4612757f4653bca9b0fd103b9c5008f98424cf518fba3fbdaa9e0dfca71b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: i is scanned on both sides but is projected away mid-plan \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":"rust/lance/src/dataset/tests/dataset_scanner_plans.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"853f4250c1e50f5aeda3a3a699efcb72a2dc6c8b03cdf2b07b786685747ed6f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: re-enable diskann test when we can tune to get reproducible results. \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":"rust/lance/src/dataset/tests/dataset_scanner_read.rs"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6c094ef1c3381832e7fc24ae6e7781e2487b5e0b2a9dd11947cb568eebcaa8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // distance column if included always (TODO: it shouldn\u0027t) \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":"rust/lance/src/dataset/tests/dataset_scanner_scalar_index.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0370df45c7e88b350727fdb332de5f100131e9a65ec669006c5d37ffa7f76a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: enable compaction for stable row id once supported. \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":"rust/lance/src/dataset/tests/dataset_scanner_scalar_index.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa7cb294d0f2dd5c1349c04992f4688988009993ac8888480398f5c116cf7c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could maybe walk the query here to find all the indices that will be \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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"769b807663dfe43dab1fd1726bab2faf96e31ea863cfe779ae0e2a62d6570e5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: rewrite the query for better performance \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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b662f1c1932ce0e2d26129c4ff89a3fe0e29d783fe5e935d8f594eb35756353"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Does it always make sense to take the ordering columns here?  If there is a filter then \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":"rust/lance/src/dataset/scanner/plan.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfad8eae29086a597bc85207ace111d660ec4de97c68354a502d6dd39bfc4a15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve the recall with WARP, expose this parameter to the users. \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":"rust/lance/src/dataset/scanner/vector.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"71559133e6f89a86caececab319787a5e9138c118c12f927ea2e8e07a69739cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: Take parameterized input to specify dataset URI from command 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":"rust/lance/benches/scan.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9503b3b45af3aab40e8e80ae7ed8a4f60139c30b2d02d92231685016a9edef8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this runtime configurable (e.g. num threads) \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":"python/src/lib.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6853fd7422ecdff583436ee4e24ab3f7b7be54ade0ded16ab796f112dc4f9ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/lance-format/lance/issues/3966 remove this workaround"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/src/lib.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c48e99178f974d599b54b444e78932d162d06983e596ee76d2c656b47c3070"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should make a more succinct representation \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":"python/src/schema.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c1fe2f1c16d96426e168e349ee8ca5f2e44c669f9ae58d9ee790e8ab428491"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: uncomment tests once fixed 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":"python/python/tests/test_arrow.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"159be3f46523ac39586e65daad1c5c818c462dc0f0d97457c4d7d66b3418ad34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: V2 does not currently handle large_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":"python/python/tests/test_dataset.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fb17fbd493d58e176882250b78a349863a421fa4c1046a3d95c0c23f41f0e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: sqlparser seems to ignore the .y part, but I can\u0027t create a simple \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":"python/python/tests/test_dataset.py"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"678f67d1d68ccad4c95b30daede5ca66e462ba83a3ac6e5bc8a76dca2ac15eb9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: It would be nice to use frag.merge_columns with a UDF, but if the UDF \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":"python/python/tests/test_dataset.py"},"region":{"startLine":3193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a7063e6dde07aeb4c98bee1862aaadd45eaca164224ca78f8f19e54a2ae36a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Currently fails, need to fix reader \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":"python/python/tests/test_file.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3d0e9462e127d01959e1815d2f10cee01144818000f3685f0d6cdae4e56ee1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Test reading invalid ranges \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":"python/python/tests/test_file.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"58be7408fcb0780e8275be8d6318a25cee5042b6b2226d9d65fe0b659a694f5e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Test invalid batch sizes \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":"python/python/tests/test_file.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"61df7fbf486c0dd025665ea12183f3c1808336057f5bcfa3299e075abe57a209"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: In the future it should be possible to verify \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":"python/python/tests/test_json.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"09805a87585ddedc578a130aedb4a16116b5293065229855fd51d05a6d609646"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO allow Dataset::create to take both async and also RecordBatchReader \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":"python/python/tests/test_lance.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c9b5841683bc2b5760dcfbda509596ce97dec2d58958244a741db59ab11d4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add remaining types \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":"python/python/tests/test_lance.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1f160e1b2559fa78a9f90612cc13619f57c40bae23ff5a6ed20f4ea0fe5bd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: underlying dir namespace doesn\u0027t support rename yet... \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":"python/python/tests/test_namespace_rest.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687c7b8fc4806d7a0e9d7813304a93fb85c0c8744ba457a385b1f1823b1e78c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: I changed this into \u0060json_get_int\u0060 for strong typed filter, should be \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":"python/python/tests/test_scalar_index.py"},"region":{"startLine":3657}}}],"partialFingerprints":{"codehealthFindingId/v1":"411db5875ab8dc55af766ac68f9d7ac3af5ae38147e46d9d447ede19aa0463f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: _distance shouldn\u0027t be returned by default either \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":"python/python/tests/test_vector_index.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"15775d7c7dd64b2e41accc7aae95e91995105b021d033948ca51d4dad43feafe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: _distance shouldn\u0027t be returned by default \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":"python/python/tests/test_vector_index.py"},"region":{"startLine":2847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaef44b8c6457097218197eb5f8e9e2f8d3f84f167316748d3ad516f9e424f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: allow string_view once 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":"python/python/lance/arrow.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53060ff633f01e6c0812805a4bb8b563e3c0cfc4508852974f601d2bc8acba7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: allow string_view once 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":"python/python/lance/arrow.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c539502d686962fb5e4e2bc790802d09422f4af3133ad643d546000a613e2ac4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: allow binary_view once 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":"python/python/lance/arrow.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8afc83c752c0d32c9cd684d417ff8464aa1f5a2edd5e6e4e746e247583c8a99"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use pa.BinaryView once 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":"python/python/lance/arrow.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"918980d361b347c7b1cf3c8871adb23dafea164798dcb630efb2e92fa435e4d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add VariableShapeImageTensorType once pa.VariableShapeTensorArray is 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":"python/python/lance/arrow.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"836cac3b4b5a3345d3bae04d3c5219e75dafe50eff4a092d9655895a0e0b61dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate this method once the upstream work (apache/arrow#33103)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/arrow.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d0ff1cefd2be344017a35e1a90d221c400b59293dd3587008dc0e2bff79566"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consolidate all to use scanner \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":"python/python/lance/dataset.py"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"677b048974165557d1dc94fad45477b5bd7192aa208d505631d2b278ec447edc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO add support for passing in LanceDataset and LanceScanner 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":"python/python/lance/dataset.py"},"region":{"startLine":6056}}}],"partialFingerprints":{"codehealthFindingId/v1":"773a55fe9e75f271c3259a9381059c1ad8ee178dbbabaad9753c43f73c9db11b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: only we eliminate the path method, we can remove 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":"python/python/lance/fragment.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b66e234e69e7c867fc0dde83b24518fd253418f2e44549a9dad99fa36ebf329"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack for Windows due to \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":"python/python/lance/vector.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b80c4a1912bee913b2266f3701d695bad9dacf401fdc65bd5a95cf6d8b0e1ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: support bf16/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":"python/python/lance/torch/distance.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ce7bb2556375410e08f0c15c3aeea580ed1a3ee91b66a80f52dec4aa7272d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: change this to L2 distance (which is a breaking change?) \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":"python/python/lance/torch/distance.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8960b0c741baad68d290206df2adf03f02b4edf0b905e9928a8f5560ea693fed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: python datetime supports only microsecond precision. When 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":"python/python/lance/_dataset/refs.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49bd0995bffd80b45ecae900cad6300491a624744d4912da4830fb0a58eb02a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: encode endianness \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":"python/python/lance/_arrow/bf16.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b113e4ddea89c224d6169fc05e0102c21695d2ced789b2858ef07812ea3c8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: decode endianness \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":"python/python/lance/_arrow/bf16.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d075fe04bd4ff18cd4bbe52cb9c016d47d015916206703a4c6d26920b8f50ffa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix in https://github.com/lancedb/lance/issues/2956"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/test/java/org/lance/VectorSearchTest.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f1537763cdb827ad2b1ce8387cfeea4d3522aa3b091174cb2c94748271a113"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: underlying dir namespace doesn\u0027t support rename yet... \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":"java/src/test/java/org/lance/namespace/RestNamespaceTest.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f4baf3cdbb9746778bf056e85caf8743bc698771e1572de1ec9edec2a5bb08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Verify zone_size parameter was applied \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":"java/src/test/java/org/lance/index/ScalarIndexTest.java"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5544bb94f3dc3c410574e796102caf4164793c08640cd61b1984d1c69f00fa7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Verify rows_per_zone parameter was applied \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":"java/src/test/java/org/lance/index/ScalarIndexTest.java"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f3641716c915ebfc3f0fca322ffee090c846c0f9d7e7e3b8b04cfd1e874984"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(lu): put get java object into here cuz can only get java Object \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":"java/lance-jni/src/ffi.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c7d9ccf8120d53da1039ff7c7c16a80e749162691461a7abe2347384f5f0f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: add tracing \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":"java/lance-jni/src/lib.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b87ef2974db5ec6bca9f047e908c6cd790156b86a0ae5f79e5ddaa4d30e9a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement timeout-based cleanup for defense-in-depth \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":"java/lance-jni/src/task_tracker.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fc7c559db1afe2740322ad13e35807090175d2bd3d78945ce83a95e2e2fa57"}},{"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 \u0060test_data/fri_straddle_pre_6610/datagen/src/main.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test_data/fri_straddle_pre_6610/datagen/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ccc283cb1f3d87019ba9878656969c3f8764462f10ac491e354c727f8b0d64"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 9 of 35 project(s) overshoot their size bounds, lowering Project Cohesion to 5.0/10. The most over is \u0060rust/lance\u0060 (367485 LoC, 720 module-visible types across 52 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d8040da5799144b177acc1924ed35106c41bf15c6d3b017ec4a5a23e63a50ead"},"properties":{"commitSha":"7f09191003b7c9feb0f2f75d2baec9bf36aa6c4a"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35424c36d54e028627926faf52a5ba56d43364bc237ab146a21064dbfa04ef4f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"ab6a2493c55d19a655268bd1fdd490362e6185e32d0d4cc231a795be70a0ca74"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67267509788958157a5eb44107ec65e73c149a221096df3377d03b65538fe691"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"025c6c9adcc14e60badb01ea25d14061894f962060931604db275f2c184ce2d6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e58f76cabe74ae821b0c2f44fa7f1a0de480fc6ef6fa11ebb119b6d8bb8bb0c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"05396d2a42d09d25401e7f645b2df28ab7d9245a49891a99885c317d19150bfc"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"403620abc74a8156182e01004c2ddc478077fafede3b664f06b6617264265b33"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"941dcd35e714337e82a0451fb3dd7ff0854bd25f02217ffcd7e4e07be3db60c9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc34e30ba30c7c14b8480d8595fa61b87a997bf9b6ce9c3951e9d5e1219ef55c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98f92ec644e693637c5a9a66800eca7754ed7b4c680e314afa29b27595cb3a06"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"844ec5888480b5e3532c0840c13bc2e5caa6134b551c40eb6287d7eac595782a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5d3e90d7cfde82c55e8cfcd1331e9ee2bca00e60dd3b83ed68900a225ed634a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d34416b167b540ac9c645a75271becd6fe162ccf274423933e569d4c8a066c2c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1757cfc9c6dc48970ff7d9938d941c49c14bdb8be99f8686179f192ede7f2a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6007de2588146d5875d19e2d56593df46b102305a36ceb460d8c4c87e968c236"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f3e56c645cffeeac46102d1d94aa04af3c51dc25ba89f226c6cb0ba2ea0c248"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44e04a9eb90bc92ad99900081058ce1385a44cd9840f8d5142454bfd2fb10060"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b1f17ed938fc0a95057e5015b63c031fa049d4eee2bae2908c8c33ee3f5de08"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59cc961c9fad65916bf4bb277d8e6ccdbb34fd978f86ec8c6a9fcbabb842ac79"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edcf3649751be579e3051b4cff8c4f001d010e1a175b270414e0d3e29e2eeaf3"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9c6d567f7c0c65a58006507d8937e968c3a227428269683fcd26a3d5f28c146"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f7c00fe2c7928db50ec39d326b3969fc9bc20430cfc3857922c48d6679d77e9a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a75d7c252b8b3cbdf26f56d34b89df156e608bf7ab50ff4aef45c14d959f41e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d94abc9f7a4fc68b7675af0b3649a79973184b93a5db11a610e6d64fec1dad00"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9855cec16f4635c6179aa281cdf48b1afc54e9287712230444be18f3cb2a7ad0"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"1dc281ebff34b846ebc23b927e88a24124b43c4745b9c03b0fda7277e90bdc19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d527c151c9ea57bc69aeee8f2f59de7c6973b6c548efad9c7c83b4c700401fae"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"a0e6b4dda0f3b358aa88551300f50ef3473a5ba14d3c8058d5ae948aab180810"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"41fe0443a9fe093075c7cee2a6fe569143990ac5d2cb44df39e28038922822b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf907fde6dbe5fc81767baa51649b034d623726094186e5c261e693a88378b4f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dec82c80711d7d98dd6838ae8c7a087658542165d959d6a3781691d4334da292"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b758b841eacf9de7256051fa3aa53ad5a0bb02610998f5eea584491d7c794662"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0264d371effee7360907bbb12375edfc2697e0092a057e7a96a0a9460062a700"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37357205fda757dc8fc483c86aee716cca3c873a7dbd11e9c9751873349e72aa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"795d240dacbcd9654dd98c8b82cc5834c4dfaeed912a12d440f9a264e3f38bdd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"272c81e013916aa115ac30897ad8919f349e23ebe1b41fc3dcb4cbc8893f5d1c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"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":"fa6974ef218c1e99a7d1ed4409737c335bafed0a6cfe874bb18e16fd4fce4fdd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25fb8f039cd28ed0bee3cfd212fe015bba6d8d8f1390f749a42dde1935582f78"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4c7bd43c7872a2070f5a2a9dc8cb48c3461493f4d83ee4b2d109571af61a6cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb736d06daf02ac7ae266756938cde3832e8ae07869ce6484a9fb0c6828d5159"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c41c686c7c7e6553ad5b25f80fbfdf8cf9318441f7e75b1b8214aff9fb0f5e8"},"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":"7b7c6834272b8368c3a4c4ea2f470af22200223f9627b87fb4f31f93cbec7cf5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ea7d2e3091076a6e9a06d36c3f89b120ff4549f32d90b7e0a215f13b5268a45"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d74e9d2aa8ccdf627275f914485b0d7be6f5b71014353a4698909795747625e2"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7524e7cb3c11ed3c0d6e9fc7390f98d72d3cd8046f3cc3258c448a7737175d4f"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"397efe3154fa9f44aa89b0c5df1411c29a7886288da39f83603040b59d660e6d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0378320e7af56d3d8c5ff967411af0d7f1bebe67185b8d39b40ebb7f0dbadbc5"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c167c0230705f033914571c145956453ac72e3c2a749af2e9de6ea541682a4e0"},"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":"42a7425a98ebddc080e115930f6690b4037d83ae31e1db6d313a589c4351d081"},"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":"7f7542b1c13bb9710d0644162b08c305db1f2afc9a7611a7f639620513816c2e"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce195d67bffad9b6172e2a75b99016b3b7fd4996839e30f154424dcd082ddaeb"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2066fd406960cc71e2ec19edc8442019809740fbfc57f6ff6bf144dc9c7a4ddf"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"3f30724d0750aa1777332b2dbd0ec776269ba5f10d443a7a6083f504074b5716"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61b506507e3848b40bbd9511f0a0ef6073215d973afcda51471233f3783750e8"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7387c59605952116a0677b2a80f7034584496cb9c0f28fb5fe898f063918ff6a"},"properties":{"dependency":{"package":"io.netty:netty-handler","version":"4.1.86.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4eb4078d544ffbf9d1aa8c5b779eb9af247e473ebf327ef1e16e36332e858e8b"},"properties":{"dependency":{"package":"pillow","version":"11.3.0","advisory":"[GHSA redacted]","aliases":["BIT-pillow-2026-112390","BIT-pillow-2026-112391","BIT-pillow-2026-112392","BIT-pillow-2026-112393","BIT-pillow-2026-112394","BIT-pillow-2026-112395","BIT-pillow-2026-112396","BIT-pillow-2026-112397","BIT-pillow-2026-112398","BIT-pillow-2026-112399","BIT-pillow-2026-112400","BIT-pillow-2026-112401","BIT-pillow-2026-112402","BIT-pillow-2026-112403","BIT-pillow-2026-112404","BIT-pillow-2026-112406","BIT-pillow-2026-112891","BIT-pillow-2026-112892","BIT-pillow-2026-112893","BIT-pillow-2026-112894","BIT-pillow-2026-112895","BIT-pillow-2026-112896","BIT-pillow-2026-112897","BIT-pillow-2026-112898","BIT-pillow-2026-112900","BIT-pillow-2026-112901","BIT-pillow-2026-114501","BIT-pillow-2026-25990","BIT-pillow-2026-40192","BIT-pillow-2026-42308","BIT-pillow-2026-42309","BIT-pillow-2026-42310","BIT-pillow-2026-42311","BIT-pillow-2026-54058","BIT-pillow-2026-54059","BIT-pillow-2026-54060","BIT-pillow-2026-55379","BIT-pillow-2026-55380","BIT-pillow-2026-55798","BIT-pillow-2026-59197","BIT-pillow-2026-59198","BIT-pillow-2026-59199","BIT-pillow-2026-59200","BIT-pillow-2026-59204","BIT-pillow-2026-59205","BIT-pillow-2026-96636","BIT-pillow-2026-96637","BIT-pillow-2026-96638","BIT-pillow-2026-96639","BIT-pillow-2026-96640","BIT-pillow-2026-96641","BIT-pillow-2026-96642","BIT-pillow-2026-96643","BIT-pillow-2026-96644","BIT-pillow-2026-96778","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-165","PYSEC-2026-2249","PYSEC-2026-2250","PYSEC-2026-2251","PYSEC-2026-2252","PYSEC-2026-2253","PYSEC-2026-2254","PYSEC-2026-2255","PYSEC-2026-2256","PYSEC-2026-2257","PYSEC-2026-2874","PYSEC-2026-3451","PYSEC-2026-3453","PYSEC-2026-3454","PYSEC-2026-3493","PYSEC-2026-3494","PYSEC-2026-3495","PYSEC-2026-3496","PYSEC-2026-4326","PYSEC-2026-4327","PYSEC-2026-4328","PYSEC-2026-4329","PYSEC-2026-4330","PYSEC-2026-4331","PYSEC-2026-4332","PYSEC-2026-4334","PYSEC-2026-4335","PYSEC-2026-4336","PYSEC-2026-4337","PYSEC-2026-4338","PYSEC-2026-4339","PYSEC-2026-4340","PYSEC-2026-4341","PYSEC-2026-4342","PYSEC-2026-4343","PYSEC-2026-4363"],"reachability":{"kind":"production","file":"python/python/lance/arrow.py","line":308}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1410849fad4b2055d9a31f0619365cc81b65413c67990d2d975fd12d64d0c77"},"properties":{"dependency":{"package":"io.netty:netty-codec","version":"4.1.86.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"882cf4766731cda40a5921a2310a336567d9ff3c1437b636165d9583484f3f01"},"properties":{"dependency":{"package":"io.netty:netty-codec-http","version":"4.1.86.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d337b1da2456fcaba348aea8a9a30167c2813f0841a6f1de49badbeca3d29913"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-core","version":"2.18.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dafc014fe5f25afedb642cd62cc7e452f7997057e5af1c8c43f0941360bb1d35"},"properties":{"dependency":{"package":"io.netty:netty-codec-http2","version":"4.1.86.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54835da2c44a6a05971a8ea0d6f8b131f70dfb8fe695e0cb86456c27c2e3ea51"},"properties":{"dependency":{"package":"org.apache.httpcomponents.core5:httpcore5","version":"5.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ecc211eeb1b34a4afa73826304cde264adc2f705c7e530dd5903e0fd4dd5a3d3"},"properties":{"dependency":{"package":"org.apache.httpcomponents.core5:httpcore5-h2","version":"5.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7530fd8c59bd1ae9b3e88b874eb165eee9f88794ed95c073de6dd3e418fc84f"},"properties":{"dependency":{"package":"com.google.guava:guava","version":"33.7.1-jre","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ecc8d322673b8cb29f6e30661e4d2f3cb3bf6707035898b09be7caeb01fb9ce"},"properties":{"dependency":{"package":"filelock","version":"3.29.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cb935de30b072aca8eabfdc386a97c23a9abf45942d38d220077d4a7e3bc14"},"properties":{"dependency":{"package":"fsspec","version":"2025.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4217"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"},"properties":{"dependency":{"package":"lru","version":"0.16.4","advisory":"RUSTSEC-2026-0253","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.16","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa79a10b96ec2d3080d1c7a0bb243c9008d9fe628ba7b43bcfb4985c4c89084a"},"properties":{"dependency":{"package":"lru","version":"0.16.4","advisory":"RUSTSEC-2026-0253","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9bae5758d7b6a51192d815a9136616039d135a340903621d5b20c29b5321ad6f"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.16","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a913382d85607d6610b5e3c03744167b68674b9f4a7851a3ada84db5a83e8c55"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3492998d79f93aa6dfc57db7faa0c6acc92d9d75214de58c45d14528ca0725cc"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fc0b7975fe84fefd2bec34c8005060e9e5180940be90b8435731b2461d2fd76"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd22d26a6d646700720eb5a0cdbd47800aced5e08b8014f7e0591824d7154db8"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ff3f3e47ddfe17b1d5ef67f35d6f71ca7d31307882b7b813cd0fd1972c36672"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f943f969d169d4e1d1b04dd869c62ccb7eab237cf89240ea9bf53f78dd7c9a23"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"345e68c74c8f58452b7612cebda819e5365778de3c7fb21f42f7f4740046b568"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7421081b3f44b5a51baafa300e7e15a012051841685fff70eace70a42c70c483"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ff00614f30e99781371345df29364686df46d954a63b06c8b88e01c1bb829c3"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e128d2e3b546fba2d14a0f367f76c4f641dc73473f55f0396ff2beb84e53900e"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5351ce76fa16e216a6f24e51627b14a62f84239eaca947148af59152dbcfb858"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0403","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d107fde20d93b5b530012bfda7442e5a08d0b2e948683f05073778af697761c"},"properties":{"dependency":{"package":"io.opentelemetry:opentelemetry-api","version":"1.64.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"173b17e381ab5fe0680729f221f0da84289848bb73cab721e9a37c3c74e3f96e"},"properties":{"dependency":{"package":"org.apache.httpcomponents.client5:httpclient5","version":"5.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c568cff01680e9ba1be4b0c28a55eccf8d508d39d32870099413265bf815a2bd"},"properties":{"dependency":{"package":"rustix","version":"1.1.5","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9e7565db8950c8e128d75dda7330e8fb2a8b76538d872ce62a4d4d88b07ef3f"},"properties":{"dependency":{"package":"lru","version":"0.16.4","advisory":"RUSTSEC-2026-0253","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae5b7481b8f94d6c0365141c802ab34f81227640ce96e638ce149b482ca5c4fa"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.16","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab559341adca93443cb6331dcd48e631211b35540a094bf345a9538bcb77decd"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9261e4f7174bc2f48d1815820c22c6b47fb71e79dfd8d78de8a2b2d61389fb92"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a6670726d982fd81d13d412db4285af632c4421cf699c4bd8cce93570e25c01"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"404d89198309f6890f8c0a65c02f22813b05e7175feb2db0ff1a77a81e03d578"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1256b8df3543d5132cd9d7467c8235fc08c7f9331177791317d5860080f92e2"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edde60fcb01abf689814517aa009d38dccfcf4c6b3673425bbdcc4c2707131ff"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09430f9137e72f1f85a5dcf1461613c512590a41e54d37cddcfdd9c1c76ef059"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"938a064d0946e8670aaf005a440f721a289086fce7f419a3faf90d7d8dacfd20"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc54ecf2991990e6f252d3602875ecf1b610dad884d1c9642ab275638722a133"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffb16c64c4a29ed55e3eb5bb8406eff3a549c56da0750358d00e39a5a46602dd"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0d9421eea0c8c5ab471e94cdf2a922434d223511de5e5378f94b39b040ebcc4"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.1","advisory":"RUSTSEC-2026-0403","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e7838e9d5b1e4a5b87dd3a1148d671f3f73d8381b2882a58d940badde8dee93"},"properties":{"dependency":{"package":"datasets","version":"4.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3716"],"reachability":{"kind":"production","file":"python/python/ci_benchmarks/datagen/wikipedia.py","line":13}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b6ae6d39dcecaef6a4bc2bb00068e4356973fa157a97356e16e7285224ac7b89"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.30.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c3db367eaba5269fb1b20ed9ee2ab85a753d0d303d333782461c2549a41399a"},"properties":{"dependency":{"package":"pytest","version":"8.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1845"],"reachability":{"kind":"production","file":"python/python/ci_benchmarks/benchmark.py","line":25}}}},{"ruleId":"D30","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":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"46f49615124997a47ae03424c2b2e05e8f53b2ec644cd091de0dc203d46f11ac"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.1","advisory":"RUSTSEC-2026-0441","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0f456f408d9298cadc03e8973501368d62ec4ed67f9e907f4d44dc7634636b8b"},"properties":{"dependency":{"package":"quick-xml","version":"0.26.0","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"2a645f9633d8784b57d64e8687427b7edb2f690a74dc8cd41deb94aabdd2d71a"},"properties":{"dependency":{"package":"quick-xml","version":"0.40.1","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ac07f6d7edfd49261e66a0ecf670dc83aeb27f637d0eaec58b89ac41744f7835"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e1ec44e8faca9d3ace38fe720f4b8c642c0e3e3ec100766551e1185910860f91"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ac0a24c0c8ab7f8bdb127bbb1aa562b28cad26f245dbe935475452a6b6b56778"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"15093b1ba0306f2bffb6ea14d977026f787bb13754a954d8e1eb6d5adb7b3a7e"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"82556d600c9434f0da1da2247cc0e4ad7e1f310f597e06d1a586dac82f310589"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d9b23c9509a64c267bf3c5cf27796fffd94e457c74aacdcd8876a65db17ec40d"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d7d3b97f2907345d16485d22559c129959c4ceac13b4b4489d664634be393c2d"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"b3e7bc5993e5d2fb24171f1d5f12ff19aab3b0cf57a94ce12996946531b33e89"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"992efb023fc1f39e970561c93bc799836933d2c53c01b8f2b42babee3b7d01a8"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"476176a40f7dde5968156df41a3ad51fabec36db7b9ad2c78af7fdee298fccfb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"3b1568673c97a5ce9b1ec5a08dba083d705b7ca92047378b6f33333438b27491"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"c790f76cf70ef3b7e11b2b2e046aa998549442297137ee1873617b41f8d8e165"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0253cdb433485d93f1259fe935cad7c5df0486a99bae72ae65dbbacb158f6f3"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 31 of 1127 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 1127 of the 1363 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: rust/lance/src/dataset/udtf.rs, java/src/main/java/org/lance/otel/LanceMetrics.java, rust/lance-core/src/cache/backend_uri.rs, rust/lance-file/src/versions/v1/encoding/dictionary.rs, benchmarks/hd-vila/datagen.py, python/python/lance/_arrow/bf16.py, benchmarks/sift/metrics.py, java/src/main/java/org/lance/index/IndexOptions.java (and 23 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/udtf.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eea12fd3f7c4a1afe892bfd29baff5891bb9f6ac2d11630e176fc07ef0961e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/otel/LanceMetrics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf2900a4aed625125d229615de5557fb1ff0810e1e619c14cf9b0f1b22b909b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/backend_uri.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62812a5ab2444856c543af64b74b77372cc22835e04fbfced43b341e2efe512d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/encoding/dictionary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5403ca54c84c07d75157f2ddc7fb14da73f6f14045d431371be35c0d5d578205"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/hd-vila/datagen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da91e09ef931cd3263e0ad93d605ae770b3722efb5b421280cd3858fc24460b1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_arrow/bf16.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"093fdb8d8c75f8def0df0470edbece8a2bc447b0e486f55d78214b7a6cf6086b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/sift/metrics.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb230381a8eae675e25a40c71ba0eb28191bd76e98974bc16215a72de0941590"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/index/IndexOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdb7b95b1baa42019ad2321ee3e966b14721861e76dbf15243f1f8a4e5dd53c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/schema_evolution/optimize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8117051103322958ac2b1ae548122b2fa1db7040624698550a3bc57ae11f010"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/sift/perf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8670ff1b8275ad5337b889c39a14c3e58fb84167a19fc7fe0ee8052e83c8271"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/_dataset/sharded_batch_iterator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78ecb35d50fc512bf0174e738d1f9e92bdab385c8f5cdcbac603c7b7343a901"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/levenshtein.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b61876a7b0262a4d37f2d01d299de6e23836d7fe95684b2a029675c0717eba0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/full_report/vbench/runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5491e131b134fa8089635396538f1465e968625095a5b1beb96f3fe4472c83d7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/ManifestSummary.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b523dfdb788c762b63354fe84c83f7e74cf407b4a57561c57bfda2ed6f687bbf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/ExecutionPlan.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5957c2cc8486e2c9a116201b96fd2a6f0e2b708bc28ea26ae3fd14f035351e33"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/utils/bloomfilter/as_bytes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fd27b7b9b1fc8bca1917bf82a5a1eb641ee9b16cbc0a79c121c0d914f8989b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/simd/x86.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eb6a7dff001a844a5dc00d6d7bb00379afffb76a58a7ad5ac66eefa58383cd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/dbpedia-openai/benchmarks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"714b67af2f150e9a9931196504e68015eda241f9be72f8a17731ab4afde9115a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/flat/benchmark.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e67407dca14d311985ed529fe2ccb5a2d01a8bd7128caa463e97545fb42814"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/full_report/_lib.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd38c2eb0d7af5078a3453b812152b15403d63fba82ac56e7140552624c3341"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/index/scalar/BTreeIndexParams.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"159ce2bfb49907e8225ae52da3bd421e3c2a34274a8866bac51f78182f596ff9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/ShardingField.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0708f0a84fc1ae01ed2fa2f3dd9fac3d575f7bd758eacb29881ec83a37d1f03"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/operation/Delete.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8381b663be26829521606ab073a1d2a242b167991a028fe1be449ba2c22c2de"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/full_report/vbench/data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7823e151fd883dd588f318b514ff75c1da64442fb05a7f02291430b4ea2e4f68"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/sift/datagen.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e23feed9973a3bc86be2fe469916ab1580bbacd0856027af1e289afb8c9464"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/ShardSnapshot.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7116e1ad2112eaba337f76e24194c0c5f3a8e28d1e9f8d65e5f0d63409db538a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/bigann/dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13290b258a7308bc4caa24c4a64bbdb4e1d1b1da7868c43bb5e9874375830c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/sift/gt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a273eab33d176d49e75d6745055a468904146cc158407a20206d17f875f96726"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/operation/CreateIndex.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a707333590e4f3d77fbe7a7e551a520f5ac55d081c16076dd9e3e01cd1debf19"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarks/sift/index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69a26888b89770bfc87ddaced021529eeb786e7a596901f8e052a7c64cd5112"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/src/main/java/org/lance/memwal/MemWalHnswParams.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c533fd61cde7090a5625114c983ac6abb4c31037ffa3337029dffdf41cfac654"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: __init__.py \u2194 index.rs: \u0060python/python/lance/indices/__init__.py\u0060 (context python) and \u0060rust/lance/src/index.rs\u0060 (context rust) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 of the 10 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 7 shared commits counted here, the most recent 3 are \u0060f317dd18\u0060 feat!: migrate bitmap to index segment based (#6869); \u00608ada2e9a\u0060 refactor!: remove index segment builder (#6997); \u00608962655c\u0060 feat: support segmented inverted index build and search (#6305) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/indices/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1d835ca47968468f88681bccbe2d0de47048e5c7f59fed16f3e27f1c0481c2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: __init__.py \u2194 dataset.rs: \u0060python/python/lance/indices/__init__.py\u0060 (context python) and \u0060rust/lance/src/dataset.rs\u0060 (context rust) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 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 5 shared commits counted here, the most recent 3 are \u0060f317dd18\u0060 feat!: migrate bitmap to index segment based (#6869); \u006057d2aad9\u0060 feat: support distributed bitmap index build (#6598); \u00601ef63109\u0060 refactor!: align distributed index build around segments (#6313) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/indices/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7548ce768f96929c62d1b7154b5b40a43a9f3b353ed0b80816ddb8687c223aba"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: bitmap.rs \u2192 basic.rs, fixed_size_list.rs, encoder.rs, list.rs, value.rs: \u0060rust/lance-encoding/src/array_encoding/physical/bitmap.rs\u0060 changes together with 5 other files \u2014 \u0060rust/lance-encoding/src/array_encoding/physical/basic.rs\u0060, \u0060rust/lance-encoding/src/array_encoding/physical/fixed_size_list.rs\u0060, \u0060rust/lance-encoding/src/encoder.rs\u0060, \u0060rust/lance-encoding/src/encodings/logical/list.rs\u0060, \u0060rust/lance-encoding/src/encodings/physical/value.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/physical/bitmap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e599fa85c4819866a81a829c96e5503fecadddcd2deba30f442bbb0ec042d9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: fixed_size_list.rs \u2194 value.rs: \u0060rust/lance-encoding/src/array_encoding/physical/fixed_size_list.rs\u0060 and \u0060rust/lance-encoding/src/encodings/physical/value.rs\u0060 change together 87% of the time (13 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u006073ab2b57\u0060 feat: add a blob encoding for large binary values (#2868) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/physical/fixed_size_list.rs\u0060); \u0060310950db\u0060 feat: add a packed struct encoding to lance (#2593) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/physical/fixed_size_list.rs\u0060); \u00604a114b2e\u0060 feat: enhance binary array encoding, make it the default (#2521) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/physical/fixed_size_list.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/physical/fixed_size_list.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be27f2c285fbff2ed58be6e37635733c9504b315b236a7feb524e5e1d9fda96e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: basic.rs \u2192 fixed_size_list.rs, list.rs, value.rs: \u0060rust/lance-encoding/src/array_encoding/physical/basic.rs\u0060 changes together with 3 other files \u2014 \u0060rust/lance-encoding/src/array_encoding/physical/fixed_size_list.rs\u0060, \u0060rust/lance-encoding/src/encodings/logical/list.rs\u0060, \u0060rust/lance-encoding/src/encodings/physical/value.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/physical/basic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a187d1a60eb9abe9337626b78c19d2b310e39209357ba75f216738ab3c76e45e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: encoder.rs \u2194 physical.rs: \u0060rust/lance-encoding/src/encoder.rs\u0060 and \u0060rust/lance-encoding/src/encodings/physical.rs\u0060 change together 78% of the time (21 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u0060c0546975\u0060 perf: make miniblock decoding cheaper (#3438); \u00603ac6d4ad\u0060 feat: fsst compression with mini-block (#3121); \u00603f2faf28\u0060 feat: support miniblock with binary data (#3099) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b17a2910441898400f9755f5469ae5e53c071680f3e85783e622c224d84259"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: binary.rs \u2194 list.rs: \u0060rust/lance-encoding/src/array_encoding/logical/binary.rs\u0060 and \u0060rust/lance-encoding/src/encodings/logical/list.rs\u0060 change together 78% of the time (14 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060c0546975\u0060 perf: make miniblock decoding cheaper (#3438) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060); \u00604a114b2e\u0060 feat: enhance binary array encoding, make it the default (#2521) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060); \u00602d8e4142\u0060 feat: add pushdown to the read path (#2444) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/binary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f8872ea3b1663bc2bb51ac90144c517dc1f3d1115a49a6220ef5daf32923d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: transform.rs \u2194 ivf.rs: \u0060rust/lance-index/src/vector/pq/transform.rs\u0060 and \u0060rust/lance/src/index/vector/ivf.rs\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060201a94d9\u0060 fix: respect precomputed partitions and shuffle buffers for v3 index \u2026; \u006015420d54\u0060 perf: improve v3 indexing perf (#3525); \u00608c695718\u0060 refactor: remove generic PQ impl and trait (#2529) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/pq/transform.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df3ba7f350780fa2a9f920e236bd3e772d74cd17600675713d4b3d5893fdb89"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: binary.rs \u2194 dictionary.rs: \u0060rust/lance-file/src/versions/v1/encoding/binary.rs\u0060 and \u0060rust/lance-file/src/versions/v1/encoding/dictionary.rs\u0060 change together 73% of the time (16 of the 22 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 \u0060c878af43\u0060 perf: create local writer for efficient local writes (#5939) (at that commit the files were still \u0060rust/lance-io/src/encodings/binary.rs\u0060 and \u0060rust/lance-io/src/encodings/dictionary.rs\u0060); \u006050e00d65\u0060 perf: use an asynchronous open function even for local files (#1721) (at that commit the files were still \u0060rust/lance-core/src/encodings/binary.rs\u0060 and \u0060rust/lance-core/src/encodings/dictionary.rs\u0060); \u00609a6e5683\u0060 test: fix flaky tests involving tokio::fs::File (#1430) (at that commit the files were still \u0060rust/lance-core/src/encodings/binary.rs\u0060 and \u0060rust/lance-core/src/encodings/dictionary.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"492aed38846ffb5744874a27a497b37a83fd3a0c30827f87a923e2a589c1d1fe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: blocking_scanner.rs \u2194 Query.java: \u0060java/lance-jni/src/blocking_scanner.rs\u0060 and \u0060java/src/main/java/org/lance/ipc/Query.java\u0060 change together 69% of the time (9 of the 13 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) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060c3d38379\u0060 feat(index): add opt-in quantized vector refinement (#8741); \u0060690c4007\u0060 feat(java): expose vector distance bounds (#9374); \u0060a245a182\u0060 feat(search): add search effort and auto probing through k=100000 (#9\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/lance-jni/src/blocking_scanner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeccdbec7f4a2a1f4cd7d6671a6131ba46fa5124b4af5f9b0a5768fc05f726fe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: write.rs \u2192 graph.rs, index.rs, hnsw.rs: \u0060rust/lance/src/dataset/mem_wal/write.rs\u0060 changes together with 3 other files \u2014 \u0060rust/lance/src/dataset/mem_wal/hnsw/graph.rs\u0060, \u0060rust/lance/src/dataset/mem_wal/index.rs\u0060, \u0060rust/lance/src/dataset/mem_wal/index/hnsw.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/write.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c9b2d580349bed19b6fcca441b99edae55a7e94a79cd63e94917a3d8ac83c5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: index.rs \u2194 index_caches.rs: \u0060rust/lance/src/index.rs\u0060 and \u0060rust/lance/src/session/index_caches.rs\u0060 change together 62% of the time (10 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u006027da99a5\u0060 fix: protect fragment reuse history on stable-row-ID tables (re-land)\u2026; \u0060586bd89e\u0060 revert: compaction row-order suffix relabels (#8400, #9769) (#10440); \u0060f343c6cd\u0060 fix: protect fragment reuse history on stable-row-ID tables (#9769) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed700a14722c1f598353d6169f44541482b7f1a09163c2bb1587f18ca1ca5fc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: binary.rs \u2194 encoder.rs: \u0060rust/lance-encoding/src/array_encoding/logical/binary.rs\u0060 and \u0060rust/lance-encoding/src/encoder.rs\u0060 change together 61% of the time (11 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060c0546975\u0060 perf: make miniblock decoding cheaper (#3438) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060); \u00604a114b2e\u0060 feat: enhance binary array encoding, make it the default (#2521) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060); \u00602d8e4142\u0060 feat: add pushdown to the read path (#2444) (at that commit the file was still \u0060rust/lance-encoding/src/encodings/logical/binary.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-encoding/src/array_encoding/logical/binary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"231ade008322b03f0ee3841a070b1220866f873bc8aed2c1e4e08a7090cb96d3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: binary.rs \u2194 page_table.rs: \u0060rust/lance-file/src/versions/v1/encoding/binary.rs\u0060 and \u0060rust/lance-file/src/versions/v1/page_table.rs\u0060 change together 61% of the time (11 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060c878af43\u0060 perf: create local writer for efficient local writes (#5939) (at that commit the files were still \u0060rust/lance-io/src/encodings/binary.rs\u0060 and \u0060rust/lance-file/src/previous/page_table.rs\u0060); \u006050e00d65\u0060 perf: use an asynchronous open function even for local files (#1721) (at that commit the files were still \u0060rust/lance-core/src/encodings/binary.rs\u0060 and \u0060rust/lance-core/src/format/page_table.rs\u0060); \u006057f9269a\u0060 refactor: move reader trait to lance-core (#1393) (at that commit the files were still \u0060rust/lance/src/encodings/binary.rs\u0060 and \u0060rust/lance/src/format/page_table.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-file/src/versions/v1/encoding/binary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85210200773b5910fd56bb33a60aa8a92d6671ba40954f5e5df94f4c4679f6a1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: dot.rs \u2194 norm_l2.rs: \u0060rust/lance-linalg/src/distance/dot.rs\u0060 and \u0060rust/lance-linalg/src/distance/norm_l2.rs\u0060 change together 60% of the time (18 of the 30 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 18 shared commits counted here, the most recent 3 are \u00604a21331d\u0060 perf(linalg): select f64 l2/dot and norm_l2 kernels once (#10101); \u0060ec974a37\u0060 test: remove redundant work in linalg, encoding and file tests (#10815); \u0060ab268baa\u0060 fix: fall back to AVX2 f16 kernels on AVX-512 CPUs (#7428) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/dot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d9c4b2d1757a8f92da1f97f763c859ff134bbcdd39ea78e0873e15a5827e36"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: __init__.py \u2194 indices.rs: \u0060python/python/lance/indices/__init__.py\u0060 and \u0060python/src/indices.rs\u0060 change together 60% of the time (6 of the 10 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) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00608ada2e9a\u0060 refactor!: remove index segment builder (#6997); \u00608962655c\u0060 feat: support segmented inverted index build and search (#6305); \u00601ef63109\u0060 refactor!: align distributed index build around segments (#6313) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/indices/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df0e69adb7907d0d42593ec1235e52891e78d86da564804e7ba2e3f702776dd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: cosine.rs \u2194 l2.rs: \u0060rust/lance-linalg/src/distance/cosine.rs\u0060 and \u0060rust/lance-linalg/src/distance/l2.rs\u0060 change together 57% of the time (20 of the 35 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 20 shared commits counted here, the most recent 3 are \u00604a21331d\u0060 perf(linalg): select f64 l2/dot and norm_l2 kernels once (#10101); \u00608c392b28\u0060 fix(linalg): reject a null Int8 query instead of panicking (#8884); \u0060ab268baa\u0060 fix: fall back to AVX2 f16 kernels on AVX-512 CPUs (#7428) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-linalg/src/distance/cosine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12c46fde3a3daa50b115d6f7e5792b1ca021779775eb73514765e122dc34752"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: pq.rs \u2194 index_extension.rs: \u0060rust/lance/src/index/vector/pq.rs\u0060 and \u0060rust/lance/src/session/index_extension.rs\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060417b9a83\u0060 fix: panic if only one partition and split is triggered (#5241); \u0060a767eda4\u0060 feat!: add minimum probes and maximum probes to IVF search (#3903); \u006059b414b5\u0060 feat: support to read IVF partitions (#3462) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/pq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6042486f75b7c9088171842e3dbc6bea26e6c21eef18e384909dff3a723dc5b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: residual.rs \u2194 ivf.rs: \u0060rust/lance-index/src/vector/residual.rs\u0060 and \u0060rust/lance/src/index/vector/ivf.rs\u0060 change together 53% of the time (10 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060c5665d1d\u0060 fix(index): reject out-of-range partition ids when computing residual\u2026; \u0060201a94d9\u0060 fix: respect precomputed partitions and shuffle buffers for v3 index \u2026; \u006053382381\u0060 feat: int8 support for distance functions (#3605) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/residual.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f62f95855c490d2364fa7056596f4f15fd7cdd1e479651720c6045aab64597"}},{"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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"649f2801ac4cf3727348523ed811a704f7e308654ddcbf7e4b4e34fb362e6593"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a13cd35d96bc86b459e32eccc8b6264f626c748cf5d52e5c2c384103b20c3326"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5928b81075799790cb18fed2980a6b6e8aa5072772041c9951633efe8eb3542"},"taxa":[{"id":"CICD-SEC-1","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e4607103018ccbf4772504c4475df05c43062f243e17471503584c98dc62fdc"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b6284be74bca60e2f6a03b072231530ae3c6f892d24cfe78d55b57b5bd97b"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b813c1bd6d0b1edd7f0d2ee914ad82e7e7a3df39db1fde41c3c1f646d79f9f9d"}},{"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":"about.hbs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4645ccdad85c641ed98932d9b7b967497baf0e80b41d02f797f2d949165dd800"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"about.hbs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef3ce0cb42653a7a48e00d850869bc680d9f3046fca6b02816ed72483801084"}},{"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":"java/RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81671d23d615f615b5248c74544a13b73f97bb2b3e27d3f56f33c0be32f12019"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"java/RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3dcd43acc5b364dfac48d206e57b164776e606e7f38506d84aff0513c7d9b6"}},{"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":"python/RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d716759f735914f08c6e70443828e3e61bae8b8ea4a5227403b76f82e034b7"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/RUST_THIRD_PARTY_LICENSES.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6ecf5209e7af25f943213d249d199f9107a5ffc6f4bc8d902cf98bd2c030dc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.ld-search__input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/theme/assets/site.css"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e1bbb69cf6f4c24eef894b50e5ddf42721c58ab739021873d29f09d3d9867"}},{"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":"P1","level":"warning","message":{"text":"CI formatting step cannot fail: \u00608. Run \u0022cargo fmt --all\u0022 to ensure formatting is correct.\u0060 invokes cargo fmt in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner\u0027s throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one \u2014 it enforces nothing, and no other step in this file reads the result. \u0060--check\u0060 is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/codex-backport-pr.yml"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75a1698b156d918f0e8016af93723244d87b58b3dac5fb58a36dab6471af30f"}},{"ruleId":"P1","level":"warning","message":{"text":"CI formatting step cannot fail: \u0060- For formatting issues: Run \u0022cargo fmt --all\u0022\u0060 invokes cargo fmt in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner\u0027s throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one \u2014 it enforces nothing, and no other step in this file reads the result. \u0060--check\u0060 is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/codex-fix-ci.yml"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"78652a047027ea2c3855a3c102e7e828f3fdc2e808bfb61ee5983436025ff6e2"}},{"ruleId":"P1","level":"warning","message":{"text":"CI formatting step cannot fail: \u0060- Run \u0022cargo fmt --all\u0022 to ensure formatting is correct\u0060 invokes cargo fmt in the mode that REWRITES the files it reformats and exits 0 whatever it changed. The rewrite happens inside the runner\u0027s throwaway checkout and is then discarded, so the step passes on a badly-formatted change exactly as it passes on a clean one \u2014 it enforces nothing, and no other step in this file reads the result. \u0060--check\u0060 is the flag that turns the same invocation into a gate: it leaves the files alone and exits non-zero when anything would have been reformatted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/codex-fix-ci.yml"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"442ed47ca360a833138e38a9ae2bd5a6f9f9303a0e685e2ace0e1b8a821caabc"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060lance_core.cache.codec\u0060 is marked as implementation by its own namespace, folder or name: \u0060CacheCodecImpl\u0060 (rust/lance-core/src/cache/codec.rs:220, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/cache/codec.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b700e01390434cd545854e2a9b31ed503c3d9a1b279a53cba228279c12cdbd"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 16/21 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060.\u0060, \u0060memtest\u0060, \u0060protos/codegen\u0060, \u0060rust/lance-tools\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch github-actions/gitsubmodule: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060github-actions\u0060, \u0060gitsubmodule\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":"1f5dd58e165562085899e093bd81cb24e6cf33f914f6890bdf2266a2e4166722"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060urlopen(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/arrow.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f1852262f8afa30b5687aae71cd1b76745e9d71937e9379a8d20e3a113954f"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/download.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde46431757f5436eb7e46bbd84394d282475ba3343e554585e7a7eb35b467f1"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/download.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c07c884b9f21216ee8ef2326af930c11925bc2112905bbfc6795326743fdd62"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/credentials/azure.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac43a903b1847079bf49582280ed1ff8c2257de98c75589ae469378693de461b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/rest/tls.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4440942a374370c2fd5ca93566f2576a88869e2cc32c998f1ad95346b5454aa0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-namespace-impls/src/rest/tls.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fd9cc241b143a5a766da637665faf7e8bf8fbd4384e31f4217fe7511f13e77"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository starts an HTTP server and nothing in its Rust source or committed \u0060Rocket.toml\u0060 secures the transport: no TLS served (actix-web \u0060bind_rustls\u0060/\u0060bind_openssl\u0060, axum-server \u0060bind_rustls\u0060 with a \u0060RustlsConfig\u0060, tonic \u0060ServerTlsConfig\u0060, a \u0060TlsAcceptor\u0060, Rocket\u0027s \u0060[default.tls]\u0060), no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (rust/lance-namespace-impls/src/rest_adapter.rs:203)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Rust server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (rust/lance-namespace-impls/src/rest_adapter.rs:203)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060className == null || className.isEmpty()\u0060 appears character-identically in 2 files \u2014 java/src/main/java/org/lance/namespace/DirectoryNamespace.java, java/src/main/java/org/lance/namespace/RestNamespace.java. 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"24334f88d177fcf20fdbc5eef980d454c6941671e50261ed99e506ae1c931502"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.startsWith(PROVIDER_PREFIX) \u0026\u0026 !key.equals(IMPL_KEY)\u0060 appears character-identically in 2 files \u2014 java/src/main/java/org/lance/namespace/DirectoryNamespace.java, java/src/main/java/org/lance/namespace/RestNamespace.java. 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":"java/src/main/java/org/lance/namespace/DirectoryNamespace.java"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a69c93896cea2d6da545c2fe6f88d70734db47e76115e13d2e6203dcfe0cb59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060namespaceClient != null \u0026\u0026 tableId != null\u0060 appears character-identically in 2 files \u2014 java/src/main/java/org/lance/OpenDatasetBuilder.java, java/src/main/java/org/lance/WriteDatasetBuilder.java. 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":"java/src/main/java/org/lance/OpenDatasetBuilder.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3ab2f4e1ec87aa2a03bf6bd2b308c4c59fb504e86a1e8ef65b4033215cf693"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060obj == null || getClass() != obj.getClass()\u0060 appears character-identically in 2 files \u2014 java/src/main/java/org/lance/fragment/RowIdMeta.java, java/src/main/java/org/lance/fragment/VersionMeta.java. 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":"java/src/main/java/org/lance/fragment/RowIdMeta.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6206cc3ee96bb18f11784fc0b6ec797ddcbb42d1255e223008fa3ff682f539"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_check_for_numpy(data) and isinstance(data, np.ndarray)\u0060 appears character-identically in 4 files \u2014 python/python/lance/torch/data.py, python/python/lance/torch/kmeans.py, python/python/lance/util.py, python/python/lance/vector.py. 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":"python/python/lance/torch/data.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fcfb56265c3be651e3bdf08b8ec1913e7095789315937303e5a28d5f06b7cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_check_for_numpy(query) and isinstance(query, np.ndarray)\u0060 appears character-identically in 2 files \u2014 python/python/lance/_dataset/scanner.py, python/python/lance/torch/bench_utils.py. 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":"python/python/lance/_dataset/scanner.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"415379f77817e5ba458c322a4b1d578284c9c7d85e7618cf8bbb67da175b6675"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(field.type, pa.FixedShapeTensorType) and len(field.type.shape) == 1\u0060 appears character-identically in 2 files \u2014 python/python/lance/dataset.py, python/python/lance/torch/bench_utils.py. 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":"python/python/lance/dataset.py"},"region":{"startLine":3729}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30a52212af61a6be1777a82ab90ee425a065cfcf4ebded44be7ce0a343c6c38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060namespace_client is not None or table_id is not None\u0060 appears character-identically in 2 files \u2014 python/python/lance/__init__.py, python/python/lance/dataset.py. 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":"python/python/lance/__init__.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca69ce6f9d3cba24416c62e80c0ea746f3029b3eee4e4cac5d45039943942c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!discount_overlaps || last_position != Some(token.position)\u0060 appears character-identically in 3 files \u2014 rust/lance-index/src/scalar/inverted/builder.rs, rust/lance-index/src/scalar/inverted/index/flat_search.rs, rust/lance/src/dataset/mem_wal/index/fts.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":"rust/lance-index/src/scalar/inverted/builder.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f32231887bd0274adbac15bec517f6a48328bd7f3139a2def5c62e9286fd949"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!field.is_blob() \u0026\u0026 !field.is_packed_struct()\u0060 appears character-identically in 2 files \u2014 rust/lance-file/src/versions/v1/mod.rs, rust/lance-file/src/versions/v2_0/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":"rust/lance-file/src/versions/v1/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7ba9ab3721ca149da9b0edbe0ae889df8e5ad8cf6b3e3d9fae56a75def83d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.fast_search \u0026\u0026 (!unindexed_fragments.is_empty() || !stale_rows.is_empty())\u0060 appears character-identically in 2 files \u2014 rust/lance/src/dataset/scanner/fts.rs, rust/lance/src/dataset/scanner/minhash.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":"rust/lance/src/dataset/scanner/fts.rs"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c277a7954c9238026ecb9bc4c9b655dcb37df1b40cd78b636e1dac368b7a79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!std::is_x86_feature_detected!(\u0022avx\u0022) || !std::is_x86_feature_detected!(\u0022fma\u0022)\u0060 appears character-identically in 2 files \u2014 rust/lance-linalg/src/simd/f32.rs, rust/lance-linalg/src/simd/f64.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":"rust/lance-linalg/src/simd/f32.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7637dacea9d6f6b584231ddb04f7cf034e70557d44c3e6f2a2b9b7d127e82d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(last_warn == 0 \u0026\u0026 seconds_elapsed \u003E BACKPRESSURE_MIN \u0026\u0026 seconds_elapsed \u003C BACKPRESSURE_DEBOUNCE) || since_last_warn \u003E BACKPRESSURE_DEBOUNCE\u0060 appears character-identically in 2 files \u2014 rust/lance-io/src/scheduler.rs, rust/lance-io/src/scheduler/lite.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/scheduler.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"810c42fb11e3c5c2a1f7c58df08a31f468908e04bb9e6cd080808ce023511555"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060base_scorer.is_some() \u0026\u0026 scorer_only_fuzzy \u0026\u0026 !scorer_override_covers_all\u0060 appears character-identically in 2 files \u2014 rust/lance/src/io/exec/fts/compound.rs, rust/lance/src/io/exec/fts/match_query.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":"rust/lance/src/io/exec/fts/compound.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbed2011756c62b5310a5ffd4f40a515f8211569f03418337d2402ceadf1e17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bits_per_value == 32 || bits_per_value == 64\u0060 appears character-identically in 2 files \u2014 rust/lance-encoding/src/encodings/physical/alp.rs, rust/lance-encoding/src/encodings/physical/byte_stream_split.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":"rust/lance-encoding/src/encodings/physical/alp.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"252768507feff9f1e53214ff43bc8e1573edc71f25aa8f4d2391ee4322cf798d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_idx \u002B 1 == num_blocks \u0026\u0026 remainder != 0\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/scalar/inverted/index/posting_list.rs, rust/lance-index/src/scalar/inverted/wand/posting.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":"rust/lance-index/src/scalar/inverted/index/posting_list.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8852ea69a444c68ed9d66ba5a7694254cd83df354fbbb1514e18199e240925"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060blocked.is_some() \u0026\u0026 !self.pk_columns.is_empty()\u0060 appears character-identically in 2 files \u2014 rust/lance/src/dataset/mem_wal/scanner/fts_search.rs, rust/lance/src/dataset/mem_wal/scanner/vector_search.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":"rust/lance/src/dataset/mem_wal/scanner/fts_search.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2945162b92367d9b74f196b8e3a037c704a4e411792f8b72147614e23d450012"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060comparable \u0026\u0026 children_share_parent_length(field)\u0060 appears character-identically in 2 files \u2014 rust/lance-file/src/reader/structural.rs, rust/lance-file/src/versions/v2_0/reader.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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0023d79055b0d984337a2c2517929bc650aeaaa2a925d983cb2e6cd7bb2e7cdb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060details_type_name.is_empty() || details_type_name.starts_with(\u0027.\u0027)\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/registry.rs, rust/lance/src/index/scalar.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":"rust/lance-index/src/registry.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31ddc01bddd9f8b655f0fa4c7eb983e6932fa08040800ec174cf87f334af8d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dist \u003C lower_bound || dist \u003E= upper_bound\u0060 appears character-identically in 4 files \u2014 rust/lance-index/src/vector/bq/storage.rs, rust/lance-index/src/vector/flat/index.rs, rust/lance-index/src/vector/pq/storage.rs, rust/lance-index/src/vector/storage.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":"rust/lance-index/src/vector/bq/storage.rs"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab24fce43a7c1623ef51d8b9f79c6b58b8d2cdd758db73d7da5448d4bccc485"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060enforce_children \u0026\u0026 child_rows != expected\u0060 appears character-identically in 2 files \u2014 rust/lance-file/src/reader/structural.rs, rust/lance-file/src/versions/v2_0/reader.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":"rust/lance-file/src/reader/structural.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca74f402af8fa6d5f1778de5e9a8e8d773ec7737a5e89ca4e585bea0adc4725"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.is_blob() || field.is_packed_struct()\u0060 appears character-identically in 7 files \u2014 rust/lance-file/src/reader.rs, rust/lance-file/src/reader/structural.rs, rust/lance-file/src/versions/v1/mod.rs, rust/lance-file/src/versions/v2_0/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":"rust/lance-file/src/reader.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbfe548af361466b42e0f9665e7f83f02d4bd25a58d2442ac165a4e0a4c8edc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.name() == ROW_ID || field.name() == ROW_ADDR\u0060 appears character-identically in 2 files \u2014 rust/lance-table/src/utils/stream.rs, rust/lance/src/dataset/update_join.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":"rust/lance-table/src/utils/stream.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6760643c196fd56b95d8203c7335df18d924eb52bfc2f06b57747ef9cba406"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field_names.is_empty() || field_names.len() \u003E 1\u0060 appears character-identically in 2 files \u2014 rust/lance/src/index/scalar.rs, rust/lance/src/index/vector.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":"rust/lance/src/index/scalar.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e89afd1b4abe80a32e634be760c8b192dc45df50e8a1a4581529d92bd1a58b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flat.bits_per_value == 0 || flat.data.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance-encoding/src/compression.rs, rust/lance-encoding/src/encodings/physical/value.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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d521a1d6f4b904f5e7a952b443d3484d90607d845469d93c083a84b5ab55b5f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flat.bits_per_value == 8 \u0026\u0026 flat.data.is_none()\u0060 appears character-identically in 2 files \u2014 rust/lance-file/src/versions/v2_1/reader.rs, rust/lance-file/src/versions/v2_2/reader.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":"rust/lance-file/src/versions/v2_1/reader.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"be545083744c41d33a7688e9ee215340800311c7529489bec0f68e8e9acd040a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index.frag_reuse_index.is_none() || index.batch_remapper.is_none()\u0060 appears character-identically in 3 files \u2014 rust/lance-index/src/scalar/bitmap.rs, rust/lance-index/src/scalar/bloomfilter.rs, rust/lance-index/src/scalar/btree.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":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"a912fe718f69669e39454ce85404497049968c2ba5494ddad55d75cf072fcdd7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_child_table || !self.dir_listing_enabled || self.dir_listing_to_manifest_migration_enabled\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/load.rs, rust/lance-namespace-impls/src/dir/namespace.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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"381209d7f007f331b9cf32fb9e5584e9d19fb97b7aa7e444ea9f79e3a5ac12ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_pwr_two(bytes_per_value) \u0026\u0026 bytes.as_ptr().align_offset(bytes_per_value as usize) != 0\u0060 appears character-identically in 2 files \u2014 rust/lance-arrow/src/lib.rs, rust/lance-encoding/src/buffer.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":"rust/lance-arrow/src/lib.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a24bf8ecbb84390dc8698f49ce1893e5fc1696821ab8b66a14461c49e0cf275"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kind == \u0022progress\u0022 \u0026\u0026 stage == \u0022merge_partitions\u0022\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/vector/distributed/index_merger.rs, rust/lance/src/index/vector/ivf/v2/tests.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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d2fdbb948a30ab8225bc814df962a0c1744e8161eb74dd7c4caacbd5813fb2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kind == \u0022start\u0022 \u0026\u0026 stage == \u0022merge_partitions\u0022\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/vector/distributed/index_merger.rs, rust/lance/src/index/vector/ivf/v2/tests.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":"rust/lance-index/src/vector/distributed/index_merger.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17e8c85324d6352d9183fc48d06aee627f8f927031d05c923964f550c8a0a3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060list.block_size == MAX_POSTING_BLOCK_SIZE \u0026\u0026 list.impacts.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/scalar/inverted/wand.rs, rust/lance-index/src/scalar/inverted/wand/bulk_conjunction.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":"rust/lance-index/src/scalar/inverted/wand.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c1c14c905a00191daa9ab99c6bfd2cdaebaf0540d1ca14ababfa73c12a38ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060load_detailed_metadata || request.check_declared.unwrap_or(false)\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/load.rs, rust/lance-namespace-impls/src/dir/manifest.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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0b0885a039418e2bee0e6e1f967e9f02413f0314ea9106ac16a7081e8d79eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metrics.fragments_removed \u003E 0 \u0026\u0026 metrics.fragments_added \u003E 0\u0060 appears character-identically in 3 files \u2014 rust/lance/src/index/append.rs, rust/lance/src/index/scalar/minhash_lsh.rs, rust/lance/src/index/scalar_logical.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":"rust/lance/src/index/append.rs"},"region":{"startLine":4640}}}],"partialFingerprints":{"codehealthFindingId/v1":"071107bdac7bfb01113a0b816b8c5b407cadbb0704cf20baa20113a8b1cfed5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060new_indices.is_empty() \u0026\u0026 !removed_indices.is_empty()\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/transactions.rs, rust/lance/src/dataset/index/frag_reuse.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":"rust/lance-namespace-impls/src/dir/transactions.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40bedc447803857b702139822564f44dfd66f9f284b8839611e17793ebcf3bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060new_indices.len() != 1 || removed_indices.len() != 1\u0060 appears character-identically in 2 files \u2014 rust/lance/src/io/commit/conflict_resolver/check/create_index.rs, rust/lance/src/io/commit/conflict_resolver/check/rewrite.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":"rust/lance/src/io/commit/conflict_resolver/check/create_index.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d13773d09147e3bea440ce7b6a056cb40849613e4268478c856608814e3fc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.scan_range_before_filter.is_some() || options.scan_range_after_filter.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance/src/io/exec/count_pushdown.rs, rust/lance/src/io/exec/filtered_read.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":"rust/lance/src/io/exec/count_pushdown.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60da8e8235bdaefe3afb957306ccd1d2d18d95f41ecf4f4881369741429f88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.index_type.eq_ignore_ascii_case(\u0022inverted\u0022) || params.index_type.eq_ignore_ascii_case(\u0022fts\u0022)\u0060 appears character-identically in 2 files \u2014 rust/lance/src/index/create.rs, rust/lance/src/index/scalar.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":"rust/lance/src/index/create.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ea8a830ab66c90abda0245807e4186173bca1621d7e76cf4ad45b0f65556e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.lower_bound.is_some() || params.upper_bound.is_some()\u0060 appears character-identically in 3 files \u2014 rust/lance-index/src/vector/flat/index.rs, rust/lance-index/src/vector/graph.rs, rust/lance-index/src/vector/hnsw/builder.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/vector/flat/index.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd41ef42de1b5fd740c0ba062b3f66e4a1aa8f9ddebe56d5f7bf548c4550e75c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060query.lower_bound.is_some() || query.upper_bound.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/vector/pretransform.rs, rust/lance/src/io/exec/knn.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":"rust/lance-index/src/vector/pretransform.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e870cea10e31312958d31f84effde9ee00dcdf1cb484e43cba0fe6d3911f4e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060range.start \u003E range.end || range.end \u003E num_values\u0060 appears character-identically in 5 files \u2014 rust/lance-encoding/src/compression.rs, rust/lance-encoding/src/encodings/physical/binary.rs, rust/lance-encoding/src/encodings/physical/bitpacking.rs, rust/lance-encoding/src/encodings/physical/rle.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":"rust/lance-encoding/src/compression.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"261793be931524d0902de5f549eb9d57ed1aefe1fd96f795c29d7a61eda789f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repdef.repetition_levels.is_some() || repdef.definition_levels.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance-encoding/src/encodings/logical/primitive/constant.rs, rust/lance-encoding/src/encodings/logical/primitive/planar.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":"rust/lance-encoding/src/encodings/logical/primitive/constant.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0391424d238265754ec34f101688ebd9baa0c55d1ba71dd077708f2d1b9870a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.dir_listing_enabled \u0026\u0026 is_root_level\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/load.rs, rust/lance-namespace-impls/src/dir/namespace.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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"625ba1ad63d2299a0802937ae5b309b297507885833a5c70acd8aa50cd3940be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.dir_listing_enabled \u0026\u0026 is_root_level \u0026\u0026 !self.dir_listing_to_manifest_migration_enabled\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/load.rs, rust/lance-namespace-impls/src/dir/namespace.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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd3ba1b7150e209d9f4f894d30863e4b5ca3842bbdf6b0a811678849ec1ec04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.has_direct_local_paths() || self.scheme == \u0022file-object-store\u0022\u0060 appears character-identically in 2 files \u2014 rust/lance-io/src/object_store.rs, rust/lance-io/src/object_store/local_staging.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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b3d664bfcff03f149765051bcd1900971e908c5338275a9d8e8574af7ba057"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.manifest_ns_for_read() \u0026\u0026 !skip_manifest_for_root\u0060 appears character-identically in 2 files \u2014 rust/lance-namespace-impls/src/dir/load.rs, rust/lance-namespace-impls/src/dir/namespace.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":"rust/lance-namespace-impls/src/dir/load.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f110fbd23788c9e11527888f79ef974d737994be3e5ce8f664c93699cee060f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.nearest.is_some() \u0026\u0026 self.full_text_query.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs, rust/lance/src/dataset/mem_wal/scanner/builder.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/scanner/builder.rs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab3161cbdecfc3f2244f7fea4c54468e79266977112678f8a03d58f6bf2a27d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.query.distance_lower_bound.is_some() || self.query.distance_upper_bound.is_some()\u0060 appears character-identically in 2 files \u2014 rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs, rust/lance/src/dataset/mem_wal/memtable/scanner/exec/vector.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":"rust/lance/src/dataset/mem_wal/memtable/scanner/exec/brute_force_vector.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ffa3a2e1ab949a930bb396ea0e5d2e4cf09b0cc922b0684e9fd3a66b18b1e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.schema().field(left_on).is_none() \u0026\u0026 left_on != ROW_ID \u0026\u0026 left_on != ROW_ADDR\u0060 appears character-identically in 2 files \u2014 rust/lance/src/dataset.rs, rust/lance/src/dataset/fragment.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":"rust/lance/src/dataset.rs"},"region":{"startLine":4621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acb8e3ff48040599bb6302e07dfa03e74a1fe0a36655b1c6f0f648a387373d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060start_idx \u003E end_idx || end_idx \u003E partitions.len()\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/vector.rs, rust/lance/src/index/vector/ivf/v2/partition_search.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":"rust/lance-index/src/vector.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe437782fa20e0ec58b47d81cfbe01cb4ed5c2ffd2cf7d9e2cd64d7a6b20a749"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060std::arch::is_x86_feature_detected!(\u0022avx512f\u0022) \u0026\u0026 std::arch::is_x86_feature_detected!(\u0022avx512bw\u0022) \u0026\u0026 std::arch::is_x86_feature_detected!(\u0022av\u2026\u0060 appears character-identically in 2 files \u2014 rust/compression/bitpacking/src/lib.rs, rust/compression/bitpacking/src/simd_x86.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":"rust/compression/bitpacking/src/lib.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7419672cee3a3c9439ee71666cbf4f75dd277a3e1f51fba875d5d1ae787a87ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.scheme().len() == 1 \u0026\u0026 cfg!(windows)\u0060 appears character-identically in 2 files \u2014 rust/lance-io/src/object_store.rs, rust/lance-table/src/io/commit.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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8688d2cb349b5d4e170632e38a0f0a18df71804081c69e60b850f30f3ca146a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value == \u00220\u0022 || value.eq_ignore_ascii_case(\u0022off\u0022)\u0060 appears character-identically in 2 files \u2014 rust/lance-index/src/scalar/inverted.rs, rust/lance-index/src/scalar/inverted/index/search.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":"rust/lance-index/src/scalar/inverted.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"50006056635f533d149944fab5cb51f4e508c48e0bfb3b67edbb8511f7c8981e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.is_nan() \u0026\u0026 value.is_sign_negative()\u0060 appears character-identically in 2 files \u2014 rust/lance-datafusion/src/numeric_coercion.rs, rust/lance-index/src/scalar/zonemap.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":"rust/lance-datafusion/src/numeric_coercion.rs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"8055a163185eb19aedd4e0891947d7d4353a5cee6a5e9b618ee0c7c7c3dee881"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060count\u0060 is read from the bytes being parsed at line 1068 (\u0060u32::from_le_bytes\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 1070 \u2014 and nowhere in its scope is \u0060count\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 \u0060count\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/fmindex.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5e1907c2f5c7d0346562b593325fb180bc9ed6326b8ac0d1eeb7d7f93d62d"}},{"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 58 (\u0060u64::from_le_bytes\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 59 \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":"rust/lance-arrow/src/ipc.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"860eb956a925ee4bf46d59c1dcdbe1d7420a0b18235a4f74fbd2dec6940b531c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 529 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/system_index/frag_reuse.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f29484b11b29fefe58c4c188d57b3c6eb66a2e911b814828a88f81b8c0ce74"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 390 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6409f3096a92590cb2a43db4655c254887ed8aa6575173d0ef2c53e56acddda5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 392 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c237bd1b7da03d09e4a034213a1fd96aed2766d8a9ff6a6339cba537ec9ed96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 85 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-table/src/io/commit/dynamodb.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c9bdd4de2046d898ba796ab071524318db01693babd9b8688069a303bd2afd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 122 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/metrics.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaaa16c440b19a3e895253eefb21aee8df918b0fc80953455c6640632493593"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1769 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-index/src/scalar/bitmap.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45ce05b44f96a4cc86eb0010d04e888de05dd5289d3cb9e2bce50f45e0bb0ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 300 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/memory/observer.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"db06b2cdda14220fb46749b4c0473d53b2909b09b997a9d39a899bb926431c20"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 128 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/memory/telemetry.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"82821f3f16ef62c620634c801d7744eed0fcae0677885d8374b1327325edf55b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 225 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-core/src/memory/telemetry.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fee0497aa21268abf4058b57e029bab822c5ec576c875a132092e9367035cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 5310 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset.rs"},"region":{"startLine":5310}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e734f3224778fe65bda30123cd0bb405b06006550ff362a596a76233094e4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 415 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"5123de27bcc590faeb917bd70e43fda53b832f981c832fbe90e3736f194e30cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 3059 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/cleanup.rs"},"region":{"startLine":3059}}}],"partialFingerprints":{"codehealthFindingId/v1":"8932e1c48c18eaff3da76a4969e037b0604bbf08b9f4be56259149d6ad353b83"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 551 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/optimize/planning.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03fbfc5e3cc09c280ca90efff2cacd51b3a7418964685ff3927b39d47ea1afc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 224 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91a0062e8f22ed5e5603e1a4c81782b2cd186a4ad375a9f42b10c43d61f503d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 336 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9300951db7971bd26467845ea7671d9162fa57e8ea97b2fdc236b051138e09d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 385 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e55de23f0d782a996d2cb6afd61a5949d1bde178cbb5cc964c3ef85291bb7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 617 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e66a976abe300e432187b07845142a920ef7594f691f9b6d681cae66062781"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 683 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance/src/dataset/mem_wal/memtable/flush.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0d0eb5fdd2d01aca4f9d346cff85b5d6ee9159c6b3d69d900a4ce9206d5343"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/22 of this repository\u0027s Java package directories are under a non-null default: a \u0060package-info.java\u0060 declaring \u0060@NullMarked\u0060 (JSpecify) or \u0060@NonNullApi\u0060, \u0060@ParametersAreNonnullByDefault\u0060, \u0060@NonNullByDefault\u0060, \u0060@DefaultQualifier(NonNull.class)\u0060; a \u0060module-info.java\u0060 declaring \u0060@NullMarked\u0060; every type in it \u0060@NullMarked\u0060; or a build that runs NullAway with the package in \u0060AnnotatedPackages\u0060, or the Checker Framework\u0027s \u0060NullnessChecker\u0060. Elsewhere every reference admits null and no checker warns on the dereference that throws a \u0060NullPointerException\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"419201f6fc7ba243aef2cfb154378641588a8190e6269cea04a7b48c3d343bd5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_safe_issubclass\u0060 (in \u0060_pydantic_type_to_arrow_type\u0060) returns \u0060False\u0060 when \u0060TypeError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/python/lance/pydantic.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"19be8a2fb009cd1397d3361a3fe8efe85294753baaf9f1f14de61843b8232b07"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060parse_cache_file\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, KeyError, UnicodeDecodeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/check_dependency_age.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5219973f12aaaafd26af9f5019b475d1b73c17d25d3a98b241e766af9504298b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060load_username_cache\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, OSError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/new_contributors.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"934ce3977a5361a77cc518588dbaa0f163b29f2d41d67f5090b8f9d616cafc02"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060load_cache\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, OSError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ci/review_stats.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a62a91de27f8041b9e5d8775212555f4bbba63913286774ff6d47e4f404494"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060new\u0060 turns every \u0060Err\u0060 into \u0060\u0022\u003Cunknown\u003E\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":"python/src/indices.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fea1cb3c5608c9fc99d53c709731621cef53e3be583415ce0017294f3916ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060legacy_type_name\u0060 turns every \u0060Err\u0060 into \u0060\u0022N/A\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":"rust/lance/src/index/statistics.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dd1024ef1f85142bec6820942e98652ada569279a4a5e17eea8a2118c7669b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060take_partition_batches\u0060 turns every \u0060Err\u0060 into \u00600.0\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":"rust/lance/src/index/vector/builder.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec56c5c41ae6c9ae0b311a781088b0463790d95bd99b1de51d6e09636685c61b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060derive_vector_index_type\u0060 turns every \u0060Err\u0060 into \u0060\u0022Vector\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":"rust/lance/src/index/vector/details.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4604b6d31052e8e11ff0aebbfa04abb95a5980d9b2de31c359077526bfd1945f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060from\u0060 turns every \u0060Err\u0060 into \u00600\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":"rust/lance-geo/src/rtree.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e01c3da294fb5bb60994dc328d45ad3800e1ac1f3f2786b3706b4abf7d568f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060tf_prime\u0060 turns every \u0060Err\u0060 into \u00600.0\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":"rust/lance-index/src/scalar/inverted/combined/cursor.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc08367ea4493b291f0d8f44dc080ae3d737663a69610719f5a8d35748fdf0d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060download_retry_count\u0060 turns every \u0060Err\u0060 into \u00603\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":"rust/lance-io/src/object_store.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e10c41ef68806526ee3d5c7e860d8f7ef096ee2cc162a759d1cfa12fd350f4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060derive_session_name_from_token\u0060 turns every \u0060Err\u0060 into \u0060\u0022lance-web-identity\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":"rust/lance-namespace-impls/src/credentials/aws.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba353bda828cc6e74960b794d55d315f20d6cea8549419557c894c6ab88f240"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowercase.contains(\u0022429 too many requests\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowercase.contains(\u0022429 too many requests\u0022)\u0060 also satisfies \u0060lowercase.contains(\u0022too many requests\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/lance-io/src/object_store/throttle.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"affbdb8376ee999b0746e196457fd33899628a34059d349e2dc629ea6be6ce5d"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-191","guid":"31b5d115-a84b-875f-a016-48689827db3c","name":"CWE-191","shortDescription":{"text":"CWE-191"},"helpUri":"https://cwe.mitre.org/data/definitions/191.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-1","guid":"a40d9a4c-89f5-4b5d-b2dc-32dc9cbfe814","name":"Insufficient Flow Control Mechanisms","shortDescription":{"text":"Insufficient Flow Control Mechanisms"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-01-Insufficient-Flow-Control-Mechanisms"},{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":131,"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."]}]}